News for hackers. Stuff that matters.
Re:What I Wish I Knew When Starting Out as a Software Develo... by sireat on Tuesday January 27, 2015 @04:09AM (#8952103)
A function that is only used once is not necessarily a bad thing.

Shouldn't that 10 line function be pretty much self documenting?

Done right this should really help get a good grasp of code base quickly.

Now, if the function has bunch of side effects and you HAVE to read it to make sense of what's going on one abstraction higher, then it is done wrong.

There are no comments on this comment yet.