My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

What's the worst coding practices you have seen(or done!)?

Tapas Adhikary
·Aug 7, 2019·

1 min read

No offence, each of us must have either seen or (mostly) done/followed some Coding Practices that we are not so proud of 😆.

Let's be honest here and post what those are. It would be great to see those with some examples, if possible!

To start with me, so far most horrible coding practice I had in two places:

  • Loops: I have written for loops that are nested to 4 levels with iterate variables named as, i, j, k, l etc... When I look back, damn 😬!
  • Logical Conditions: &&, ||, ! with if-else. I have made blunders in past where I wrote some if-else along with && and || that finally sounded very illogical and had to re-factor.

As Programmers, every day is a new day with new learning. I have learned too from my horrible programming practise mistakes. I am still learning!

Let us know yours. 😄