PHP btfo Node.js

thinkmobiles.com/blog/php-vs-nodejs/

In every performance test, PHP destroys Node.js.
Anyone care to disagree? What is the best use for node.js? (I've never used it so I can't say).

Attached: 2000px-PHP-logo.svg.png (1328x334, 40K)

how does nodejs even PDO the sql statements? how is it gonna execute safe queries?

php for ever long live!

nodejs is asynchronous and json is better than xml. php is a horrible language 99% agree. its a dinosaur

you are just be dinosaur for extinction sir

given the random crap i got bombarded with reading this site and their testing methodology I have to feel like this whole thing is fake clickbait garbage to sell php consultancy.

node was always a meme

And Go destroys both. You shouldn't be using either.

Too bad PHP is a piece of shit that returns false for random shit (to be fair this is due to a lack of null initially but it's still dumb).

> What is the best use for node.js?

None. It's a complete meme.
Webshits use node to feel like a real developer.
Same apply for "modern web apps" bullshit which poisoned the web.

I bet you don't even have a job.

>php
>2018

Please provide your definition of "real developer"

This

>for loops in node
Nice "test" you got there.

Attached: 34es.jpg (225x225, 4K)

>Node vs PHP
throw in Ruby and Go, and you'll have the Special Olympics of programming languages

Attached: file.jpg (540x720, 41K)

>he needs to byte-compile his countless php scripts, because everything gets re-executed on every request
>he doesn't offload web application logic to the end user
>he doesn't run Ember fastboot
>therefore he renders plain and stupid HTML
>therefore he doesn't know what DOM re-hydration is
phpaggots B T F O

Who the fuck cares about performance of scripting languages? Or scripting languages at all for that matter? You'll never be respected.

>he doesn't offload web application logic to the end user
(You) are the reason the "modern" web is nothing but bloat and cancer. kys.

Attached: file.jpg (396x382, 41K)

Gamer manchildren.

>hurr durr, I want a static web experience like in the 90s
>hurr durr, I want to load the entire webpage and all its assets on every click
The reason why "modern" web development is bloated, is because of Pajeets who don't know their shit

Developing a website with node.
Async sql query.
Anonymous nested function nightmare.
>just use await (or other crap).
First you tell my that the force of node is the async and then you tell me to wrap everything in a funcking patch function to avoid it.
Really fuck off.

>being a brainlet

fucking brainlets

Attached: DKlARRk.jpg (541x625, 64K)

what does your image have to do with anything he said

>hurr durr, I want a static web experience like in the 90s
This but unironically.

>hurr durr, I want to load the entire webpage and all its assets on every click
images are cached
html/css are very few KBs each
I'd prefer it any day vs the modern web desu

Not that guy, but I maintain a meteor app for this company. And if it weren't for some asshole shifting all over the code base combined with JavaScript's cryptic debugging shit which btw doesn't even work in the version of meteor we're using, all three of us would be out of a job.. Like, we'd be able to do something more productive is what I'm saying.

Tldr; don't use node to "roll your own" ERP software

Rust

Attached: BQ8Tnyx.jpg (480x605, 34K)

This

>using node on a server
>not using node for frontend development only

>he doesn't offload web application logic to the end user
As an end user I refuse to be offloaded anything to. Web is a collection of resources served over a stateless protocol, not a collection of some gay-ass hipster "apps". I provide a resource identifier and expect to be served a resource, not 5 metric tons of non-free javascript I'm supposed to run in order to assemble an ephemeral "resource" for myself with the help of 381 Ajax requests and 11 trillion CPU cycles. Fuck off.

Attached: rustled.jpg (640x480, 58K)

you forgot to mention the bitcoin miners included inside the js script

My jimmies got so rustled, I misquoted.
was meant for this faggot:

I use Laravel. But I'd prefer to be able to write both backend and frontend in the same language to prevent having to re-write shit, frankly senpai.

Solution is to access the API's directly. Even fucking slimmer than HTML/CSS itself. View the other JS as just an "optional" app that you can use.
(I agree that most web apps are absolute dysfunctional horseshit though)

>1488 contributors

Attached: lol.jpg (608x402, 46K)

that's a rabbit hole
you will always have to rewrite shit
this will be your carrot in this life

Have you considered only rewriting your apps in Rust?

kys webshits

Too bad you don't use the features of the language.

>laravel

How do you enjoy the most pleb-tier framework? Abstractions of Symfony abstractions of PHP functionality.