News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by steve_adams_86 on Saturday May 15, 2021 @02:37PM (#27167728)
I’ve worked with PHP and JS extensively and while I could almost agree from some narrow perspectives, I think JS is nowhere near where PHP was 15 years ago in any sense.

I was writing PHP 15 years ago. It wasn’t a great dev experience and the tooling was awful. JavaScript today has stellar tooling in comparison, and arguably less warts in its standard library than PHP still has today.

I really disliked JavaScript until I read some books that helped me understand what it’s doing under the hood. These days I just don’t have issues with it. Yeah, the ecosystem thrashes a lot and the tooling experience can be bad in regards to that, but otherwise it’s impressive lately. Even without TypeScript, intellisense on regular JS enables extremely streamlined navigation of references and implementations, refactoring, project navigation, tooling integration, etc. Not to mention modern profiling and debugging tools for JS are incredibly easy to use and benefit from.

PHP wasn’t at this stage even 10 years ago. The debugging story was still xdebug and tooling was improving but not great. Composer was painfully slow and buggy - nowhere near as nice as yarn and npm are now.

Yeah JS has problems, but I don’t believe it’s nearly as bad as old PHP.

Re:Modern Javascript: Everything you missed over the last 10... by BeefWellington on Saturday May 15, 2021 @03:52PM (#27168386)
> JavaScript today has stellar tooling in comparison, and arguably less warts in its standard library than PHP still has today.

There are a lot of reasons to like JavaScript as a language and NodeJS as a particular implementation. The standard library (or lack thereof) is absolutely not one of them as things stand today. I'm not even sure what you'd compare between them.

If you meant to say "package available at the other end of npm install" instead of "standard library" I could see that being a different story.

Re:Modern Javascript: Everything you missed over the last 10... by effable on Saturday May 15, 2021 @05:25PM (#27169172)
This may be a little off topic but your comment piqued my interest: I am currently learning JavaScript and I was wondering if you would like to recommend any of the books you read.
Re:Modern Javascript: Everything you missed over the last 10... by steve_adams_86 on Sunday May 16, 2021 @01:17AM (#27171408)
It’s been a while, but I really enjoyed the “You don’t know JS” series by Kyle Simpson. It explained a lot of the details I needed to understand in order to be proficient more consistently. Whether I was working on client or server side code, I felt like I understood my tools well enough to feel a lot more confident than I did before.

https://github.com/getify/You-Dont-Know-JS

Re:Modern Javascript: Everything you missed over the last 10... by sdfin on Saturday May 15, 2021 @06:11PM (#27169486)
I re-learned JS recently, https://javascript.info/ was an awesome resource and has almost anything you may need. Also MDN is good.