4 ms·
I've been programming in PHP since 2007 and I absolutely love it. I've long ignored the hate for it here. I worked hard and followed best practices to get good
by thrusong 6y ago
I've been programming in PHP since 2007 and I absolutely love it. I've long ignored the hate for it here. I worked hard and followed best practices to get good at PHP.
In 2015, I started writing "projectionist" software in PHP to completely automate my home theatre.
I was a projectionist at three different theatres for about half a decade. I spoke with old-timers to really get it right and have been tweaking this script regularly ever since.
I've got a Netflix-style website for my movie collection. I can watch a feature either in my browser or choose to play it in the cinema. I can even schedule a feature for 7:00pm and it will wake-up 30 minutes before with music and nice lighting, assemble all the dancing hot dog ads and trailers, play it, turn the lights on for the credits, and shut itself down 30 minutes after.
The little ODROID running the whole theatre opens a chat room connection over XMPP with my servers so it can respond to controls in the app, whether I'm adjusting lighting or sound levels, putting it in Desktop mode, or manually controlling the curtain and projector.
I just ignore the PHP hate because I find it extremely powerful- it can do everything I could ever need. I also always want to keep an open mind.
https://www.youtube.com/watch?v=Cc8K6lg7Ag8 https://www.youtube.com/watch?v=Cc8K6lg7Ag8
- infamia 6y agoThis is fantastic! Do you have a code repo somewhere?
- thrusong 6y agoUnfortunately, no, I haven't published the source code. I'd maybe like to commercialize it in the future, but it would require either some tech to compile PHP or would need to be re-written. I think it's a really simple system overall... It uses XMPPHP (updated for PHP 7) and otherwise it's just a lot of loops, network calls, and proc_* functions.