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

phpc, to random
@phpc@phpc.social avatar

Hi, instance folks!

Thank you so much for your generosity in supporting this service. We hope you find it beneficial.

Currently, our monthly expenses are higher than monthly contributions. Thanks to one-time donations, we have reserves that allow us to operate like this, but we will eventually run out.

Please consider signing up for a recurring (monthly or yearly) contribution to ensure we can keep this service running.

Details are here: https://opencollective.com/phpcommunity/projects/phpc-social

edorian,
@edorian@phpc.social avatar

@phpc

Thank you!

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

Hey #PHP. When you use union and intersection types, do you include spaces?

(RT for reach, etc. This is survey data for @phpfig. If you know of any official policies by major projects already, please note/link in the replies.)

#codingstyle #phpfig

edorian,
@edorian@phpc.social avatar

@Crell @phpfig For me, somehow yes.

If there are no braces I know at the first symbol that it's a uniform list and that I can just go and skip-scan through the text.

But (ClassNameWithSomeLength|(Foo|Bar))&Baz type constructions are quite hard for me to parse visually.

Might be the |( and &( constructions. Unclear t.b.h., just noticed it's more of a strain.

Given how rarely such complex types happen I'm going to be fine either way :)

edorian,
@edorian@phpc.social avatar

@Crell @phpfig for everything that has more than a simple & or | chain having spaces is such an accessible thing for me, allowing me to parse the blob of symbols.

If my editor would highlight the braces and symbols differently from the text I would have more of a chance without spaces, but as it is, it's very annoying. Especially because they need to restate the compound types everywhere, not just define them once like in TS.

edorian, to random
@edorian@phpc.social avatar

In the PHP 5.3 days we had a couple use cases where we did object to array casts and used the var_dump($x["\0ClassName\0PropertyName"]); formatting to extract data.

(It was really fast compared to Reflection back then and it was for a good cause. I promise :P)

https://3v4l.org/Sk0Iu

Today while chatting with @beberlei about those times I was reminded that in 7.4 https://www.php.net/manual/en/function.get-mangled-object-vars.php was introduced.

Totally missed that at the time. Good memories!

Have you ever used this, and why? :)

edorian, to random
@edorian@phpc.social avatar

New Tideways "Release" 🥳

While we deploy daily we write up a summary once per quarter:

https://tideways.com/profiler/blog/tideways-2023-1-release

Super excited about all the features, big and small, we've shipped in the last couple month.

The team was been doing a great job 🥳 Good celebration moment.

Tracing with 💯PHP focus and lots of automatic 🐘 instrumentation.
Now easier to create and share for any code you have.

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

Girgias, to random
@Girgias@phpc.social avatar

Happy Easter and Trans Day of Visibility from the Japanese mountains!

edorian,
@edorian@phpc.social avatar

@Girgias eeeegg

edorian, to random
@edorian@phpc.social avatar

Book-a-table style service with a method of bot detection that I haven't seen before.

edorian,
@edorian@phpc.social avatar

@rdohms opt in harassment, something only the humans would do

edorian, to random
@edorian@phpc.social avatar

Had a good chat about https://wiki.php.net/rfc/property-hooks with a colleague today.

Happy with the result. Looks like PHP, leaves options to address future issues. Great first step.
Excited about the potential performance gains.

If I'd have voting rights* I'd vote yes wholeheartedly.

Big thanks to the authors! I can imagine this wasn't an easy discussion.

--
*Don't think I should have voting writes, I do PHP and C-Extensions, not core and I'll comment when I have user-land feedback, but that's enough.

edorian, to random
@edorian@phpc.social avatar

Yay! I'll be speaking at FrOSCon PHP track this year.

Admission is free this year!
(You can get a business ticket if your company wants one for travel ☺️)

It's been so long and this conference holds a special place in my heart for connecting me with great people that became friends and colleagues.

https://cgn.phpug.net/froscon/posts/froscon-schedule-2023/

If you're in the area, come join us! Listen to talks by @MarkBaker , @sebastian , @tobyS, @soyuka, Simon, and let's hang out!

edorian, to php
@edorian@phpc.social avatar

Back from vacation and excited to announce that we, over at , now fully support

https://www.linkedin.com/posts/tideways-gmbh_frankenphp-activity-7191031503009587202-qUFj

It's great to see the ecosystem grow and prosper and I believe proper tool support and performance insights will only help when it comes to choosing the right tool for your job.

It's been a bit of a struggle getting everything to work for me, but thanks to our C specialists all the test scenarios I wrote along the way are now passing, including

edorian, to random
@edorian@phpc.social avatar
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());

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

I finally found an occurrence of this beauty :

$this->$this

It still looks like a typo in the original code, but with the help of __toString, it works. Also, strict_types doesn't help here.

https://php-tips.readthedocs.io/en/latest/tips/this_this.html and more tips!

edorian,
@edorian@phpc.social avatar

@dseguy big fan. Thanks for sharing

edorian,
@edorian@phpc.social avatar

@dseguy I've done worse tbh. And some of it turned out to be a good idea for very specific circumstances.

Yet to find a sensible reason to use toString though.

cspray, to php
@cspray@phpc.social avatar

Couple weeks ago speaking with @ocramius about Annotated Container. He brought up something about Attributes I had heard a few times before. Something along the lines of:

"I don't want container wiring code littered throughout my codebase."

So, I wrote a blog article that talks about how Attributes aren't really the point of Annotated Container and how you can use the library with no Attributes or highly limit their spread through your code.

https://www.cspray.io/blog/annotated-container-without-attributes/

-container

edorian,
@edorian@phpc.social avatar

@cspray neat which specific negative experiences everyone made

I don't want a big garbage pile of central wiring code

Best case the code locally states what it should get injected in the default case, everything else is autowires.

For me services.xml/yml are the worst, services.php is bad and everything locally where the class is defined is something I found to be scalable and easy to work with for big teams across time.

edorian, to factorio
@edorian@phpc.social avatar

Just finished a 2 player co-op run of with the mod set.

While my friend hasn't played much classic before we still decided to go for the more complex playthrough, and it worked out great.

145 hours to launch the rocket and so much fun refactoring. The mod set is in a really good state, good pacing, lots of options to build big or clever, meaningful differences in approached.

Can recommend! (We tuned off Bob's Greenhouse to make it a bit more challenging /interesting)

edorian,
@edorian@phpc.social avatar

@klimpong there are dozens of us.

It's a really fun game. Happy to talk more about it if you're curious

mgdm, to random
@mgdm@altelectron.org.uk avatar

Building a slightly daft webapp using 2000s spec JS techniques (lots of <script> tags, no bundling) has been pretty fun. Ditching the frameworks can be rewarding

edorian,
@edorian@phpc.social avatar

@mgdm HTMX has a lot of that feel for me

wyri, to php
@wyri@haxim.us avatar

New PC who this! Gave the @reactphp Hello World a quick benchmark, clocks in at nearly 70K requests per second with 100 concurrent keep alive connections on a single process:

edorian,
@edorian@phpc.social avatar

@wyri what's your test setup for this?

edorian,
@edorian@phpc.social avatar

@wyri thank you!

edorian,
@edorian@phpc.social avatar

@wyri I was mainly wondering about the tool your using (ab, siehe, jmeter, etc) and if it's keepalive or not.

Not at my gaming PC at the moment but want to compare that as well :)

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.

wyri, to random
@wyri@haxim.us avatar

I am a Dwarf and I'm:

edorian,
@edorian@phpc.social avatar

@wyri well done sir

  • 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