Re:CGI Using Node.js
by o_____________o on Sunday January 04, 2015 @03:44PM
(#8835758)
> show one of the ugliest parts of PHP, and that is when presentation becomes super tangled with business logic
You seen jsx?
Re:CGI Using Node.js
by jed_watson on Sunday January 04, 2015 @06:36PM
(#8836368)
Have you heard Pete Hunt's angle on "Separation of Concerns" vs. "Separation of Technologies"?
imo JSX doesn't fall into this trap, it just looks like it should.
His JSConf EU talk is worth a watch if you're interested: http://2013.jsconf.eu/speakers/pete-hunt-react-rethinking-be... (slides: http://www.slideshare.net/floydophone/react-preso-v2)
Re:CGI Using Node.js
by danabramov on Sunday January 04, 2015 @03:49PM
(#8835782)
Oh, I love JSX.
https://www.facebook.com/notes/facebook-engineering/xhp-a-ne...
I've been using XHP at work and love the improvements it has made to the new code we are writing.
Posting this might not seem relevant, but the examples of "replacing php with javascript" show one of the ugliest parts of PHP, and that is when presentation becomes super tangled with business logic.
XHP is really really nice for outputting the contents of an array into HTML (for example..it has many other really nice uses), and it would be very cool to see them do something like that.