Writing code is easy.
Writing code that your future self (or your teammates) won't hate is the real challenge.
Every developer starts with bad c...
For further actions, you may consider blocking this person and/or reporting abuse
Let's do a check list:
Yup. I aced it.
Fร ilte gu Alba!
Btw, below is a pic of our famous military hero Lance Corporal Cruachan IV with his trusty human servant on his side:
Modern problems require functional solutions! Can't have bad variable names if you don't use variables at all.
Python?
Dutch?! Ewwwww... nonono. Scottish, Glasgow :)
The naming and giant-function points matter even more now that a lot of code is machine-generated, because a model reuses whatever conventions it sees and single-letter names propagate fast. The one I would push hardest is the error handling, since a swallowed exception is the kind of failure that stays silent until it corrupts something downstream. Worth pairing these with a linter so the habit is enforced rather than remembered.
100% agreed! The point about AI propagating bad naming habits fast is so true. Also, swallowed exceptions are definitely the worst offender here. Automating these checks with a linter is a great takeaway to keep the codebase clean without the cognitive load.
hahaha I'm the one who doing this, I will not do this silly mistakes. thank you for this blog.
Welcome
Good
thanks
This is a fantastic checklist, and point #8 on nested conditions is a total game-changerโearly returns completely rescue code from the 'pyramid of doom' and make it instantly readable. I also love the bonus habit of walking away and reading your own code with fresh eyes. It is amazing how a simple 20-minute coffee break can suddenly make you look at your own logic like a stranger who desperately needs a friendly code review!
Thanks, Mia! Glad those points resonated with you. You nailed it nothing humbles a developer faster than looking at their own code after a 20-minute coffee break and wondering, "Who let this person near a keyboard?" ๐ Escaping the 'Pyramid of Doom' is honestly one of the best gifts we can give our future selves (and our teammates). Thanks for reading and sharing your thoughts!