Code Maintainability, And My Frustration With Some Developers.
Can I just give you an honest rant for a minute about my frustration with some of the developers I’ve worked with in the past? OK? good. I was discussing the principles of OOP with a Java student a few minutes before writing this, and it made me reflect a lot over people I have worked with in the past, and the struggle it creates when a developer’s code is unmaintainable.
So, for those who have worked with me in the past, they’re fully aware how picky I am about code maintainability (with the other principles of OOP supporting that specific ethic, such as one object only having one responsibility and such). I’ve always said if I need you to comment your code to even grasp what it’s supposed to be doing, then it’s too complicated and needs refactoring. Most people take this on board, but then you get those special snowflakes. You know, that one guy/girl you work with who writes code in the laziest fashion possible? That one guy/girl who is a nightmare to work with because he/she follows literally zero conventions? You know who I’m on about.
People like this. They wind me up to no end and make my job so much harder than it needs to be. I’m not saying I’m a saint, I’ve written some code in the past I’m not proud of, but at least I do my best to refactor it and make it readable for other devs that might come along and alter my code, and I have learned from it. This profession is all about self improvement. Every situation is different in some manner, so you need to have your mental toolbox to be ready to deal with anything. These people though. Oh no. It’s their way or nobody’s. It’s like trying to speak Welsh to someone who only speaks Japanese, you’ll get nowhere with them and you’ll get frustrated at that fact.
If you don’t refactor your code, or keep it at the very least moderately maintainable, I implore you to sit down and get into the habit of it, you’ll be saving so many other developers so much time, and yourself in the future if there is a bug with what you have written. Don’t rely on comments alone. Seriously, don’t.
tl;dr: stick to the principles, don’t make a spider web of code other devs can’t unravel, don’t rely on comments to get other devs, as well as yourself, to be able to understand the code if you ever have to return to it. It makes panda sad.











