On Friday, August 22, 2014 10:35:29 AM UTC+2, Alisson Cavalcante Agiani 
wrote:
>
> How do people stumble upon this kind of error?
>
>
When you have long and tricky business logic. Ie. I am bidding on a 
product. Make CC authorization. Is it ok? Yes? Go book a product. Did 
somebody in the mean time buy the last one? Remove authorization, or if all 
ok, proceed. What about if my authorization fails? What if I have a retry 
logic on the warehouse check methods because it's unstable?

This can be avoided by not having long methods, having smart architecture, 
but sometimes you inherit messy code, or write it yourself, and you have a 
long long method with multiple possible paths, and in only one of those you 
have to call back.

 

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/7d923cfc-990c-4589-8989-de30276f566a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to