Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Wasn't const another shit pile of JS as const not meaning 'immutable' but rather constant reference?
You can change the objects properties.... *Gnihihihi* -
@IntrusionCM Not sure about JS. This is Kotlin so const value is set during compile time and then immutable.
Unless you know the exact memory address and tamper with that 🙄 -
@IntrusionCM yes you are 100% correct, `const` in JS does indeed mean a constant reference.
A constant reference to a mutable object still allows you to mutate that object, just not change the reference.
Java has the same behaviour with the `final` keyword by the way, create a `final` ArrayList<String> and watch how you can still insert and remove items from it -
@LordPeeve my mistake.... I genuinely thought it was JS Oo
At least Kotlin does it right - the first time I read about JS let / const I was like.... What the fuck is wrong with you people?! -
@Krokoklemme Well without it wouldn't work at all 🤣 I'm sure who ever wrote it thought one is American the other one must be British spelling 😂😂😂
-
@Techno-Wizard Didn't even notice until now. It's to ensure "Bearer <token>" has the space 😂
-
bols597795yI learned everything I know about grammar in second grade. That would've been...1966. Fork Lane Elementary, Hicksville, Long Island, New York. I too am gobsmacked at the errors made, esp. in a performance review.
One review I rec'd was so transparent written by somebody who was functionally illiterate that I nearly rewrote it and handed it back to her. But she was a friend of mine at work and I'd never, ever do that to anybody. -
The codebase in my company is a mess of French and English variables. Wait a minute, the mess might be because of me using English. :p
-
cst199221165yIt seems the guy can't type without looking at the keyboard.
Learn to touch-type people. It pays. -
eeee31505y@CircuitRCAY it translates to a final getter, i.e. there is no setter. The getter might or might not return the same result.
-
eeee31505y@CircuitRCAY in this example, y will return a different value on every call to its getter. The getter is final, the result is not!
-
2020: hindsight isn't
2021: the total death of standards
2022: we've always been at war with east asia. Whats a "standard"?
2023: Everythings on fire. This is fine. Two legs bad. Four legs good.
2024: Gronk light fire with magic stick. Grunk eat captured warring tribe memeber! What is good in life? (asks Grank). "To drive your enemies before you and hear the lamentations of their women."
2025: Fallout but instead of super mutants everyones just gets super ebola-aids and dies of radioactive cancer. The super-elite then rule over the earth with their harem of mars-colonist semi-intelligent tesla sex machines.
2026: In the grimdark future there is only rollercoasters leading to ovens and CRT classrooms, and masturbation machines.
Hail Clippy.
Related Rants
Not sure what triggers me more:
a) the fact that nowadays no one can type/spell without auto-correct
b) that this passed code review
c) that no one corrected it in 12 months since it's been committed
rant
spelling fuck
enganeer
code review