My first #fediverseBot is finally live! @LaDiaria posts news from the 🇺🇾 newspaper @ladiaria directly from their RSS feed. As bots go, it's really simple but the reason I'm so happy is that's running from my own implementation of an #ActivityPub compatible server made with #Laravel and #PHP. There's still plenty of work to do, but for now, the basics are there and I wanted to test it in the wild.
@cnx@SuitedUpDev I disagree. #Javascript is a terrible, terrible language in many ways. Which is highly ironic since Javascript "developers" always love to shit on #PHP by parrotting the "fractal of bad design".
@katalyst a good IDE can be very helpful, also if you are starting out. Jetbrains’ #phpstorm is very powerful and has lots of good tools, and already is IMO helpful fot beginners. For indepth php development, you will likely want to learn about frameworks such as #laravel and/or #symfony. #phpunit, #composer are two tools which are available within e.g. phpstorm which you very likely want to learn (about). Lots of resources on the net, though the official docs at php.net are often probably helpful as well. #learning#programming#php
Today's Doctrine ORM bug: I have a column which is NOT NULL DEFAULT 0. However, the ORM automatically includes every column in INSERT queries, which means there's a NULL value and thus the query fails (I think I also need to specify the default in the ORM to fix this).
After introducing the registration of #WordPress hooks with #PHP attributes in my previous article, I'm following up with a second piece focused on hooks. This time, the topic is Hook-Driven Development:
Resisting the urge to undertake a massive rewrite or refactor of an existing codebase that has been quietly working for years. I only need to make the changes necessary to work with the latest version of #PHP. I have to keep reminding myself that rewriting everything is unnecessary. #dev