Replies

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

sarah, to random
@sarah@phpc.social avatar

Spent the morning writing code to test a microservices architecture. Wondering at what point testing relationships between services becomes cumbersome.

alessandrolai,
@alessandrolai@phpc.social avatar

@sarah I was discussing contract testing w/ colleagues yesterday, which is exactly what you're talking about.

IMHO, you either go full-decoupled, and leverage stuff like OpenAPI to do contract testing in isolation, or you go full-coordination, and prop up choreography testing and enforce cross-referenced testing with some tooling like Pact and the like.

You pick your poison, but IMHO the middle ground is counterproductive, you don't get a clear architecture or a good collaboration environment

maks_rafalko, to random

Discussing with @OndrejMirtes how PHPStan can be integrated into Infection "natively" to kill Mutants that aren't killed by tests.

https://github.com/phpstan/phpstan/discussions/10966

If you have ideas, please participate.

alessandrolai,
@alessandrolai@phpc.social avatar

@maks_rafalko @OndrejMirtes this is really interesting! I'll subscribe to this 😁

ollieread, to php
@ollieread@phpc.social avatar

I need to remember that Mastodon exists! I’m currently writing a bunch of content to do with PHP and this would be the perfect place to talk about that.

I’m currently trying to decide whether #php #reflection is an interesting enough topic that people may like an in-depth course/series on it. It seems to be something a lot of people are vaguely aware of, but don’t really know the details.

alessandrolai,
@alessandrolai@phpc.social avatar

@ollieread it's refreshing to read some PHP related content that gives recent language version for granted 😂

BTW, this article would be an ideal springboard to talk about generics; otherwise, to talk about this PHP-FIG bylaw: https://www.php-fig.org/bylaws/psr-evolution/

I wrote that, and it totally revolves around variance, since I had to devise a way around that to create a smooth migration path for PHP-FIG new typed interfaces...

alessandrolai,
@alessandrolai@phpc.social avatar

@ollieread well, the PSR scope is intentionally reduced to avoid over-standardization. And those are actively being used by multiple current frameworks and libraries right now.

Still, there are a couple of cases where we would like to do improvements, and the service registration for container is one currently being discussed in the mailing list.

alessandrolai,
@alessandrolai@phpc.social avatar

@ollieread that's surely an interesting approach, but IMHO you're venturing outside of the scope of PHP-FIG and onto the implementation space...

cabbey, to php
@cabbey@phpc.social avatar

ok folks, you were right Rector is pretty cool. The learning curve is steep AF, and the docs are, well, let's just say they're written by engineers for engineers. But given the target audience for this tool, that's OK. I've not yet done the changes I was originally asking about with it, because the config for it is going to be a PITA to build. I've been starting small. But what I've done so far has been pretty cool! I've done some wild things with RenameClassConstFetchRector for example. 🧵

alessandrolai,
@alessandrolai@phpc.social avatar

@cabbey @shudder yeah sorry, that's how it works.. That config option has some arguments though, you may try to see if there's one to help you there.

dragonmantank, to random

Decided to switch back to android, going with the S24 Ultra.

I had forgotten how bad it is logging back into everything. At least the transfer app moved and downloaded all my apps for me.

alessandrolai,
@alessandrolai@phpc.social avatar

@dragonmantank if you transfer between Samsung, you basically don't have to re-log into anything, they have a dedicated app to transfer everything, even directly via an USB C cable between the two phones..

Otherwise, I've found that having a password manager reduces a lot the login friction, whenever a "login via Google SSO" is not available.

ramsey, to random
@ramsey@phpc.social avatar

Has fedi engagement picked up recently, or am I just posting quality content?

alessandrolai,
@alessandrolai@phpc.social avatar

@ramsey @thomas awesome! 🤣

This gives the same vibes of this from @bagder, Curl's creator: https://mastodon.social/@bagder/112313816741180729

asgrim, to random
@asgrim@phpc.social avatar

I wonder if the Bri'ish "bo'u'o'ua'ah" is the longest English string of vowels in a word? 🤔

alessandrolai,
@alessandrolai@phpc.social avatar

@derickr @asgrim and I thought that the Italian "aiuola" was stretching the mark 😂

cspray, to php
@cspray@phpc.social avatar

I have found myself, for the first time, having to write what I consider worse code to satisfy Psalm static analysis. Here's a watered-down example showing what I consider odd behavior.

https://psalm.dev/r/5862a290e2

I'm not certain why the 2nd call to doSomething() is valid but the 1st call is not.

alessandrolai,
@alessandrolai@phpc.social avatar

@sidawson @cspray that's not the issue here. The same snippet should trigger PHPStan errors too, because it was the starting definition too strict, since it requires "list".

List is an array with only consecutive integer keys. If you don't re-index (and the spread operator does) you don't have a (guaranteed) list anymore.

Crell, to php
@Crell@phpc.social avatar

Proposal for a conference talk: How to configure and all its tooling extensions (xdebug, phpstan, php-cs-fixer, etc.) to use a docker container consistently.

That could easily fill a tutorial...

alessandrolai,
@alessandrolai@phpc.social avatar

@Crell why do you find it so hard? Isn't enough to define it as the default interpreter, and put "default interpreter" as the runtime for each tool?

The only other fix that I need is to use relative paths when defining tools and their configs..

alessandrolai,
@alessandrolai@phpc.social avatar

@Crell I doubt I'll have enough time to do it 😵 hopefully this summer...

alessandrolai,
@alessandrolai@phpc.social avatar

@Crell I'm just swamped at work! 😭

alessandrolai,
@alessandrolai@phpc.social avatar

@herndlm @Crell no you can't. Other IDEs like VS code solve the issue with dev containers, basically running the IDE from the inside of Docker.

I have many colleagues with Macs and they all solved the performance issues with some tool, but I don't know how.

ian, to random
@ian@phpc.social avatar

MySQL 8.0.25 or so and above allows indexes of a, b, c to work with queries with WHERE on a and c only. This is pretty new. - @Stoker

alessandrolai,
@alessandrolai@phpc.social avatar

@ian @Stoker wow this is really interesting!! I would very liked to have seen this talk :(

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