What's the worst coding practices you have seen(or done!)?
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:
&&
,||
,!
withif-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. 😄