I've been working on a custom web framework in PHP for nearly two years at this point. This morning I realized that I needed to add an extension system to the project.

Flash forward about 12 hours (with breaks for a walk and food) and I've built a fairly robust extension system.

And the core functionality isn't much more than 350 lines of code.

Plugins are bi-directional and, in many instances, adding new API endpoints only requires a single line of code! 🏆

@gardiner_bryant Yeah... but on the other hand, you're bringing more PHP into the world. 😢

@bear454 PHP is actually an incredibly robust and wonderful language. It gets a bad wrap because it's accessible and that means lots of amateurs can write really bad code. But there's so much excellent PHP out there.

@gardiner_bryant @bear454 Python is also very accessible and for many new programmers it's their first language but Python has a really good reputation. I don't have a lot of experience with PHP so take my opinion with a grain of salt but to me, it's a combination of annoying/hard to learn things for new users: Pointers like in C (uncommon in interpreted languages), $var like in Bash, joining strings with ., scripts are often made up of multiple pages etc...

@trogluur @bear454 Yeah, all that is true. But if you master PHP then it is a speedy and excellent way to make server-side applications.

@gardiner_bryant I heard "there were very fine people on both sides" :P

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml