News for hackers. Stuff that matters.
Re:Taking PHP Seriously by jafaku on Monday January 13, 2014 @09:09PM (#7054940)
PHP is a server-side language as you might now, so you are not replacing anything of it with Angular for the frontend, that's just an addition.
Re:Taking PHP Seriously by SCdF on Monday January 13, 2014 @09:32PM (#7055011)
Krapp's right, but to clarify: PHP that generates HTML that uses jQuery is getting replaced with Angular that talks to the server via a REST interface written in Scala / Spray.
Re:Taking PHP Seriously by krapp on Monday January 13, 2014 @09:20PM (#7054972)
Angular can replace much of the MVC work typically done by a backend framework and template engine, by having it be done in the browser.
Re:Taking PHP Seriously by coldtea on Monday January 13, 2014 @11:25PM (#7055368)
>PHP is a server-side language as you might now, so you are not replacing anything of it with Angular for the frontend, that's just an addition.

Not really. Perhaps you've missed all the "front side templates" thing. You can for example remove all PHP templating code, and just send JSON to be converted to HTML client side.

Besides, your dichotomy is invalid in general too. You can do lots of backend stuff in the front end too, if you want. E.g if you have a PHP script that converts a POST text variable into Markdown, you can opt to do it in the client, with a Javascript Mardkown lib. You can do calculations, you can use the canvas to generate images you used to do with GD, etc.