News for hackers. Stuff that matters.
Re:Things every React.js beginner should know by preinheimer on Monday January 25, 2016 @11:53AM (#10968238)
I have no idea how starting with <?php in a file is relevant. Should we also start mocking languages that expect a given file extension?
Re:Things every React.js beginner should know by aikah on Monday January 25, 2016 @12:11PM (#10968365)
My point is that PHP renders text first and foremost, writing code in PHP is "opt-in" somehow. An HTML file for instance is a valid PHP file. AFAIK an HTML file isn't a valid Ruby or Python file. You don't need to tell the interpreter to kick in at first place. But that's not the main idea I tried to convey in my comment.
Re:Things every React.js beginner should know by gemma on Monday January 25, 2016 @01:51PM (#10969041)
Right, your comment argued that "view logic, domain/business logic and database boilerplate code intermixed in a single file" is not "ancient history in the PHP world". Which it is, regardless of the `<?php` tag at the top of all the files. How a source file is processed has no impact on how programmers choose to model their applications.
Re:Things every React.js beginner should know by mercer on Tuesday January 26, 2016 @12:38PM (#10974623)
Theoretically no, perhaps, but practically I think there is an impact.

I can't dump html into a .rb or .js file, so I'm less likely to do so as a beginner. On the other hand, starting out with php, that seemed like the logical thing to do. Because I could.

Re:Things every React.js beginner should know by recursive on Monday January 25, 2016 @01:50PM (#10969037)
Because it demonstrates that that pattern does not follow the default mode of operation for the language.