3 ms·
Can verify that if you give numerical methods people C you may get wonders like (e.g.) main() functions that are 30 pages long. No, I'm not kidding. I shudder
by Turing_Machine 9y ago
Can verify that if you give numerical methods people C you may get wonders like (e.g.) main() functions that are 30 pages long.
No, I'm not kidding.
I shudder to think what they'd have done with C++. :-)
- hzhou321 9y agoDon'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.