It's pronounced Diane. I do data architecture, operations, and backend development. In my spare time I maintain Massive.js, a data mapper for Node.js and PostgreSQL.
I've used ESLint for years; I keep telling myself I'll switch to prettier the next time I find myself writing an // eslint-disable-line or // eslint-disable-next-line but it never seems to take....
One thing to note, naming your magic numbers is all well and good but numOfIterations doesn't tell you anything that 10 didn't. If you're going to go to the effort, it should explain why, not just what (like comments!).
I've used ESLint for years; I keep telling myself I'll switch to prettier the next time I find myself writing an
// eslint-disable-line
or// eslint-disable-next-line
but it never seems to take....One thing to note, naming your magic numbers is all well and good but
numOfIterations
doesn't tell you anything that10
didn't. If you're going to go to the effort, it should explain why, not just what (like comments!).I said about it in the article.
But it's good advice in general. Variables should be taken care more than they actually are.