r/javascript • • Sep 15 '15

I'm a c++ programmer. Please sell me on javascript.

Not a troll post. Please read this as an earnest letter from a wizened programmer new to the whole JS thing.

Some background. I'm a polyglot programmer with professional experience in C, C++11/14, Haskell, Erlang, Elixir, Lua, Ruby, Python, PHP, and even some Javascript and other scripting languages too (throw in CUDA, HLSL, GSL, PSSL, etc). I've written my own compilers and am generally very comfortable thinking about type theory and language semantics. I have a heavy bias towards managing my own memory because I like predictable runtime behavior and work in memory constrained devices or consoles.

My issue is with Javascript. The whole world is slowly converging on this language that more or less materialized out of thin air with the advent of the browser. I want to be open minded and like it, but I can't get over its, shall I say, "deficiencies." By deficiencies, I mean a lack of all the standard built-in abstractions that make an enterprise language an enterprise language.

That said, I worry that my perception is potentially unfounded and I am suffering from biases that are clouding my judgment. So now I'm turning to you /r/javascript! If you came from a world similar to mine, and have come to terms with investing in javascript, I'd love to hear your opinions. Alternatively, maybe I'll learn that JS is just going to stay whether I like it or not so I should just suck it up and deal with it.

edit: I appreciate the time people took to write responses! It will take me a while to read it all.

1 Upvotes

77 comments sorted by

View all comments

Show parent comments

1

u/ImAPyromaniac Sep 15 '15

Why not just use npm scripts then? Or child_process.execSync (or whatever)?

1

u/sime Sep 15 '15

I do, but sometimes something a little bit more sophisticated is needed.

1

u/callumacrae Sep 16 '15

So what do you actually want? You're saying no to calling the tools directly because you want more, and you're saying no to gulp plugins that are very thin wrappers around the tools or sometimes just the tools themselves, because you want less.

Clue: There is no middle ground. You're looking for an integer between 2 and 3.