Adam Whatan recently published book and series of videos named Refactoring with Collections. In his book he talks about replacing loops and conditions using functions. So let’s begin discussing that here.
You are gonna make bugs and they are gonna end in production. That is the fact. Now the question is did any of You ever had to read bug report from customer about what they did to produce that bug? Most of the time is a mess isn’t it? You can’t relay on that. You need your own trace of steps of what customer did in order to solve the issue quick. Hence we introduced logging.
I hate my code. It’s true. I never wrote a single line of code that I liked the day after. You could ask a question that if I hate my code so much, how do I have the nerves to release anything to the world? And that’s the thing. I don’t overthink. Because if developers would overthink in general, nothing would be pushed to the production.
If You are anything like me, the most difficult part of some process is the start. When I want to do something for the first time, I always have difficulties beginning, and because of that a lot of my side-projects I had never started doing. So the technique to fight against that is to start from bare minimum and build on that, step by step.
When you are working for the company where every single mistake you make can cost the company hundreds, thousands or even a millions of euros or dollars then your process of developing applications for those companies must be test driven. This is especially important in the companies that have poor deployment automation process, where QA is done manually or even not existing and in companies that have huge project that are consisting of many smaller project and the fact that your small project is working doesn’t mean that the whole project is also bug-free.