Identifying bad code

Now that we’ve seen an example of code that’s difficult to work with, and understood how it came about, let’s turn to the obvious next question: how can we recognize bad code? Admitting that our code is difficult to work with is one thing, but to move past that and write good code, we need to understand why code is bad. Let’s identify the technical issues.

Bad variable names

Good code is self-describing and safe to change. Bad code is not.

Get hands-on with 1400+ tech skills courses.