3 ms·
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 real
by sireat 12y ago
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.