Good Code vs Bad Code

Why writing good code matters, and how to do it

Navdeep Singh
Jul 25, 2017 · 4 min read

When writing code in any language, there are good coding practices — and there are really bad ones.

Both may be correct as far as compiling and when they are run. But bad code can present some problems in development, debugging, and modifying. In the workplace, no matter how well your program runs, someone will have to read or alter your code at some point.

They may have to add new features, correct a rare bug, or they might just want to read it to understand how…

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account?

Navdeep Singh

Written by

Author of Reactive programming with Swift, Senior Software Engineer — Exploring possibilities with new Tech.

Better Programming

Advice for programmers.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade