Is modular coding is the best way to code? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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?

24th Apr 2018, 8:58 PM
Nicolas Sauvage
Nicolas Sauvage - avatar
2 ответов
+ 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.
24th Apr 2018, 9:42 PM
John Wells
John Wells - avatar
+ 1
Thanks for your answer really helpful!
24th Apr 2018, 11:21 PM
Nicolas Sauvage
Nicolas Sauvage - avatar