16 ms·
Don't be so assumptive that a 30 page long main function is bad code. The code still can be well organized and readable. Function is not the only method to orga
by hzhou321 9y ago
Don't be so assumptive that a 30 page long main function is bad code. The code still can be well organized and readable. Function is not the only method to organize code. Knuth's literate programming for example is invented to better organize code.
Function has its side effects. It's use as only once case is really questionable, justified by lack of other means.