@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.

stefanzweifel, to php
@stefanzweifel@phpc.social avatar

While making my PHP packages compatible with Laravel 11 the last few weeks, I've also spent some time and added PHPStan to all of them.

The more simpler ones are already on level 9. The more complex are still on level 5 or 6. I'm still a novice when it comes to proper type documentation. Goal is to increase levels throughout the year.

Links to all packages:
https://stefanzweifel.dev/projects

thgs,
@thgs@phpc.social avatar

@stefanzweifel @regis what makes it hard to go max level in Laravel? I haven’t written any code related to laravel since version 5 but I wasn’t doing psalm/phpstan back then.

I usually try to go max and anything less is just “temporary” these days.

bobmagicii, to random
@bobmagicii@phpc.social avatar

a good april fools from microsoft would be a post claiming to finally fix this.

thgs,
@thgs@phpc.social avatar

@bobmagicii I don’t think it’s a bug. Or was that April fools? I cannot tell!

I will bite anyway, I thought this was allowing you to change the directory on another drive, without switching to “be” on that drive until you say so. So things like copy to q: would go in that drive’s current directory?

thgs,
@thgs@phpc.social avatar

@bobmagicii they have fixed it.

Try cd /d q:\

thgs,
@thgs@phpc.social avatar

@bobmagicii here’s this guy explains the intended behaviour

https://stackoverflow.com/questions/11065421/command-prompt-wont-change-directory-to-another-drive

Yes I googled it just now. It seems interesting and also has an old MSDOS feeling to it. And yes it is different from the *nix cd.

thgs,
@thgs@phpc.social avatar

@bobmagicii Windows are multi dimensional! They have a current directory for each drive. I guess!

thgs,
@thgs@phpc.social avatar

@bobmagicii well that is actually not a bad idea.

Completely unrelated, the mention of 256 reminds me of being able to make a folder with alt+0255 or 256 that is “hidden”. Or was, in win9x.

thgs, to random
@thgs@phpc.social avatar

This looks so interesting to get notes done

https://kbd.news/Micro-Journal-2332.html

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

Which browser are you using at home?

thgs,
@thgs@phpc.social avatar

@jake4480 I guess given that a lot of people are working from home nowadays, saying “at home” does not necessarily mean it’s not for work! My bad there..

thgs,
@thgs@phpc.social avatar

@lorimolson Did not know about this one, the UI looks quite interesting.

Unfortunately cannot run it myself in my old Mac OS version.

thgs, to random
@thgs@phpc.social avatar

pop up tents are fascinating, especially if you know how to fold them.

daryl1509, to random
@daryl1509@phpc.social avatar
thgs,
@thgs@phpc.social avatar

@daryl1509 Perhaps you find interesting the PRG pattern

https://en.wikipedia.org/wiki/Post/Redirect/Get

thgs, to emacs
@thgs@phpc.social avatar
eefi, to random
@eefi@ghostdub.de avatar

Putting way too many books on my ebook reader for a 5-day trip. But what if

thgs,
@thgs@phpc.social avatar

@eefi share some titles!

thgs, to php
@thgs@phpc.social avatar

Does anyone know of a tool that writes PHP classes out of diagrams?

thgs,
@thgs@phpc.social avatar

@Crell Yes, I'm wondering if there is a tool already. I've tried with phpstorm in the past for the reverse operation of generating a diagram from code but it was not that nice.

The only thing remotely close I've found is https://www.visual-paradigm.com/support/documents/vpuserguide/276/330/7341_instantgener.html but I haven't tried it.

elazar, to random
@elazar@phpc.social avatar
thgs,
@thgs@phpc.social avatar

@elazar Inspiring!

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
@sebastienmonterisi@phpc.social avatar

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.

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 ?

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