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
-
everything are arrays, just because you don't have couple babysitting alias' doesn't mean the function is gone
https://github.com/Olical/tuple
https://medium.com/better-programmi...
https://medium.com/@ntgard/... -
@Elyz a lot of things ES6 introduced many other languages lack, that meme of "ughhh javascript guys LOOOOOL, am I right?" is more discrediting than funny most of the time in my opinion, same with php7+ in above quote.
I agree "sugar" is great, but if you need it out of habit and it is missing, you can implement it via module, extension or just use things like lodash. TS is also just a wrapper for JS. -
Elyz78095y@Ubbe I wouldn't personally have picked JS for what I am trying to do but alas. One doesn't always get a choice. I'd have implemented it in a functional language if I had free reins.
-
Elyz78095y@Ubbe oh yeah for sure. JS is not my preferred language but I see it has its uses. I'll just leave that to the people who understand how to use it better ðŸ¤
-
I think the most offensive thing left out of JS is actually enums. You can do
const MyEnum = {
a: 1,
b: 2
};
But if you need to personally type the numbers what's the point?
@JoshBent -
@AlgoRythm you forgot to freeze that object, otherwise it isn't an enum, also if you have more enum types than you're able/want to write values/numbers for, you need to refactor, handy trick isn't it? :)
I just learned Javascript doesn't have tuples and nearly cried and/or vomited all over my keyboard. Pls no.
rant
they better pay me extra for the suffering
i hate web
javascript
backend dev for life