Programming Misc

How Nested Function Can Help

How nested function can help

Guowei Lv

1 minute read

I have been exposed to a lot of Jonathan Blow’s ranting videos recently. One of his rant is that he does not like to break long functions into smaller ones. Main reason being those small functions may mislead the reader that they are reusable while actually they are normally not. First of all, this is kind of the opposite of what uncle bob is saying. He talks a lot in his book and video lectures about how he loves to break up big functions into smaller ones.