Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

Alessandro Lai

@alessandrolai@phpc.social
mastodon 4.7.3
  • Open on phpc.social

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

225 Followers
184 Following
31 Posts
Joined December 11, 2019
Blog:
https://alessandrolai.dev/
GitHub:
https://github.com/Jean85
GitLab:
https://gitlab.com/Alessandro.Lai
Open post
Alessandro Lai @alessandrolai@phpc.social
· 3w ago
I finally had the time to finalize #paraunit 2.12.0, which brings @phpunit@phpc.social compat to 13.1! It took a lot of time because I had limited effort, and PHPUnit under the hood bumps php-code-coverage to a new major (v14) that required a bit of rework, along with dropping support for all previous versions... I tried cross-compat, but it was too complicated! Happy testing! https://github.com/facile-it/paraunit/releases/tag/2.12.0
GitHub

Release 2.12.0 · facile-it/paraunit

Support PHPUnit 13.1+ Drop support for PHPUnit below 13.1 Drop support for PHP below 8.4

1
0
1
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 3mo ago
Replying to
@ramsey@phpc.social I'm no expert, but this hypothesis seems a bank run, but on the global stock market... It smells pretty bad to me 😅 https://en.wikipedia.org/wiki/Bank_run
en.wikipedia.org
2
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 8mo ago
Replying to
@galtzo@ruby.social I think that "rock and a hard place" is the situation in which the majority of us feels right now, and contributes to the overall scenario. I personally feel there too, and as a father I'm only a bit less crushed than @Crell@phpc.social probably only because my son old enough to start teaching him about things like these. My hope is that the bubble will burst soon, making the job market bounce (removing the hard place) and skirting the AI fad to only where it's really useful.
6
2
1
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 5mo ago
Replying to
@edorian @mbeccati @joepferguson @php congrats!! 🥳
3
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 6mo ago
Replying to
@ramsey @brendt probably because it's idempotency on behavior, not content? Stripe does it to avoid double-charging for the same order/product, but the answer could very well be different (think timestamps, payment status)..
2
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 6mo ago
Replying to
@float13@masto.hackers.town @Gankra@toot.cat this is a mnemonic to distinguish covariance and contravariance, the two properties of arguments and return types of an inherited method signature. When you extend a class and its methods, you can widen the argument types (contravariance - think Animal VS Dog extends Animal) but only tighten the return type (covariance - Dog VS Animal)
2
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 6mo ago
Replying to
@LeedsPHP @shochdoerfer @phpugmrn Grusp 🇮🇹 is trying it out.. Don't know yet if it's good.
2
1
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 5mo ago
Replying to
@klabauterjan@phpc.social @waterkip@defcon.social since it's a downgrade from 8.4 to 8.2, and since newest Laravel requires 8.3, that would be... messy 😅
1
4
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 5mo ago
Replying to
@tvbeek @phpunit @phpstan @phpmd if there is, I would love to have a merge feature, to leverage it inside #paraunit
1
1
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 8mo ago
Replying to
@galtzo@ruby.social @Crell@phpc.social @SenseException@phpc.social yeah, but what if the bullet costs too much / more than what you can save with it? RE: https://phpc.social/@alessandrolai/116002647637385509
phpc.social

Alessandro Lai: "@galtzo@ruby.social @Crell @flowcontrol that's pr…" - PHP Community on Mastodon

2
2
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 6mo ago
Replying to
@brendt maybe composer could implement a "replacedBy" option, so that polyfills could declare themself out? Still required, but the SAT understand that it's no longer needed. It could also be useful when you want to migrate a library to different vendor/namespace..
1
1
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 6mo ago
Replying to

@joepferguson @ocramius @mbeccati

If you are based in an extra-EU country or you are a company based in EU with a valid VAT-ID, you can get your elePHPant without paying VAT. Please send us an e-mail to info@grusp.org with all your details and do not purchase this product.

1
1
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 8mo ago
Replying to
@galtzo@ruby.social @Crell@phpc.social @flowcontrol@phpc.social that's probably true, but I still see that money is also the biggest bottleneck of this technology, so it seems a race to the bottom to me...
1
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 6mo ago
Replying to
@scy this probably make sense for PHP because dependencies are shared. In Node, as an example, they are not, so no interference is normally possible.
0
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 5mo ago
Replying to
@tastapod @adredish still, it seems a "what's the question?" issue here: do I want to know if MS is doing a good job? Maybe, as a (paying?) end user, I definitely do not care and I just want a (very) reliable service. And that chart shows exactly that.
0
1
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 3mo ago
Replying to
@klimpong@chaos.social @ocramius@mastodon.social woha... Automerge is nice, IF the checks are respected 😂
0
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 5mo ago
Replying to
@waterkip@defcon.social @klabauterjan@phpc.social you did it wrong. create-project creates the composer.json file from scratch, you already created it. You could do the reverse, and run composer update again to check that all the needed versions are compatible with the required platform. But, in any case, having the correct runtime when working IMO is a hard requirement.
0
12
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 5mo ago
Replying to

@waterkip@defcon.social in your console recording, you created a composer.json with the platform settings, then you issued composer create-project.

That fails right away because it works only in an empty folder, it's a scaffolding command. What do you want to achieve, alongside forcing the PHP version?

In general, I would advise you to get a local dev environment with the right PHP version, not to fake it (use Docker, maybe?)

0
4
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 5mo ago
Replying to
@waterkip@defcon.social now I got it sorry. Could you have used composer config --global platform.php 8.2?
0
1
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 5mo ago
Replying to
@waterkip@defcon.social again: create-project does not consider a local composer.json because it expects to create a new one itself. As for the version problem, you need to require a lower Laravel version explicitly while invoking create-project.
0
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 2mo ago
Replying to
@saramg@fosstodon.org woha, so envious! I currently don't have the space (nor probably the time) for something like this!
0
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 1mo ago
Replying to
@shaedrich@mastodon.online @michael@mstdn.thms.uk @Crell@phpc.social but common - well, average - is what LLMs excel at. Pun intended.
0
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 2mo ago
Replying to
@dunglas@mastodon.social this doesn't make sense to me... Aren't headers name case insensitive by standard?
0
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 1mo ago
Replying to
@Crell@phpc.social possibly devContainers could solve all of them in a single step? They are a bit tricky to set up, but once done it works!
0
1
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 1mo ago
Replying to
@Crell@phpc.social with devContainers you can run the core of the IDE inside the container, so all is localhost, like vscode
0
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 2mo ago
Replying to
@OndrejMirtes@phpc.social compared to the people that was forced to write assembly, yes we are! Hamilton landing the Apollo with kilobytes of memory, or even shuffling entire games in NES/Atari cartridges was one order of magnitude more clever of what we churn out today. Granted, we push out 5-10 order of magnitude MORE software, but surely not more clever or better. @gullevek@famichiki.jp
0
1
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 3mo ago
Replying to
@afilina@phpc.social I routinely patrol our Percona Query Analytics at $dayJob for this exact reason, I often find slow queries with easy fixes... After years like that, my colleagues fixed a lot of stuff, and the other day they took a monster with 2 nested sub queries, simply split it in half (1 query + 1 query with IN(...)), and obtained a 90% reduction in load and execution time in the core query of their business line! It was glorious!
0
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 5mo ago
Replying to
@klabauterjan@phpc.social @waterkip@defcon.social possibly. It's always possible that the downgrade gets stuck due to cross-package downgrades, but it's less likely this way..
0
0
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 2mo ago
Replying to
@remi@phpc.social @s_hulard@mamot.fr I disagree with this. It's not a workaround, it's intended. It comes from the same practice being applied to PHP packages, where we pull the source directly, but I still think it should be applied here too. It's a few Mb, but pulled and pulled again thousands of times it adds up and it's useless, since often they get packed inside stuff like Docker containers. If I need to read that, I can still go to the source and look at it.
0
2
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 2mo ago
Replying to
@tobiaskoengeter@sueden.social switch to PIE! https://www.php.net/manual/en/install.pie.intro.php
php.net
0
1
0
0
Open post
Alessandro Lai @alessandrolai@phpc.social
· 7mo ago
Replying to
@paranoiq@witter.cz @flowcontrol@phpc.social exactly! I knew this because I leveraged it in the opposite direction in this small command wrapper that I wrote years ago: https://github.com/facile-it/terminable-loop-command
GitHub

GitHub - facile-it/terminable-loop-command: A Shell+PHP wrapper to run Symfony console commands in loop under a daemon or Kubernetes

A Shell+PHP wrapper to run Symfony console commands in loop under a daemon or Kubernetes - facile-it/terminable-loop-command

0
0
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 12:17:31 UTC