Hacker News new | ask | show | jobs
by aussieguy1234 966 days ago
As much as I like PHP and JavaScript, as the README in this repo alludes to, this is cool concept but its not a good idea to actually use this.

Some of the worst code I've had to maintain are weird mixtures of PHP/JS all in the one view file including where you have PHP generating JS/interpolating in variables.

PHP as a templating language alone is actually pretty decent, but you need to keep the JavaScript separate to keep things clean.

1 comments

I'm not sure if it still has it but the Wordpress login file had some mix of JS and PHP a few years back.