@thgs@phpc.social avatar

thgs

@thgs@phpc.social

Passionate (oddly?) and stuck with #PHP for quite a few years, although I have fallen for #Haskell and #assembly in the past.

Currently exploring and learning about #DDD, although I will always like a quick and aggressive "hack".

Always learning. Finding myself, mostly, at the tip of a contradiction!

Also a father, nowadays.

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

thgs, to random
@thgs@phpc.social avatar

@Girgias thanks so much for uploading the talk. I wanted to join but had to follow with the others that I was with.

Went through the video and the slides and as kept having an issue with my properties being not initialized, took a couple of hours to figure out the arginfo was not correct as I was missing the constructor definition from the stub. Had a laugh when I figured it out.

Thanks so much for the talk though, that was great!

b_viguier, to php French
@b_viguier@phpc.social avatar

TIL: in , you can create a new instance (not a clone) of an object from an existing instance with the following syntax:

$a1 = new A();
$a2 = new $a1();

Very convenient with anonymous classes! Just a bit confusing if you expect $a1() to call the A::__invoke magic method (because it won’t)

thgs,
@thgs@phpc.social avatar

@b_viguier @sarah @theseer and if you remove the ::class but keep the parentheses one would expect __invoke to be called

sebastienmonterisi, to random French

I'm writting php for more than 15 years.
It's the first time I use 😅

thgs,
@thgs@phpc.social avatar

@sebastienmonterisi what do you think about it?

Crell, to random
@Crell@phpc.social avatar

A pet peeve of mine is "reinventing something old with a new name and insisting the new name is the only valid name."

The latest: Anyone who calls it a "DTO" instead of "product type", you're on notice.

thgs,
@thgs@phpc.social avatar

@Crell yea but is it exactly the same thing?

ian, to random
@ian@phpc.social avatar

phpc.social is now running on Mastodon v4.2.7, which was released a little over four hours ago.

#MastoAdmin

thgs,
@thgs@phpc.social avatar

@ian that’s pretty cool.

thgs, (edited ) to random
@thgs@phpc.social avatar

Do you use the advanced interface for mastodon ?

thgs,
@thgs@phpc.social avatar

to those select few that said "yes", I want you to know, I have started doing that with browser windows too!

thgs, to random
@thgs@phpc.social avatar

Anyone else puts the project files sidebar on the right or is it just me ?

thgs, to random
@thgs@phpc.social avatar

Lovebyte 2024 - Its on like DONKEY~1.COM 😀

davidbisset, to web
@davidbisset@phpc.social avatar

Brilliant. Why I 🧡 the .

"Worst way to share your code".

https://code.xxut.ru/

thgs,
@thgs@phpc.social avatar

@davidbisset beautiful

bobmagicii, to random
@bobmagicii@phpc.social avatar

old men clicking reply all.

thgs,
@thgs@phpc.social avatar

@bobmagicii i click reply all!

thgs,
@thgs@phpc.social avatar

@bobmagicii I blame the first one that put all of them there, would still keep pressing reply all.

It feels though that maybe the old men want you to be a part of the discussion.

Had to google gman :D

grmpyprogrammer, to random
@grmpyprogrammer@phpc.social avatar

Today has been a day of porting over some Python code and implementing it in
PHP using the Chain of Responsibility pattern and an actual use for traits.

thgs,
@thgs@phpc.social avatar

@grmpyprogrammer whats the actual use for traits? I have heard those didn't have one!

thgs, to random
@thgs@phpc.social avatar

Wipe Out - The Surfaris

salvomic, to fediverse Italian
@salvomic@flipboard.social avatar
thgs,
@thgs@phpc.social avatar

@salvomic @naturzukunft

There's nothing terribly wrong with what you did Salvo. It is just less aligned with what usually happens, hopefully the explanation makes sense.

If not, consider the opposite situation where Activity Pub related posts start coming up when you follow a photography tag.

Some tags below that may be interesting to target with similar posts (deliberately not using the tag notation):

fediart
fediphoto
PhotoThursday
fediphotography

And by the way, nice pictures!

jay, to random
@jay@phpc.social avatar

Imagine being the company providing the most widely used PHP components and one of the most widely used PHP frameworks, and not joining phpc.social but an overcrowded, general-purpose instance instead 🙈

thgs,
@thgs@phpc.social avatar

@jay definitely recruiting new PHP devs.

andrewfeeney, to random
@andrewfeeney@phpc.social avatar

I have used many (though not all) code editors over the years. The one I keep coming back to is Vim (Neovim now). The main reason I think is the desire for a snappy editing experience. I do like the philosophy of Vim as well. However one thing that I’ve noticed is that I have to keep tinkering with my config to remember it all otherwise I stagnate and forget and have to rebuild from scratch, and this process is usually stressful because I’ve got work to do.

thgs,
@thgs@phpc.social avatar

@andrewfeeney what’s one thing you’re trying to remember?

thgs, (edited ) to php
@thgs@phpc.social avatar

What error level are you running psalm ?

thgs,
@thgs@phpc.social avatar

@Crell question is about psalm, phpstan hasn't given me a hard time yet.

However, to be honest I have used phpstan far less.

thgs,
@thgs@phpc.social avatar

@wolffzone It is what you want it to be.. :D

rq, to random

Pizza on croissant dough

thgs,
@thgs@phpc.social avatar

@rq mayo and tomato is an incredible combo in a croissant.

thgs, to random
@thgs@phpc.social avatar

@rubenrubiob could you enable rss on dev.to ? :)

thgs,
@thgs@phpc.social avatar

@rubenrubiob nevermind! i found your link.

Thanks for sharing those weekly reads btw

ziadoz, to random
@ziadoz@phpc.social avatar

Numeric pagination is such a horrible user interface pattern. It’s a binary search mini game for your users.

thgs,
@thgs@phpc.social avatar

@ziadoz infinite scroll fan ?

thgs, (edited ) to random
@thgs@phpc.social avatar

Do you know Ivar Jacobson?

#php #softwaredesign #softwareengineering #ddd

thgs,
@thgs@phpc.social avatar

@Dave_von_S still reading the first one myself (oop software engineering), the essence model (i saw it you mentioned somewhere in another post) is probably coming next.

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