If you voted against the Interface Default Methods RFC for #PHP, please take a moment to read some of the most recent mailing list replies, starting with @Crell’s here: https://externals.io/message/120725#120798
I agree this feature goes against a lot of what I’ve learned as “best practices,” but I did a lot of introspection on this and decided that this feature is good for the future of the PHP language. It unlocks a lot of potential.
@ramsey@tomasveneny This made me curious, so I did some research. I posted my results to the mailing list thread.
Short version: Implementing multiple inheritance is super common, and doing so via interface default methods is the most common way it's done. PHP is weird by not having multiple inheritance by now.
@ramsey OK
For the love of God learn #PHP before touching a framework like #symfony or #laravel
There’s a pretty good #laravel learning path at Laracasts that starts with #PHP
@Crell what I like about the dumb data holder approach, is that that the details are abstracted away. It’s easy to change the data layer.
i get your point though , and see the value in ti. There is a lot of power in databases. We could do more to take advantage of their capabilities. I think some people worry about getting to dependent on a particular database, so they avoid the DB-specific features.
@awoodsnet Yeah, and DB portability has always been a lame reason. I say that as the person who wrote Drupal's DBAL, which was multi-db.
A project almost never changed its DB. But a product may want to slot in to different companies' standard tooling. That's why it exists, it for frameworks.
Of course, that forces a lowest common denominator approach, which is mysql 3.
🇬🇧 I have tried PHP. I find this programming language more embedding in html. They completely get so much. I can code in live html. 🤯
Hence my question, why continue to code in JavaScript if php can do the same things?🔴😅⚠️
🇨🇵 J'ai essayé PHP. Je trouve ce langage de programmation plus incorporant dans le html. Ils se complètement tellement. Je peux coder dans le html en direct. 🤯
D'où ma question, pourquoi continuer à coder en JavaScript si php peut faire les même choses ?🔴😅⚠️
@Talix_Dreamer@Aedius ah, et c'est pour plus tard, mais tu voudra probablement ajouter SQL à cette liste, pour pouvoir stocker des données pour ton application. Mais bon, ton application actuelle n'en a pas besoin, alors je dirais de juste le noter pour plus tard, et de pas trop te laisser distraire :).
Today, I was cut in layoffs. I’m so gutted because I loved this company, & my team was the best; I’ll miss my team most.
Now, as I look ahead, I’m searching for a staff/principal role where I can help other developers level-up through mentoring, tooling/infra, architecture, & improving DX. I’d love to work with a company contributing to open source & even to the #PHP programming language itself.
Update (27 Feb 2024): Thanks, everyone! I’ve accepted an offer. Please see update in thread below.
@ramsey you are one of the greatest engineers I've ever had the pleasure to work with and I too will miss our team the most. Together, you, I and the rest of platform were the GOAT.
If anyone is able to hire both myself and Ben we absolutely promise to you that we will bring your team to unfathomable heights. 🙇♀️
I know others are not so fortunate, and many have been out of work far longer than I was. I cannot imagine how I would have kept it together much longer.
Give everyone a healthy measure of grace. It’s rough out there.
If I can be of help to anyone (e.g., networking/contacts, advice for resumes/interviews/job offers, referrals, etc.), feel free to ask. I will try to help where I can. (2/2)
I've tagged a 0.0.2 of #php TUI - lots of bug fixes, linear gradient and the gauge, image, and barchart widgets, DX improvements for styling, inline and fixed viewports and more and a slightly pimped up README:
Say you have a method that generates a true/false result for success/fail along with a string message of various statuses describing what was done or not done... how do you return these?
Create a general-purpose Result value object that contains the success/fail & related message?
Return json or an array?
Return the bool but store the $lastMessage as a property of the method's class object?
Hey #PHP devs. I'm curious. When using a global class like SplFileInfo, Exception, Attribute, etc, do you say \Exception inline in the code, or do you use it at the top of the file and then use it as Exception inline?
@mwop My strongest argument about PHP being a good language is how popular and successful it is, despite the long, detailed list of organizational own-goals that PHP manages to pull off. Internals mainly, but user space a bit as well.
@Crell I do market research yearly, and there's this really weird dichotomy of "PHP is everywhere, powers the vast majority of the web, and has a disproportionate number of developers worldwide" and "PHP is an antiquated language that nobody uses for new projects, nobody teaches, and there aren't enough developers". The truth is likely somewhere in the middle, but it's hugely flabbergasting.
Scary thought... Did you know that a large number of #php infrastructure projects are maintained by 1 single person, some 2 or 3... But the original maintainer has been doing that for more than 20 years+ what would happen if they step down?!
They will retire at some point... Who will take over? Shouldn't we invest in the future and start education on how to maintain a opensource project with millions of users?
@ramsey just had my meeting, we discussed that most important is that we should make people aware about the pain. So let's start being loud about this. And start talking to people..
Not just here, but also at conferences, meetups and wherever people want to hear us.
@ramsey@Crell Don't take this the wrong way, but I'm fairly happy it's mostly EU based administrated. Or at least that's a feeling, with so many other foundations being (mostly) weighted towards the US.
The PHP CC people had also been planning a similar organisation for the best part of a decade. But sometimes it just falls into place due to external factors, such as Nikita leaving Jetbrains.
@fredbrooker@janantos
In all seriousness, suddenly wondering if anyone has made a web browser in Doom, and thinking about how the ability to navigate an HTML interface might actually make for some really cool moments in a GZDoom game. Like, I'd like to play some sort of cyberpunk game where you sit down and have to use websites for something...