There is a lot of people telling you that you should write perfect clean code. But no one really tells you exactly how.
Hint: If you've been into programming for a while I'm pretty sure you already heard about some books on design pattern. But I will not talk much about it here. Rather, I would like to talk more about my experience in writing a lot(mostly random stuff and pure consciousness
But through my years of experience of writing code for work and client project. I come to the conclusion that writing clean code in the first time doesn't really work for me. Since I start to overthink too much if I do it. Sounds like I start to supper analysis paralysis and I couldn't start anything.
I've found this interesting tag line from clean blog.cleancoders.com when you are writing test case for your code but could be applied even if you are not writing a unit test for your code.
- Make it work
- Make it right
- Make it small and fast.
The important thing that I learned in writing was to just dump all of your ideas in your screens/notebook and you could edit and revised it later. There is no need to worry about grammar and perfecting it. What matter at the first stage is to put all of your thoughts into writing.
To be continued..