Posts

This profile is from a federated server and may be incomplete. Browse more on the original instance.

ntha, to php
@ntha@mastodon.social avatar

Re: Primitive Obsession (https://acairns.co.uk/posts/primitive-obsession)

I like the idea, but has anybody performance tested this? What happens when you're dealing with thousands of rows of data that pass every item along as class instants vs primitive types?

Crell,
@Crell@phpc.social avatar

@ntha Unless you're dealing with very large datasets, the cost of the SQL query to load it will be vastly more than the cost of making an object.

ntha, to random
@ntha@mastodon.social avatar

Not too big of a fan of frameworks myself, unless we’re dealing with a huge project of course, but otherwise I prefer small, composable libraries to make up the need in a tight fit, with no un-needed parts being present.

ntha, to php
@ntha@mastodon.social avatar

Modern React.js with Vite is really nice, with out of the box TypeScript support and all, but by far my favourite text stack is most likely with . It's the simplicity that gets me.

ntha,
@ntha@mastodon.social avatar

@maxalmonte14 Yeah! And HTMx is really powerful with its X-Trigger headers (https://htmx.org/headers/hx-trigger/) that can do events and so forth if you need a little more oomph, and then there's plenty extensions as well to make, for example, dependent things trigger (https://htmx.org/extensions/path-deps/).

I even made a block based WYSIWYG editor entirely with PHP + HTMx just to prove that you can do some very interactive things usually thought to be only possible in SPA's.

grmpyprogrammer,
@grmpyprogrammer@phpc.social avatar

@ntha @maxalmonte14 I made a super-old CakePHP app more dynamic with htmx. Old grumpy devs can learn new tricks

ntha, to php
@ntha@mastodon.social avatar

Now if only we could get the pipeline operator into , I could die happy. Meanwhile however @Crell 's fp library will fit the bill nicely: https://github.com/Crell/fp

ntha, to php
@ntha@mastodon.social avatar

I for one can’t wait for property hooks in 8.4.

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