@alessandrolai@phpc.social
@alessandrolai@phpc.social avatar

alessandrolai

@alessandrolai@phpc.social

Head of Platform @ Facile.it, https://phpc.social/@phpfig secretary, @MilanoPHP coordinator, computer science passionate, retired netgaming nerd

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

kellogh, to LLMs
@kellogh@hachyderm.io avatar

Let’s be honest, if you’re a software engineer, you know where all this compute and power consumption is going. While it’s popular to blame , y’all know how much is wasted on , microservices, overscaled , spark/databricks and other unnecessary big data tech. It’s long past time we’re honest with the public about how much our practices are hurting the climate, and stop looking for scapegoats https://thereader.mitpress.mit.edu/the-staggering-ecological-impacts-of-computation-and-the-cloud/

alessandrolai,
@alessandrolai@phpc.social avatar

@kellogh the first thing that I would do to cut those consumption would be to shut off all things blockchain. These really waste a lot of energy without providing proper value.

alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

I just tagged 2.3.0, compatible with @phpunit 11.0 with NO code changes required! YAY!

https://github.com/facile-it/paraunit/releases/tag/2.3.0

alessandrolai,
@alessandrolai@phpc.social avatar

I may have jumped the gun a bit with the previous release, and I had to do a torny PR to make the CI happy with it... But now it works, still with no code changes apart from a couple of wider composer.json constraints!

Enjoy 2.3.1!

https://github.com/facile-it/paraunit/releases/tag/2.3.1

alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

Gentle reminder: the last 5 version (5.7) will be end of life by the end of next week

https://endoflife.software/applications/databases/mysql

alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

I just released 2.2.0, which adds support for the Cobertura XML coverage report, leveraging the underlying @phpunit feature.

This was useful for me to feed it to GitLab's test code coverage visualization feature.

https://github.com/facile-it/paraunit/releases/tag/2.2.0

alessandrolai, to Symfony Italian
@alessandrolai@phpc.social avatar

Next week I'll be at @phpday, and I will bring with me not one, but TWO Aida that I'm willing to trade.

I would love a one, but I'm open to any which I do not own already (default blue, Mollie, SiteGround)

Hit me up in DMs if you want to trade!!

alessandrolai, to php Italian
@alessandrolai@phpc.social avatar

Just got down from the stage, wow! Thank you for all the questions!

Now after me at is time for @afilina to talk about her adventures in legacy codebase and upgrading them to the newest version!

alessandrolai, to php Italian
@alessandrolai@phpc.social avatar
alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

Yesterday @codito PR was merged, adding to @PHPCSFixer CI, making more than 4x faster!

https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/6883

I created Paraunit with a colleague more than 8 years ago for this same need: CPU time is a couple of orders of magnitude cheaper than dev time, and shorter feedback cycles are vital to our job, so having a CI time under 5 minutes is golden!

alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

Just released facile-it/doctrine-mysql-come-back 3.0, which brings support for @doctrine 4.0. No big changes from the previous major, just some method signature adjustments to maintain compatibility!

https://github.com/facile-it/doctrine-mysql-come-back/releases/tag/3.0.0

alessandrolai, to Symfony Italian
@alessandrolai@phpc.social avatar

This Friday I'll be speaking at @phpday 2024, this time about my long story with queues and, in particular, about Messenger.

See you there?

alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

Today is @phpday! Getting ready to get there!

PS: I'll be very active in the next 48h, if you're not interested you should mute the hashtag

alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

I'm now following Babarinde Odewumi's talk about the combination of Laminas Mezzio and Swoole to develop fast APIs

alessandrolai, to php Italian
@alessandrolai@phpc.social avatar

Now @paolomainardi on the stage talking about security and supply chain issues in the ecosystem

alessandrolai, to Symfony Italian
@alessandrolai@phpc.social avatar
ramsey, to php
@ramsey@phpc.social avatar

Opinions/thoughts/advice on monorepos with . Is anyone working within this problem space? What tools do you use?

I know is a . Are the tools they use specific to them, or can others use them?

alessandrolai,
@alessandrolai@phpc.social avatar

@ramsey what problem are you trying to solve with the mono repo? Align split libraries? Align multiple microsevices? Align backend and frontend?

alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

@rob this is the Docker snippet that I was talking you about to avoid needed the wait-for script. You define the healthcheck on the MySQL service in Docker Compose:

mysql:
image: mysql:8
healthcheck:
test: "netstat -tulpn | grep LISTEN | grep -q 3306"
interval: 1s
start_period: 60s

then you can call:

docker compose up --wait mysql

or

docker compose wait mysql

Those commands are recent additions though!

alessandrolai,
@alessandrolai@phpc.social avatar

@willpower232 @rob definitely! But it's just a small improvement over Rob's approach that he had in his slides at , where he was executing a well known "wait-for" script

donatj, to php
@donatj@mastodon.social avatar

You know, while we’re dropping parentheses on things in I’d like it if we dropped them from control structures like if/for/while

End the argument of

if($foo) {

vs

if ($foo){

once and for all

if $foo {

to rule them all

alessandrolai,
@alessandrolai@phpc.social avatar

@donatj you're skipping the "right" approach, the one with spaces on both sides, which is the one required by PSRs, and PER-CS lately: https://www.php-fig.org/per/coding-style/#5-control-structures

ramsey, to Kubernetes
@ramsey@phpc.social avatar

Why isn’t --record=true the default behavior when applying changes to a deployment?

alessandrolai,
@alessandrolai@phpc.social avatar

@ramsey what command are talking about? I do not use kubectl so much since Helm took over in my projects, but I don't remember that option though

alessandrolai,
@alessandrolai@phpc.social avatar

@ramsey I always only did kubectl apply for changes, never delved deeper so I didn't know this option! I switched to Helm that handles revisions automatically for rollbacks too...

I was searching around to understand it and I stumbled on this, it seems they're deprecating it: https://stackoverflow.com/questions/73814500/record-has-been-deprecated-then-what-is-the-alternative

Gargron, to BelieveInFilm
@Gargron@mastodon.social avatar

I took a new (to me) lens to San Francisco, the Canon FD 50mm/1.4, which I haven't had a chance to test before going (which I in hindsight realized was not very wise). I shot 4 rolls of film on the trip. Eagerly awaiting the scans to come back from the lab...

alessandrolai,
@alessandrolai@phpc.social avatar

@Gargron I have the same one, and it's definitely fun! It's like having super powers to do wonderful portraits! 😁

ramsey, to random
@ramsey@phpc.social avatar

I’d love to see a behind-the-scenes or making-of for . How do they put it together in such a tight, well-made package. There don’t appear to be many cuts, and John Oliver’s hand motions and everything is so well-choreographed. Is he really that good, or do they practice this over and over?

alessandrolai,
@alessandrolai@phpc.social avatar

@kboyd @ramsey so, like, he has Italian heritage? 🤣😜

heiglandreas, to random
@heiglandreas@phpc.social avatar

Great! Something changed in symfony/phpunit-bridge between 6.4.7 and 6.4.x-dev 15607a3 that now results in

Error in bootstrap script: PHPUnit\Event\Code\NoTestCaseObjectOnCallStackException:
Cannot find TestCase object on call stack

...

Not how I thought my day would start... 😕

alessandrolai,
@alessandrolai@phpc.social avatar
alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

Thank you @phpday for this new tree! 😃 It's a really nice tradition gifting these to speakers!

https://tree-nation.com/it/alberi/visualizzare/6149685

alessandrolai, to random Italian
@alessandrolai@phpc.social avatar

And for closing keynote, @sarah is on stage with her talk about "Twenty lessons from twenty years of PHP"

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