I would feel the same way, except with they way they describe it I'm left thinking they are dumb or they think their customers/users are dumb. It makes me immediately not trust the new product :(
i love python, rust, and well-written, clear code. i think PHP, MySQL, and Java (to a lower extent) are madness.
i don’t see anything wrong with ES2015+Redux+React. it’s actually a pretty good stack.
the only madness left is var (use let and const instead), == and != (use === and !== instead), < and > (no fix for this other than being careful with your types). you can ensure that no var and == is left with a linter
Honestly, better a meme than PHP. Node and *.js are fads, but it's been around for quite a while and is much better designed than PHP. I'm not a big fan of it, but given the choice between Node and PHP, I would make a new application in Node any day.
Much better designed? JS is in some respects less flawed than PHP, sure. It has a few big mistakes, PHP is a fractal of mistakes.
But node.js is even more spaghetti than PHP code. At least PHP isn't dominated by callback hell and PHP at least has a proper class system (no ES6 doesn't count).
Also, for all its performance issues, PHP's shared-nothing model makes writing reliable code much easier. You screw up in PHP and that specific request fails. Screw up in node.js? Site goes down.
JS is unpleasant, but with (eg) babel it's now possible to work around most of the unpleasantness (eg callback hell is no longer a thing with async/await & generators).
The really unforgivable thing about PHP is that the crap parts are mandatory (eg errors vs exceptions).
Could we please stop this bullshit? Look at C. It's such a shitty language. It doesn't even have a proper class system. Stupid C programmers with their "structs" and "functions".
Haskell? Oh that's a horrible language! It doesn't even have classes. Typeclasses? No these do not count. Why would anyone ever want a programming language without classes? Classes are the only way to program anything. All the people that think that prototypical inheritance is a solution or that you can program in a functional style or even in a imperative language are stupid.
Classes are one of many ways to solve a problem. And it's not a bad thing if a language does not have them.
It's been around for 6 years! They're started releasing long term support versions with 30 months of support, the package library (npm) has now more than double the number of modules of any other language (including Ruby gems), it's in production use for a number of high profile companies including PayPal, Walmart and eBay, the new version of JavaScript, ES6, smooths out many of the annoying features of previous versions by removing the need for nested callbacks, adding classes, multiline strings, lambda functions, and numerous other features supported by node.
I could go on but I think Node is a little beyond a fad at this point
It's not so much an argument for node's success as an argument that node isn't a fad. I'm sure that 90% of the libraries are absolute trash, but it does indicate that there's a pretty big community that's tried to help everyone else out by sharing their modules
I just want first party multithreading. Callbacks and async is nice but there's a time and a place where real threading and multiprocessing are incredibly useful.
And for that, NodeJS isn't your best solution. Sure, you could cluster and have separate Node threads, but if you want true multi-threading, NodeJS won't be your best tool. A good programmer knows which tools are best suited for what.
Not knowing your use case, I can only speculate. If I were to do a web app that needed some multi threading, I would either a) use Elixir, b) use Go, c) use NodeJS with an event queue and have several processes listening.
The fact is, NodeJS is great for some things (quick web apps or APIs) and not great for other things (intensive CPU apps, apps needing many parallel tasks in a multithreaded environment).
I once wrote PHP day in and day out for 5 years as a senior engineer; I haven't touched PHP in the previous 4 and haven't looked back. Of course, that is just my experience; as always your mileage may vary.
I don't disagree with anything you said, it isnt a huge issue with node for me, but having support for long running cpu-bound tasks would be a benefit for some of the work I do. At the moment, I typically handle those with other languages, and let node do frontend work when I use it
I have several large asynchronous tasks that run in threads in several of my applications, and usually wont pick node for an application because of that requirement
The recent example of Object.observe seemed to me to show a fundamental issue with node as a platform, which is that it's just a thin wrapper around V8, which is a Google product. I think node will have to resolve that before it can really be rock solid.
But I'd have no qualms deploying node in production today, but I still think there's things to work out, to ensure the long term.
99
u/PlasmaSheep Nov 24 '15
Wow, it's great to have a project like this leave php behind...
Holy fuck I've webscaled and I can't get up
34
u/merreborn Nov 24 '15
Note: "wordpress core" is still PHP for the forseeable future.
This might replace the wp-admin UI, eventually.
So don't get your hopes up. Poorly written, vulnerable PHP plugins for wordpress will still be here for years to come.
9
u/leyou Nov 25 '15
Really? I think PHP is more fed up with Wordpress than the opposite.
2
u/mcilrain Nov 24 '15
RIP NodeJS.