I have seen alot of frameworks that generate stub applications, like Ruby on Rails for example, where most of the code is used for business domain logic, but why do we have generated code still. Wouldn't a library be better?
There are both justified and unjustified cases of code generation. However proper code generation can result to the following benefits:
A library will consist of common functions or classes that may be used as is in many applications. These frameworks do include libraries of code.
The generated code takes care of the scaffolding that you will need to write yourself regardless. Since most of it is pretty standard, it can be generated and the intention is you modify the pieces that you wish to.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With