paint-brush
How to Find the Stinky Parts of Your Code [Part XLV]by@mcsee

How to Find the Stinky Parts of Your Code [Part XLV]

by Maximiliano Contieri13mOctober 15th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this series of code smell articles, five common coding issues are highlighted in each installment. The covered code smells include "Missing Break in Switch," which emphasizes the importance of "break" statements in switch cases to avoid hidden defects and enhance code readability. "Comma Operator" cautions against its misuse in JavaScript, advocating for its use primarily within loops. "Racial Naming" addresses the need to replace terms with racial connotations, like "whitelist" and "blacklist," with more inclusive alternatives. "Deodorant Comments" stress the importance of writing clean, self-explanatory code instead of using comments to excuse poor code quality. Lastly, "Pass by Reference" warns against passing arguments by reference, as it can lead to unexpected results and side effects, suggesting the use of argument copying and constants to enhance code reliability. These articles aim to improve code quality and readability.
featured image - How to Find the Stinky Parts of Your Code [Part XLV]
Maximiliano Contieri HackerNoon profile picture
Maximiliano Contieri

Maximiliano Contieri

@mcsee

I’m senior software engineer specialized in declarative designs and S.O.L.I.D. and Agile lover.

About @mcsee
LEARN MORE ABOUT @MCSEE'S
EXPERTISE AND PLACE ON THE INTERNET.
0-item

STORY’S CREDIBILITY

Guide

Guide

Walkthroughs, tutorials, guides, and tips. This story will teach you how to do something new or how to do something better.

L O A D I N G
. . . comments & more!

About Author

Maximiliano Contieri HackerNoon profile picture
Maximiliano Contieri@mcsee
I’m senior software engineer specialized in declarative designs and S.O.L.I.D. and Agile lover.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Buzzsumo
Muckrack