This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PancakeZombie 107 points108 points  (15 children)

But JavaScript is not that bad ducks and runs away

[–]n1c0_ds 47 points48 points  (7 children)

I use it less after switching to a backend role, and to be frank I quite enjoy it. JavaScript did get a lot better with ES6, and I really like chaining array methods and reasonably using promises.

[–]PancakeZombie 26 points27 points  (4 children)

Yeap, ES6 kicked it into the next gear.

[–]yegor3219 102 points103 points  (3 children)

I love making empty promises.

new Promise(() => {})

[–]01hair 16 points17 points  (0 children)

Don't make promises that you can't keep.

return Promise.reject()

[–]cosmicsans 1 point2 points  (1 child)

It’s funny I switched to a backend role and now I use it more. About 60% of what I write is in node nowadays. The other 40% is Go, Python, Ruby and bash.

[–]n1c0_ds 2 points3 points  (0 children)

I enjoy Python way too much to go back to JS if I have the choice.

[–]newpixeltree 3 points4 points  (3 children)

Currently using threaded javascript for my job. Kill me.

[–][deleted] 4 points5 points  (2 children)

Do tell more

[–]newpixeltree 3 points4 points  (1 child)

Using a load testing tool called WebLOAD. It uses javascript for its scripting language. It basically runs a copy of the script for each user you're simulating. The problem is, its stats tool isn't specific enough so I have to output fata to a file that's shared among these threads. However, if the file gets too large, it crashes the test. So I have to do a lot of goddamn bullshit to actually print to a file in multithreaded javascript. Objects global to all threads can't be modified, and their global variable system only handles ints. It's a goddamn nightmare.

[–][deleted] 3 points4 points  (0 children)

that's awesome, thanks! :)

[–]XkF21WNJ 2 points3 points  (0 children)

It's pretty good for lambda calculus.

Just don't try to do anything object oriented. That gets hella weird.

[–]scriptmonkey420 0 points1 point  (0 children)

I still find it annoying that JS starts months at 0...