@edorian@phpc.social avatar

edorian

@edorian@phpc.social

👋 I'm a magic __method();

Well, a Software Engineering and Management Human interested in Ops, growing systems, shipping, DX, PHP, etc.
Gaming enthusiast. He/Him.

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

asgrim, to random
@asgrim@phpc.social avatar

Don't think you can handle a legacy codebase?

Just write a new one from scratch!

What could POSSIBLY go wrong!?

edorian,
@edorian@phpc.social avatar

@asgrim well all the old devs left and we switched languages to THE GOOD ONE which solved all THE PROBLEMS.

Business and customers are unhappy for some reason but they just hate innovation, we think.

None of the devs we have now think it was a bad idea!

edorian, to random
@edorian@phpc.social avatar

Holy hell the overreliance on is coming back to bite UE5 games HARD.

2 is maybe the most extreme example I've seen.

TSR - Native / Medium

vs

DLSS - Quality / Medium

It's looks plain awful in motion

https://imgur.com/a/55FQiNQ

image/png

edorian,
@edorian@phpc.social avatar

@derickr all the black dots. But look at the gif, it's easier to see what I mean when it's in motion.

One looks like nature, one like the universe is being consumed slowly by the dark.

Schrank, to random German
@Schrank@phpc.social avatar

Hi! I'm currently using #[ArrayShape([...])] in my project which is a public library. This is a phpstorm annotation to tell the IDE which array keys exist. How does PHP handle this? If the class does not exist? I assume it is just ignored? Is this default behaviour? Can't find it in the docs.

edorian,
@edorian@phpc.social avatar

@Schrank just using the attribute or doing reflection doesn't trigger autoloading.

So it's pretty stable.

Consider phpstan/Psalm array shapes as well

derrabus, to random German

Habt ihr meinen Vortrag auf der Berlin gesehen und euch gefragt, wann ich endlich mal die Folien hochlade? Habe ich gerade getan. Besser spät als nie. 😓

https://slidr.io/derrabus/wie-viel-datenbankabstraktion-brauche-ich

edorian,
@edorian@phpc.social avatar

@derrabus gutes Bild auch wieder :)

Girgias, to php
@Girgias@phpc.social avatar

Night rant because I can't sleep.

But I frankly wonder why I bother trying to improve the semantics of when it seems people don't give a fuck and just want crap not actually implemented in any sensible way, just so they can feel like they are working with a "real" programming.

It honestly tilts me that people want to make the language more inconsistent and shit just for some minor DX that one could achieve by building tooling in PHP.

edorian,
@edorian@phpc.social avatar

@Girgias I have zero context for your current frustration, sorry to hear though!

Please know your work is very appreciated from where I'm sitting and from the people I talk too :)

saki, to random
@saki@phpc.social avatar

Should BCMath be deprecated? I still can't gather my thoughts.

edorian,
@edorian@phpc.social avatar

@saki what would the alternatives be?

Schrank, (edited ) to random German
@Schrank@phpc.social avatar

If anyone has a bluesky code? I need one please 🙃

Thanks, done ✅

edorian,
@edorian@phpc.social avatar

@Schrank I'll send you one on LinkedIn

Edit: of course the edit only shows after answering 🐱

But lmk if you need more for people

dseguy, (edited ) to php French
@dseguy@phpc.social avatar

How big are your source code ? Excluding dependencies (vendor folder)

Generally, is quite compact code, and requires few expressions to achieve its goal.

The largest OSS are 4.9 MLOC (una, bitrix), while the majority is well below 2 000. The figures below partition OSS projects in 4 part of equal size.

Where are you ?

edorian,
@edorian@phpc.social avatar

@dseguy Most of OOS is libs not projects so I assume numbers will be a lot higher.

My smallest commercial code base in the last 15 years was 260kloc, others were 470kloc, ~2m, and one >10mloc

supergarv, to random German
@supergarv@phpc.social avatar

Huih, das habe ich gar nicht mitbekommen: https://github.com/php/php-src/security/advisories/GHSA-3qrf-m4j2-pcrr

PHP8 XXE mit RCE, wenn man mit libxml user-generated content parst. 😱

edorian,
@edorian@phpc.social avatar

@supergarv wow. 8.6.

Seit Ewigkeiten wussten wir ja das man ohne https://www.php.net/manual/en/function.libxml-disable-entity-loader.php Probleme haben wir.

Dass das in 8 nochmal ein Revival bekommen hat ist spannend.

Girgias, to random
@Girgias@phpc.social avatar

So today after having gotten my right index nail fixed, my nail tech has told me to not use it at all as it's fragile AF.

Has been an interesting experience to type without it 🤣

Hand for reference:

edorian,
@edorian@phpc.social avatar

@Girgias it's always such a shift even with shorter ones.

Nice!

edorian,
@edorian@phpc.social avatar

@Girgias oh yeah, I meant I didn't grow mine out that far but was already struggling with changing habits and posture :)

asgrim, to random
@asgrim@phpc.social avatar

Hey 🇺🇸 friends, I have a PSA for you.

We need to get something ironed out here:

Fried chicken is NOT an item of food that should appear on a breakfast menu.

Thanks for your time! ❤️

edorian,
@edorian@phpc.social avatar

@asgrim just because most people don't consider your foods anywhere close to breakfast you don't need to lash out at others.

It's both just as fine from where I'm sitting :)

Breakfast is what you have for your first meal.

edorian,
@edorian@phpc.social avatar

@asgrim my experiences are mostly informed by Manchester.

But I don't feel there is much difference between blood sausage, fried chicken and breakfast soups or the most boring and joyless German bread spreads in terms of what's acceptable ;)

I actually very much enjoy warm breakfasts with beans and whatever eldritch rituals one had to perform to make those tomato's :)

derrabus, to random

Goodbye Doctrine Annotations. Symfony 7 won't support them anymore as announced at #SymfonyLive Berlin.

edorian,
@edorian@phpc.social avatar

@Skoop @derrabus at least you know which change you can attribute it too

wyri, to php
@wyri@haxim.us avatar
edorian,
@edorian@phpc.social avatar

@wyri @rdohms go full architect: "I've written an ADR that solves the problem in theory. Implementation is left to the team.

If it doesn't work it's on them"

ramsey, to random
@ramsey@phpc.social avatar

My son pointed out something potentially nefarious about Apple, and I came to their defense (being the fanboy I am), and he responded with:

“I see you’re on copium.”

https://en.wiktionary.org/wiki/copium

edorian,
@edorian@phpc.social avatar

@ramsey the friendlier derived term I quite like is "hopeium"

edorian, to random
@edorian@phpc.social avatar

What's the easiest way in PHP to get the "Extended Grapheme Cluster" length of a string?

As in: What gives me 1 for the count/length of the string "🤦🏼‍♂️" ?

https://3v4l.org/TlN33

edorian,
@edorian@phpc.social avatar

@heiglandreas yeah not really the length I'm looking for sadly. Thank you though!

edorian,
@edorian@phpc.social avatar

@heiglandreas indeed it does for the family but not for the facepalm

https://3v4l.org/Y63bX

Which makes sense, I guess, as it's not the extended one.

So preg_match \X it is for now. Thank you :)

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

What is this piece of code will display in 8.2 ?

<?php

enum x: string {
case B = 'b';
const C = 'c';
}

class x2 {
const E = x::B->value;
const F = x::C + [];
}

echo x2::E;
?>

edorian,
@edorian@phpc.social avatar

@dseguy didn't know this was lazy, cute!

Skoop, to random
@Skoop@phpc.social avatar

It is just crazy that when you test positive for COVID, an airline says "you'll still have to fly. if you want to change anything it'll be a voluntary change to your booking and you'll be charged accordingly"

edorian,
@edorian@phpc.social avatar

@Skoop so it's an insurance that doesn't cover general sickness?

Or what's the insurance part when you're not covered when you get sick in a way that technically would allow you to fly?

edorian,
@edorian@phpc.social avatar

@Skoop So as with all other infectious diseases we've come to accept you need a GP note starting your not fit to fly?

Like you would for a fever or a stomach bug?

edorian,
@edorian@phpc.social avatar

@Skoop yeah it's why I made the trip to get a doctors note the last time I was affected and got a new ticket (train in my case)

edorian, (edited )
@edorian@phpc.social avatar

@Skoop Sure thing. It would be crazy if we'd force people to fly sick.

Well for uninsured trips that is an annoying consideration (maybe something to outlaw?), but at least for everything else all we need to do is provide proof that we're sick/unfit-yo-fly and that is still working, no?

Main difference I feel is that it's everyone's personal "choice" now instead of being easy/enforced

Either way, sucky situation and looking forward to seeing you again IRL soon now that we're traveling again.

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