Someone explain why I should waste time on const and let in a solo project. No one else will ever work on this code except me and since I'm not retarded I know which of my variables shouldn't be changed. I even make them in ALL_CAPS just incase I'm drunk



There's literally no valid reason to write const DEBUG_MODE = true; instead of the cleaner version: DEBUG_MODE = true; if I type 35wpm and I have 500 less "const"s in my code that's 35 * 500 so guess what I just got my app to market 17,500 minutes before yours. That's 291 hours aka 12 fucking DAYS ahead of your launch that no one will give a fuck about because all your customers are already busy using MY app



The only one that should be used is var. Let is as pointless as const: if you're using the same variable name inside AND outside some nested shit, your code is just badly designed



Someone give me one good reason to use them cause I don't see the fuckin point

>>93114850 (OP)

>He doesn't have usual keywords on hotkeys so he doesn't have to type them

ngmi

>>93114850 (OP)

Because var has a fucking retarded implementation and they can't change it without breaking legacy site/software.

Same reason you should be using arrow functions.

>>93114850 (OP)

> Cant into scoping and mutability

You're not special you are the same as every other webshitter

>>93114850 (OP)

>if I type 35wpm and I have 500 less "const"s in my code that's 35 * 500 so guess what I just got my app to market 17,500 minutes before yours

it takes you 35 minutes to type "const" once?

im gonna be honest with you anon, you seem pretty fucking stupid and you also do not seem to have "soft skills" so you're going to get replaced by ai in like 5 years. just do something else with your life

All butthurt, no rebuttal. That's about what I expected

>you're going to get replaced by ai in like 5 years

YOU'RE the one who can't remember which variables he made that he shouldn't change even when they're in ALL_CAPS kek

you type 35wpm?

that's a self own if I've ever seen one

also

>using const for configuration options

loling at your unemployed ass

>>93114850 (OP)

i like LET so that i can have the same variable name somewhere else outside that IF

> Can only type at 35 wpm

ngmi

>>93114850 (OP)

>if I type 35wpm and I have 500 less "const"s in my code that's 35 * 500 so guess what I just got my app to market 17,500 minutes before yours

fucking lmao, good bait

Just always use let, never var or const.

As mentioned var is retarded

const is a edge case performance optimization you will never need.

>const is a edge case performance optimization

Using const over let has no performance implications at all. At least not in any popular javascript runtime today.

What's the reason for using arrow functions?

> He doesn't know how environment capturing works



Sigh. JavaScript is not C. When are you going to read SICP anon?

>>93114850 (OP)

Just turn on ES5 only and use var. Nobody cares what you do in your own code.

>i like LET so that i can have the same variable name somewhere else outside that IF

>this is good architecture

kek
