I have coded with some difficulty lately. I’ve been wrestling with the code. But it isn’t because the code is hard, it is because it must be good. It must be better thought out. It must be the best I can produce.
This has lead to less code over all, but that code has been cleaner, easier to read, and makes my life much easier because of those things. It’s part of my attempt to continue to be a craftsman.
1) write the tests to break my code
2) write my code until it works
3) write that code cleaner and better
This isn’t revolutionary by any stretch, but I’ve been disciplined about it, and that’s been key. Discipline is revolutionary.