3 ms·
I think Rails made a good decision by adding code generators and calling it 'scaffolding'. The rails CLI will give you all the CRUD you want. Of course, a lot o
by ljm 3y ago
I think Rails made a good decision by adding code generators and calling it 'scaffolding'. The rails CLI will give you all the CRUD you want. Of course, a lot of libraries try to abstract that with DSLs or extra boilerplate.
Doing it at runtime is a lot more difficult and complicated; why not just use parameterised templates to create the right files in the right place?