3 ms·
I quit programming once. I was 18; lots of distractions. The situation didn't last very long, and had hasn't happened since. Boilerplate code is conquered thro
by kazinator 6y ago
I quit programming once. I was 18; lots of distractions. The situation didn't last very long, and had hasn't happened since.
Boilerplate code is conquered through, in the order of least desirable to better:
- manual external code generation
- automated external code generation that repeats itself in each build
- automated internal code generation: macros
You don't want to be manually creating repetitive content with small variations; that's what computers are for.
You can regard boilerplate as challenge: how small can I get the specification of this? And then work on the generator from that specification to the boilerplate. The boilerplate is still boring, but the generator can have fun bits in it.