pwaring,
@pwaring@fosstodon.org avatar

Currently working on a rewrite of an old application (PHP 5.6, was probably written in an even earlier version) by building a new one in PHP 8.3 and migrating all the data across.

I don't usually recommend rewrites but occasionally it's more cost-effective than trying to fix really old code.

Even though I work with legacy code every day, the changes in 8.3 (and libraries that require it) make life so much nicer.

(I currently work with versions from 5.4 to 8.3)

Crell,
@Crell@phpc.social avatar

@pwaring Which changes in particular? 8.3 wasn't a particularly exciting release, especially compared to 8.0/8.1.

pwaring,
@pwaring@fosstodon.org avatar

@Crell Attributes and constructor promotion are the two which have reduced boilerplate or made it clearer or have better integration with my IDE.

I have jumped from 7.4 to 8.3 (most projects I work on are either 7.x or 'latest stable') so haven't experienced every individual point release. I'm mainly interested in 7.4->8.3 than 7.4->8.0 (generally when I bump an existing project I'm fixing issues rather than refactoring).

Crell,
@Crell@phpc.social avatar

@pwaring Got it. Yeah, the trio of attributes, constructor promotion, and named arguments coming all together in 8.0 was earth-shattering. Totally changed the story on what is "easy" or "natural" to do.

PHP just keeps getting better and better.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php
  • InstantRegret
  • ngwrru68w68
  • everett
  • mdbf
  • modclub
  • rosin
  • khanakhh
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Youngstown
  • GTA5RPClips
  • slotface
  • kavyap
  • JUstTest
  • ethstaker
  • osvaldo12
  • normalnudes
  • tacticalgear
  • cisconetworking
  • cubers
  • Durango
  • Leos
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines