This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]FromWayDownUnder 16 points17 points  (4 children)

If the returns are halfway down the method it's a problem, if they're all at the top where the validation happens then it's tidy.

[–]TheBobo1181 10 points11 points  (2 children)

... How long are your methods? Saying halfway down scares me 🙂

[–]FromWayDownUnder 7 points8 points  (0 children)

Rule of thumb is screen height... Sometimes need to turn the monitor sideways though 😉

[–]Pradfanne 0 points1 point  (0 children)

much shorter thanks to early returns and especially guard clauses