A good starting thought, except you will run out of generic namespaces like key or name very soon 😂. So the thinking behind “should I const it?”, should be whether is it generic? If so, use let over const.
Actually so are mine. I tend to be a little verbose.
However, I'm quite drawn by Ryan Dahl's (guy behind Node and Deno) style.
So nowadays I'm a little bit of both.
The other trick I learnt is that your eyes can read text with missing characters in-between, as long as the start and the end characters remains the same. So you can start to shorten using this trick.
i loved the rhythm 😃
a huge portion in the community agrees on the same,
but i believe in making it more flexible as for some use cases variables are made to be updated, and for newbies, I am not sure if it is easy to know when you cannot form the early start,
but after all, i totally agree
I agree it's weird learning curve for newbies. I also enforce this convention with ESLint no-const-assign . This means that whenever I try to reassign a const, my linter will remind me to convert it to a let.
const
till you can't is my rule. Simple and works well for me :)A good starting thought, except you will run out of generic namespaces like
key
orname
very soon 😂. So the thinking behind “should Iconst
it?”, should be whether is it generic? If so, uselet
overconst
.my other convention is to never allow generic namespaces haha . My code is scattered with long descriptive variable names.
Actually so are mine. I tend to be a little verbose.
However, I'm quite drawn by Ryan Dahl's (guy behind Node and Deno) style.
So nowadays I'm a little bit of both.
The other trick I learnt is that your eyes can read text with missing characters in-between, as long as the start and the end characters remains the same. So you can start to shorten using this trick.
var nvrAllow, gnrcNmspaces
Agree.
i loved the rhythm 😃
a huge portion in the community agrees on the same,
but i believe in making it more flexible as for some use cases variables are made to be updated, and for newbies, I am not sure if it is easy to know when you cannot form the early start,
but after all, i totally agree
I agree it's weird learning curve for newbies. I also enforce this convention with ESLint
no-const-assign
. This means that whenever I try to reassign aconst
, my linter will remind me to convert it to alet
.see the following - eslint.org/docs/rules/no-const-assign
oh🤩,
i have not tried that before,
it looks handy,
thanks for sharing🙏