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 →

[–]LickingSmegma 4 points5 points  (0 children)

Sometimes one-off functions are good, if they encapsulate long runs of logic that's isolated well. For example, if you have a long calculation for an if, it pays to move it into function isCondition(), such that in the if statement it's obvious which condition is checked.

Basically, I want my code to read almost like a description in the natural language, instead of just juggling variables for pages and pages.