#PHP 8.4 introducing "Property Hooks". This means you will be able to hook into the default read and write behavior of your class properties. The design also allows for more hooks in the future. Really looking forward to this one!
Please, web app developers, consider how your users will upgrade. If your upgrade process is "remove the old one, unzip the new one", then it's not an upgrade process. It's an encouragement to never upgrade.
@Crell@acelaya I've used Ansistrano - https://ansistrano.com/ - for a few projects, that run on small vps', to automate steps I used to do manually. Not sure if applicable to this question though 😅
@heiglandreas@derickr yea, it is hard to find a line. But depending on audience and time slot, it case be totally different. I even have BGP on the list, but don’t know what to do with it yet 😂
@maccath@Crell I found another couple of sites on the same host, and that's got the same spam links added. I think the entire server/Cpanel has been compromised.
@sarah I'm not in a headspace where i can contribute to side projects at the moment, but I do think a CoC would be great. I saw how things went last time around & was not pleased with how some folks reacted to the idea, so I want to speak up and offer a clear thumbs up this time. :)
We have released a new library: TypoRules for #PHP 🎉
It is not actually new, as we have been working with it for years to enable outstanding #typography in our #web and #print applications. What is new is that all functionalities are now available in a bundled form and as #opensource.
@ramsey Not yet, no. The library is currently conceived from the perspective of a designer who has to take care of things like dashes and quotation marks. The rules you mentioned might be a little more difficult to implement, as some of them require context. Something like consistently capitalising the name of a month would of course be easy, but putting certain information in a certain order, for example, would be much more difficult. Do you see a need for this?
Got to say: Just been through upgrading an app from #PHP 8.1 to 8.3 and it's really nice and painfree.
Very few breaking changes, and the few that are there are stuff that a sensible person would've addressed a long time ago.
Unfortuantely that means that apart from readonly classes, there are also few exciting new things in there. But I guess these also are just point updates after all…
Almost boring 😉 (Not a bad thing! Stability is also nice.)
@michael As a general rule, "well-behaved" #PHP code tends to upgrade very easily and quickly. Code that is not well-behaved... less so.
Mainly that's because older PHP versions allowed all sorts of stupid shit, and the list of allowed stupid shit has been steadily decreasing over the years. The less stupid shit your code does, the easier the upgrade process will be. 🙂
@Crell yep I still got scars from when I upgraded my very first ever PHP application from 3 to 5. I was a kid when I started writing that app, so it definitely was full of stupid shit (still is, to be honest: always only ever stuck on band aids - the full rewrite is finally planned for later this year), so the upgrade was beyond hard.
But yeah, since then I’ve learned how to code properly (I think) so upgrades tend to be a lot simpler.
That first experience traumatised me for life though, so I’m still always scared when I start …