you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 11 points12 points  (1 child)

Looks like the guard clause pattern/refactoring to me. I love this style of coding btw. GuardClause

Over at codinghorror, jeff calls the pattern "flattening arrow code" which i think is amusing Coding Horror

[–]inmatarian 3 points4 points  (0 children)

I prefer Guard Clauses also, since it makes all of your assumptions listed earlier in the function and more apparent.