Full stack web dev.
Studying FP web development approaches, while helping Mission Bit create paths to programming for underserved public school kids.
Previously @ Gradescope.
Agreed, defaulting to const is useful if because then when you see a let you know it must get reassigned.
More generally, sometimes variables are "values," and sometimes they're "places," and to me it's worth an extra two characters to be clear about which I'm using.
It's not about avoiding any sort of actual risk -- just about writing code that better expresses its intent.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Agreed, defaulting to
const
is useful if because then when you see alet
you know it must get reassigned.More generally, sometimes variables are "values," and sometimes they're "places," and to me it's worth an extra two characters to be clear about which I'm using.
It's not about avoiding any sort of actual risk -- just about writing code that better expresses its intent.