Causes of bad code
As I mentioned in the previous chapter, I don’t have the intention of blaming those who write bad code. I myself have written bad code; it has happened in the past, it still happens, and it will happen again (I can already imagine my colleagues nodding as they read these lines!). In the vast majority of cases, those who write bad code do so without realizing it because we are human and can only handle a certain number of tasks at once. In our hearts, we have the desire to do a good job, something to be proud of, but in our minds, we have deadlines, and pressure, and we generally work within an ecosystem that we don’t fully control. Very often, companies are complex systems that may have clear rules (for example, regarding the methodologies to follow), but they have to deal with an increasingly hectic world, with time-to-market pressures, and the need to compete fiercely. There’s a way things should be and the way they actually are. As software...