DEV Community

loading...

Discussion on: How is it like to be back from Node.js to PHP?

Collapse
gilbertoalbino profile image
Gilberto Albino

Once upon a time I thought about moving to Node.JS, and did a lot of work on learning it... but I didn't like it at all and left it behind with no excuses. Anyways, since I was so deep into JS, I frequently find myself writing code in PHP like:

MyObject.doSomething();

And once I did this:

$myObject = {
'prop1' => 'value1'
};

And this:
printf(${name}); // backticks ommited

And shame on me (could be using a debuging tool I know!)
console.log($myObject);

But that's funny and highlights how insane programming can be!