Hacker News new | ask | show | jobs
by pavlov 3740 days ago
I had to work on an ES5 project recently and I was almost in tears because I couldn't use a computed property. (someObject[someValue]) I wound up writing a switch to assign the correct index, and I felt very sad about my life.

Just checking -- is this a parody of a JavaScript hipster, or do you seriously get depressed by writing a switch statement?

2 comments

I can't speak for the gp, but I get irritated when I can't use newer language features... pretty much everything I use is in stage-2 supported via babel at this point, so pretty happy...

That said, when I have to work in an older project without babel, it gets cumbersome to change into doing things the old way. You can get really used to arrow functions and async... Working without cjs modules is harder still. There are many layers of convenience, and it's easy to get used to them.

I might have been a little dramatic. :3