Do you want to get better at writing high-quality code?
Here is what I would do:
- Study Object-Oriented Programming and Design patterns
- Try to introduce all the possible abstractions
- Have an epiphany all of a sudden
- Strive to simplify my code
- Prosper
This process typically takes a few years, as you can see in the graph.
The graph shows a code complexity curve across years of programming.
We all have to go through the phases of complexity to learn to appreciate simple code.
I'm somewhere past the epiphany phase, starting to appreciate simple code again.
I hope this is evident from the recent shift in my writing, advocating for simplifying things.
Of course, I still appreciate a good design pattern or two.