News for hackers. Stuff that matters.
Re:PHP 7 Virtual Machine by aphextron on Monday April 17, 2017 @02:41AM (#14129566)
It has come a long way. My last job was at a big PHP shop, which had a heavy focus on doing PHP The Right Way. The result was a fairly decent, maintainable codebase. I came to really appreciate the flexibility and ability to just "make things work" that PHP has, while finally having a proper development environment with real dependency management and IDE support.
Re:PHP 7 Virtual Machine by david-given on Monday April 17, 2017 @09:58AM (#14130881)
Do you have any pointers to the recommended Right Way to do modern PHP? I'd be interested to explore it; I have a number of places where I want to add tiny bits of interactivity to otherwise static web pages, and this totally seems to be what PHP does best.
Re:PHP 7 Virtual Machine by Mahn on Monday April 17, 2017 @10:07AM (#14130950)
http://phptherightway.com is a good place to start, if you haven't read it before. It's opinionated, and not necessarily a guide follow down to the letter, but it can put you on the right track.
Re:PHP 7 Virtual Machine by david-given on Monday April 17, 2017 @12:41PM (#14132317)
Ha ha --- I should have thought to search for that!

It seems to be a bit light on advice in places. e.g. the section on comparison operators lightly mentions the difference between == and === but doesn't say anything about when they should be used. As that's one of the traditional PHP gotchas I would have expected more there.

Anyway, thanks; I'll check it out.

Re:PHP 7 Virtual Machine by jdpedrie on Monday April 17, 2017 @10:04AM (#14130928)
Re:PHP 7 Virtual Machine by matthewn on Monday April 17, 2017 @09:09PM (#14135775)
O'Reilly's "Modern PHP" (270 pages) is a fantastic introduction to the new way of doing PHP.
Re:PHP 7 Virtual Machine by Sunset on Tuesday April 18, 2017 @04:16AM (#14137202)
What was your IDE of choice at that shop?
Re:PHP 7 Virtual Machine by Seldaek on Tuesday April 18, 2017 @04:54AM (#14137321)
I think PHPStorm from JetBrains is the IDE of choice of most PHP devs using IDEs at this point. They completely own the market, and rightfully so (I'm still stuck on Sublime Text myself, but wouldn't consider any other IDE than PHPStorm if I were to use one).
Re:PHP 7 Virtual Machine by Aeolun on Tuesday April 18, 2017 @05:05AM (#14137349)
How are you stuck on Sublime Text?
Re:PHP 7 Virtual Machine by aphextron on Tuesday April 18, 2017 @01:08PM (#14140608)
PHPStorm all the way. It integrates perfectly with Xdebug and you end up with an environment almost as good as Visual Studio or Eclipse debugging.