More Bad Smells in Code

Photo by Obi Onyeador on Unsplash

Writing software is hard. There’re only a few ways to do it right and there’re many ways to do it wrong and make our lives hard.

In this article, we’ll look at some ways to write bad code by looking at a few codes smells.

Primitive Obsession

Programming languages like JavaScript have 2 kinds of data. They’re primitive values and reference values.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store