image created by Margaux Peltat for the Chilled Cow YouTube channel
Time for #DEVDiscuss — right here on DEV 😎
Inspired by @samuel-braun's Top 7 post, tonight’s topic is...naming things 😱

Naming: Every Developer's Nightmare
Samuel Braun ・ Apr 18 '23
Questions:
- Do you have a favorite naming pattern for variables?
- What's the worst-named variable you've seen in the wild? Note: comments must abide by the Code of Conduct!
- How do you feel about naming? Love it, hate it, indifferent?
- Any triumphs, fails, or other stories you'd like to share on this topic?
I take the iterative view: I choose the first non terrible thing that comes to mind, make things work, commit, look at my naming choices again, notice those that are lying and refactor them
Also when naming something very important, I explicitly ask for feedback in the PR.