News for hackers. Stuff that matters.
Re:Structure and Interpretation of Computer Programs – JavaS... by vmchale on Wednesday December 18, 2019 @10:54AM (#21826089)
> JS is a great language

literally no one believes this

Re:Structure and Interpretation of Computer Programs – JavaS... by MisterOctober on Wednesday December 18, 2019 @11:32AM (#21826523)
I like JS. I use JS daily. JS is part of the workflow for nearly everyone I know who works with code. For me, ES6 is fantastic to use. Some of the better books on JS [I'm thinking specifically of Haverbeke's "Eloquent Javascript"] are general computing classics in their own right.

I used to be a snob about JS, due to the fact that in the 90s / early 2000s, it had major shortcomings and produced a lot of slow, crashy web pages. But when I learned modern JS, I realized that it is now a fully mature language equal to any other, and easily used in a huge variety of contexts [thanks in no small part to Node]

Re:Structure and Interpretation of Computer Programs – JavaS... by LandR on Wednesday December 18, 2019 @05:44PM (#21830255)
I have to use Javascript almost daily at work, I hate it.

Up until a year ago or so I hadn't really had to use it much, I'm finding it so bad I'm seriously looking at how I can get into an alternate career. Working with JS is a profoundly miserable experience.

I hate what this industry has become.

Re:Structure and Interpretation of Computer Programs – JavaS... by MisterOctober on Wednesday December 18, 2019 @06:46PM (#21830698)
what were you using before JS, and in what domain is the work? Genuinely curious
Re:Structure and Interpretation of Computer Programs – JavaS... by LandR on Wednesday December 18, 2019 @08:35PM (#21831299)
Previously I was working on C# and SQL. I'm no fan of either of those, but at least with C# I can understand what the designers were thinking. Ideally I would be working in Clojure if it was up to me. Or Scala or F#.

Now it's Javascript as that is the code base our client uses. The client runs a number of production factories and have an internal web app that is mostly Javascript on the front end for monitoring these production lines.

It's made me angrily punch my desk and consider just quitting on the spot on a number of occasions.

I don't know how anyone tolerates using this day to day and doesn't want to jump off the roof. It's absolutely idiotic.

Re:Structure and Interpretation of Computer Programs – JavaS... by ryeights on Wednesday December 18, 2019 @12:47PM (#21827321)
JS is a terrible language. The amount of pitfalls, language features you must avoid, and obscure paradigms you must follow to make JS usable is mind-boggling. Just because you can use JS well doesn't mean it's a good language.
Re:Structure and Interpretation of Computer Programs – JavaS... by ahuth on Wednesday December 18, 2019 @04:18PM (#21829586)
Out of curiosity, what languages do you think are good ones?
Re:Structure and Interpretation of Computer Programs – JavaS... by CalChris on Wednesday December 18, 2019 @05:56PM (#21830340)
Scheme is a good programming language.
Re:Structure and Interpretation of Computer Programs – JavaS... by ryeights on Wednesday December 18, 2019 @04:52PM (#21829852)
Good? That's harder to answer. Not terrible? Java, C, Python, C#, Swift, Go...
Re:Structure and Interpretation of Computer Programs – JavaS... by ausjke on Wednesday December 18, 2019 @01:11PM (#21827543)
no longer is too good or too bad, it depends on how much time you spent on it and how good you're at it actually.
Re:Structure and Interpretation of Computer Programs – JavaS... by TurkishPoptart on Wednesday December 18, 2019 @04:37PM (#21829730)
Here's a link to that book you mentioned if anyone needs it: https://eloquentjavascript.net/Eloquent_JavaScript.pdf

Thanks, I'm reading it now.

Re:Structure and Interpretation of Computer Programs – JavaS... by fhfghfghgf on Wednesday December 18, 2019 @03:01PM (#21828757)
>JS daily. JS is part of the workflow for nearly everyone I know who works with code.

What about there being no choice when you want to do almost anything web related

WASM ain't mature yet.

Re:Structure and Interpretation of Computer Programs – JavaS... by scottoreily on Wednesday December 18, 2019 @03:11PM (#21828874)
Are you pretending that there's not a fair amount of devs writing Node services?
Re:Structure and Interpretation of Computer Programs – JavaS... by tombert on Wednesday December 18, 2019 @12:45PM (#21827294)
While I certainly wouldn't call JS "great", I actually do genuinely like a lot of parts of it. I like the Lispey style of embedding data structures (hashmaps and arrays) directly into the language, and I like that it has somewhat popularized some functional techniques and made them mainstream.

While callbacks aren't a great way of doing continuation-passing, at least we can credit JS with making continuation-passing mainstream.

In combination with the fact that JS actually does work pretty well on both frontend and backend, it is a language I use semi-regularly for prototyping, given its flexibility. Granted, if I decide to make a "real" version of the project, I'll probably do it with a more functional language, but I think JS doesn't suck too bad.

Re:Structure and Interpretation of Computer Programs – JavaS... by tchaffee on Wednesday December 18, 2019 @12:50PM (#21827348)
I love it and think it's a great language. It has bad parts, but they are easy to avoid, especially with a modern linter. So there you go. You're wrong. At least one experienced developer who has coded in many languages thinks JavaScript is a great language.
Re:Structure and Interpretation of Computer Programs – JavaS... by ajna91 on Wednesday December 18, 2019 @11:22AM (#21826410)
It's certainly been pleasant so far as I've been learning 2d game development!
Re:Structure and Interpretation of Computer Programs – JavaS... by zbtaylor1 on Wednesday December 18, 2019 @11:09AM (#21826268)
The non-vocal majority does.
Re:Structure and Interpretation of Computer Programs – JavaS... by bryanrasmussen on Wednesday December 18, 2019 @04:53PM (#21829860)
Literally Douglas Crockford made a second career out of believing this.
Re:Structure and Interpretation of Computer Programs – JavaS... by lowtolerance on Wednesday December 18, 2019 @01:48PM (#21827909)
Literally no one is impressed by your cynicism.
Re:Structure and Interpretation of Computer Programs – JavaS... by colejohnson66 on Wednesday December 18, 2019 @12:20PM (#21827064)
JavaScript may have its quirks, but TypeScript is a great improvement. And with a few tweaks to your package.json, you can code in TS for Node.js!
Re:Structure and Interpretation of Computer Programs – JavaS... by rounce on Wednesday December 18, 2019 @02:07PM (#21828131)
What are these tweaks you speak of?
Re:Structure and Interpretation of Computer Programs – JavaS... by colejohnson66 on Wednesday December 18, 2019 @02:34PM (#21828425)
Just do a search for “use TypeScript with Node”:

https://medium.com/javascript-in-plain-english/typescript-wi...

https://blog.risingstack.com/building-a-node-js-app-with-typ...

Basically, you install the `typescript` package which gives you `tsc`. Then you configure Node to run your program with `tsc` through your package.json.

Re:Structure and Interpretation of Computer Programs – JavaS... by Kwantuum on Wednesday December 18, 2019 @12:54PM (#21827385)
I do.
Re:Structure and Interpretation of Computer Programs – JavaS... by jasonmcaffee on Wednesday December 18, 2019 @11:14AM (#21826319)
I do.
Re:Structure and Interpretation of Computer Programs – JavaS... by erikpukinskis on Wednesday December 18, 2019 @11:23AM (#21826423)
I love ES5. The language has gone downhill though.
Re:Structure and Interpretation of Computer Programs – JavaS... by mpfundstein on Wednesday December 18, 2019 @05:03PM (#21829948)
Now thats an unusual viewpoint? Could you elaborate why you think so?

I personally found js terrible before es6 and love it since then

Re:Structure and Interpretation of Computer Programs – JavaS... by erikpukinskis on Friday December 20, 2019 @07:33PM (#21848678)
Here are some things I find problematic: https://news.ycombinator.com/item?id=21848597

But I’m happy for you that you like ES6. You all own the language now, so enjoy it. Us ES5 folks are going to have to rewind and fork so we can have a community again.

Re:Structure and Interpretation of Computer Programs – JavaS... by colejohnson66 on Wednesday December 18, 2019 @12:19PM (#21827053)
What about ES6?
Re:Structure and Interpretation of Computer Programs – JavaS... by WilliamEdward on Wednesday December 18, 2019 @02:32PM (#21828410)
I do. I love vanilla JS especially. The way it interacts with the DOM and the way JSON works makes more sense to me than most other languages, and this is coming from a python user and newly lisp user.

Not everyone has the same brain as you. People enjoy things you don't understand.