+ 1
Is modular coding is the best way to code?
It is better to create code-template and re-use them in many project... Tell me what do you think?
2 Answers
+ 6
Template code tends to be inefficient code as it is generalized to handle many cases. Custom code tends to be faster. It depends on what you are doing with it. In high speed gaming, you can't afford wasted time for template code. When processing a database to produce a report, a few extra seconds won't be noticed so by all means generalize the code.
+ 1
Thanks for your answer really helpful!