11 Bad Practices in Software Development (and Their Alternatives)
Software developers often have to contend with the consequences of bad practices (either their own, or those of other developers). How many of us have looked at code we wrote a few years ago and thought "What was I thinking ?" Or, looked at code someone else wrote and thought the same thing? Unless you are a perfect software developer who only works with his or her own code, chances are you've been bitten by some of the bad practices listed below...or have inflicted some of them on others (shame!!!!!)! Here's a list of 11 of my least-favorite software development bad practices. 1. Copy/Paste Coding So you've got some complex code to implement, but it's already been done in your codebase, so rather than doing it all from scratch, you just copy an existing block of code and modify it to suit your needs. This saves time, right? Maybe in the short term , but it can lead to duplicate code (which we'll discuss shortly), unnecessary code (code that was copied b