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

wyri, to random
@wyri@haxim.us avatar

That moment you think you're ready to PR that massive refactor, all examples and tutorials work. That one Hello World tutorial suddenly has to fail reliably 🤦

edorian,
@edorian@phpc.social avatar

@wyri I love that you checked.

edorian,
@edorian@phpc.social avatar

@wyri i agree, not everyone does that though. And the extra effort you put in to make it really work is what makes your projects so fun and reliable to use.

Nothing is worse than examples that crash and docs that lie to you.

edorian, to edge
@edorian@phpc.social avatar

News headlines I didn't ask for are the worst kind of ads for me.

Attention grabbing, hollow ragebait made to misinform and divide.

That's why I find it so odd when I see people use or in their default configuration.
The amount of paid content blasted in my face is something i can't really tune out, like others seem to be able to.

It works with ads, so I guess the same filters work with News when folks train themselves.

edorian,
@edorian@phpc.social avatar

@dantleech I've written same user-js to clean my LinkedIn feed every 500ms because I couldn't stand it.

Not that I just it much anyways, but it was a fun exercise in Dom & xpath

sebastian, to random
@sebastian@phpc.social avatar

If you install using Composer (which is not the recommended way) then you can now use both PHPUnit 9.6 and PHPUnit 10.5 in projects that depend on either PHP-Parser 4 or PHP-Parser 5.

https://github.com/sebastianbergmann/php-code-coverage/issues/1004

edorian,
@edorian@phpc.social avatar

@sebastian thank you for providing/supporting the composer install method though.

I have zero need for or interest in dealing with the phars and it's nice that I don't have to :)

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

Atomkapazitäten verdreifachen? "Es geht nicht", sagt WNISR-Herausgeber Mycle Schneider im "Klima-Labor" - n-tv.de
https://www.n-tv.de/wirtschaft/Atomkapazitaeten-verdreifachen-Es-geht-nicht-sagt-WNISR-Herausgeber-Mycle-Schneider-im-Klima-Labor-article24614102.html

"Bundesfinanzminister Christian Lindner nennt als zusätzliches Problem, dass man keine Versicherer mehr für Kernkraftwerke findet.

Für das Desaster in Fukushima, das noch immer nicht vorbei ist, werden die Kosten auf 250 Milliarden bis 700 Milliarden Dollar geschätzt"

edorian,
@edorian@phpc.social avatar

@Flyingmana Dann müsste man noch Leute finden die das überhaupt bauen können, betreiben wollen und selbst wenn das gelöst wäre wären es 10 Jahre.

Und dann ist es teurer als jetzt Dinge bauen die jetzt funktionieren.

Frag mich etwas wieso wir da noch drüber sprechen.

edorian,
@edorian@phpc.social avatar

@Schrank Gesundheit

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

Quizz question :

Can you write a function that won't execute when you call it?

(Just change the comment // more code )

edorian,
@edorian@phpc.social avatar

@dseguy Turning the function into a generator with a ' yield 1; ' or similar should do the trick.

Can't think of any other way to prevent the echo. Of course printing backspaces would work not "display anything" but that feels like cheating with semantics.

edorian, to php
@edorian@phpc.social avatar

Happy #8.3 to those celebrating.

Very pleased with how the release prep went at Tideways.

We contributed a few segfault fixes to core during the beta and RC phases, and have already shipped 8.3 support for our customers who want to upgrade early https://tideways.com/profiler/blog/changelog/php-extension-5-6-4-released-with-php-8-3-support

Personally, I had a lot of fun improving and adapting our test-suite* and thinking about new performance advisories.

*It's pretty hard now to produce a segfault with userland code. So many things have been fixed <3

pollita, to random
@pollita@phpc.social avatar

This issue continues to not age well.

edorian,
@edorian@phpc.social avatar

@pollita SQL is still scary, people still so MVC and symfomy has fewer external dependencies / is more monolithic (all together) than ever and has great unified form validation.

So apart from the cover story it's looking good!

ramsey, to random
@ramsey@phpc.social avatar

Is it a good thing or a bad thing that a job listing I just saw specified “(all genders)” in the title of the description? The role was for “UI/UX Designer (all genders).” Is “UI/UX Designer” normally a gendered role?

edorian,
@edorian@phpc.social avatar

@ramsey others pointed out the German thing already.

Some details on that:

Here UX-DesigneR (uppercase for emphasis) means male (or neutral, but it's gendered male) whereas UX-DesigneRin would be female.

As one can have more than those two genders on your passport in Germany neither of these words means "all people".

And we have some linguistics workarounds and projects to deal with that.

edorian,
@edorian@phpc.social avatar

@derickr these days it doesn't anymore, it gives you more options.
You can also use non gendered language. But you have to do it in the whole posting and people are unaware of that, afraid (German) to still get sued, or just don't want to.

ramsey, to random
@ramsey@phpc.social avatar

Cool little blurb about @molly0xfff in the “Fraud Tracker” column of November’s WIRED.

“With her blog Web3 Is Going Just Great, software engineer Molly White rains on the crypto parade. She doesn’t feel great about it.”

https://apple.news/AWKs8SBc2SW2Rlg85oyoUNA

edorian,
@edorian@phpc.social avatar

@ramsey Funny to see popular media now, like 2-3 years after everything went down, is now covering all these things.

edorian,
@edorian@phpc.social avatar

@ramsey Don't know. Feels like throwing a massive party with a free bar and afterwards talking to people about the dangers of drinking.

The hangover already did the talking.

I mean, cool to see folks get credit for the work they put in; warning people and documenting the fires of the last couple years :)

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

Gerade wieder gemerkt, weniger Sarkasmus, mehr Positives und machen!
Und weil ich das krank gerade nicht kann, halt ich mal die Klappe

edorian,
@edorian@phpc.social avatar

@Schrank fühl ich <3

edorian, to php
@edorian@phpc.social avatar

Is there a way to make 8.3 purely from within userland, without shelling out or using posix APIs?

I want to get some more testing done on 8.3 signal processing.

8.2 and below tostring and similar recursions worked:

class Crash
{
public function __tostring()
{
return "".$this;
}
}

"".(new Crash());

edorian,
@edorian@phpc.social avatar

@ramsey Not arguing with that :)

But I do have some C code that acts on a segfault and I found it to be more stable to test it on natively occurring ones than on sending a sigsegv.

Historically there were enough crashes, if those times are coming to a close I applaud the core team :)

edorian,
@edorian@phpc.social avatar

@wyri Oh that's an interesting idea. Thank you!

edorian,
@edorian@phpc.social avatar

@derickr Thank you!

Locally I could reproduce segfaults in 8.1/8.2 but 8.3RC2 just worked for the following cases.

Wasn't able to get it to break, even on 8.1 on 3v4l, it just runs into memory limit:

https://3v4l.org/8ep7h // https://3v4l.org/dOAQ8

__toString segfaults on eval with 8.2 https://3v4l.org/C2al4#v8.2.11 but "works" on master:
https://3v4l.org/C2al4/rfc#vgit.master

Did I misunderstand you regarding the trampoline? :)

edorian,
@edorian@phpc.social avatar

@elazar @wyri @derickr @ramsey Ran the reproduce case there with 8.3RC2 and got

[...]
/home/edo/tideways/[...]/vendor/pimple/pimple/src/Pimple/Container.php(118): {closure}(Object(Pimple\Container))
/home/edo/tideways/[...]/index.php(24): Pimple\Container->offsetGet('a')
{main}
thrown in /home/edo/tideways/[...]/vendor/pimple/pimple/src/Pimple/Container.php on line 100

instead of a core dump.

Quite possible that I'm "holding it wrong" :) But might be fixed?

edorian,
@edorian@phpc.social avatar

@dseguy Thanks!

That one is also fixed in 8.3 :)

edorian,
@edorian@phpc.social avatar

@dseguy no no, thank you :)

Happy that it's fixed.

Just need to rejigger my tests.

edorian,
@edorian@phpc.social avatar

@dseguy that's a fun way to do recursion!

ramsey, to random
@ramsey@phpc.social avatar

@TimB0nd I’m confused about your mention of class_alias() at 35:44 here: https://www.youtube.com/live/qLYDXoxj7qg?si=OGUS2Ku-ssfUpcbG&t=2144

Is something new about this function in PHP 8.3? https://www.php.net/class_alias

edorian,
@edorian@phpc.social avatar

@ramsey thanks to your question I discovered that channel.

Cheers!

asgrim, to Java
@asgrim@phpc.social avatar

I got a Stream Deck delivered today and started playing around with it already, very handy for step debugging! I have several other ideas already to improve my workflow too...

edorian,
@edorian@phpc.social avatar

@asgrim Neat!

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