Comment Re: Not a dev (Score 5, Insightful) 241
Comment Re: Should systemd be rewritten in Rust? (Score 1) 436
Comment Re: Xinuos OpenServer 10 (Score 1) 436
Comment Re: I'm al looking to move away from the Mac (Score 1) 315
Comment Re: I'm al looking to move away from the Mac (Score 4, Insightful) 315
If you go for a 512GB SSD at $1,150, you're only saving $420 on a new 2.0GHz MacBook Pro.
Who the hell thinks "only" a $420 discount on comparable hardware and build quality isn't a great deal?
Comment Re: Woha... (Score 3, Informative) 315
Comment Re:What comes to your mind ... (Score 3, Informative) 131
Comment Re: In other words... (Score 2) 359
Comment Re:JavaScript / python / enterprise env. (Score 1) 331
Comment Re:JavaScript / python / enterprise env. (Score 2) 331
How do you say stuff like:
In the grand scheme of things, javascript is still a very very young language, especially since ajax and ES5/6 and JIT compilation came along.
with a straight face? Javascript has been an ISO standard since 1997! It's just a few years younger than python FFS.
AJAX is a pattern used within in-browser javascript, having nothing to do with the language itself, and yes, 5/6 look much different than 1.... much like you can't run python 3 code in a python 1 interpreter.
Comment possibly (Score 1) 341
Migrated probably isn't the word. But my company has done some pilot projects from scratch in Node. There are some advantages:
- Node is usually comparable or better in terms of performance and resource efficiency
- Node projects seem to get to a MVP state very quickly.
- The event-driven model is a very good solution to SOME problems.
There are some disadvantages:
- The number of choices you have for different stack layers can be paralyzing. Example: we had to interface with an MSSQL database. 6 different libraries were evaluated, two were found to meet requirements, one was settled on. A month later a new requirement was added which meant we had to switch.
- if you are not very careful things can go spectacularly wrong with your dependencies (see: lpad disaster)
- callback hell is trying to trace a chain of callbacks for debugging. Promises have helped... some.
If developing something new I tend to look for ways that node can be used first, mostly because we're still trying to work out our stable development pipeline about 9 months after it started. Unless it was required I probably wouldn't choose PHP, only because the composer chain has more or less the same pitfalls of NPM, neither PHP nor node has any typing to speak of, and PHP has its rich history of inconsistency still weighing heavily upon it. to get top-notch performance out of it, you've gotta use something like HHVM which is less forgving.
Working with a legacy base, ask yourself: can this self-contained bit be written in node as a bridge to an eventual php-free-future? Does the event model make sense for the problem at hand? Will it incur unnecessary technical debt? If the answers are yes, yes and no... then develop that part in node. No reason to rebuild working PHP parts unless you actually need to rebuild them anyway.