@Girgias@phpc.social avatar

Girgias

@Girgias@phpc.social

I'm a PHP core developer and documentation writer, funded by https://phpc.social/@thephpf
Lead maintainer, and master of typos, for the French translation of the PHP documentation.
BSc in pure mathematics
Photograph/Otaku in my spare time

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

cabbey, to php
@cabbey@phpc.social avatar

Does anyone have a better way to write the conditional calls to foo at lines 5-9 of this #php code? https://3v4l.org/fqCvv The goal is to have the default argument for bar trigger the default argument for foo, but they're different defaults (since one is nullable and the other isn't), and bar should not need to know what foo's default is. (obviously in my real code it's a much more complex signature, and separate classes.)

Girgias,
@Girgias@phpc.social avatar

@cabbey Use func_num_args()?

Girgias,
@Girgias@phpc.social avatar

@cabbey well you can use that function to determine if the call-site passed an argument or not, if not the default value is used in the function body.

It seems like you want different behaviour depending on what arity the function is called which the above function allows you to do e.g. https://3v4l.org/bFjSJ

Girgias,
@Girgias@phpc.social avatar

@cabbey sure for nullable types the null default works just fine.

I have opinions about multiple named parameters, but that's because so many terrible Python APIs are designed like that when they should effectively be multiple functions.

xakan, to php French
@xakan@social.zdx.fr avatar

Moi ce que j'aime avec #PHP, c'est que c'est so 2024.

Genre strtoupper(), la fonction censée convertir les caractères en majuscules, ne gère pas du tout les accents.

Ainsi, strtoupper('très') retournera 'TRèS'.

Classe 😅

Girgias,
@Girgias@phpc.social avatar

@xakan Ouais une "chaîne de caractères" en PHP c'est vraiment juste un byte-array. Et tout ce qui commence par str* fonctionne grosso modo que avec les caractères ASCII.

IIRC si tu utilisais setlocale avec la locale FR ça pouvait convertir certain accent.

Mais setlocale c'est vraiment mal foutu donc bon.

Girgias,
@Girgias@phpc.social avatar

@xakan 👍

Girgias, to random
@Girgias@phpc.social avatar

Time to fly back to England after my holiday in Japan.

Not looking forward to the 400 emails that I need to go through :')

xgranade, to random
@xgranade@wandering.shop avatar
Girgias,
@Girgias@phpc.social avatar

@rain @xgranade PHP's patch has technically been available since Tuesday when the fix was committed before tagging the release.

The "proper" release is going to be available today.
It just takes our release process 2 days to go from tagging to publishing.

Girgias,
@Girgias@phpc.social avatar

@rain @xgranade well I've also been on a crusade to fix some of the most egregious behaviour it has.

But thanks, it is pretty good at it's main task (and then some more!)

rooster, to random
@rooster@chaosfem.tw avatar

deleted_by_author

  • Loading...
  • Girgias,
    @Girgias@phpc.social avatar

    @rooster I only started electro before Xmas and oh boi it's such a slow process, 30min at a time every 4 Weeks-ish is... Slow.

    I do see the difference of where it has been done, but did not enjoy learning that part of the reason some of my darker hairs didn't get picked up by the laser are because they are red and/or have a blond tip :|

    And that's ignoring how painful it can get ._.

    dandb, to php
    @dandb@mas.to avatar

    Bit of a shame that #pcov seems to be unmaintained. It's (or was, I guess) my favourite #PHP code coverage provider.

    It looks like XDebug has improved a bunch in the meantime tho...

    Girgias,
    @Girgias@phpc.social avatar

    @dandb Pcov is maintained by Joe Watkins who has been ill for some time now, that's why it is unmaintained.

    codito, to php Polish
    @codito@mas.to avatar

    How's that possible that people like @OndrejMirtes or Keradus don't have #PHP RFC voting rights? It does not make any sense. Language should be evolving under an eye of people who know it most, not people determined enough to check all the points of the onboarding list.

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes because voting rights are a privilege.

    I don't have voting rights about PHPStan or Laravel or Symfony because I'm a PHP core dev.

    Voting is literally the last thing that should be granted to someone after their involvement with Internals and PHP core.

    I know Ondrej doesn't like the mailing list and that's why he doesn't contribute and he's totally in his right to do that.

    Girgias,
    @Girgias@phpc.social avatar

    @codito the last person from the community that got voting rights is Nicolas Grekas and that already was controversial but was granted because he has contributed a lot via big reports, reproducing bugs, and actually fixing bugs.

    Yes there is a problem with the voting pool.
    But it is too big already imho.

    And it is still my opinion that anyone that is not directly involved with internals and php-src should NOT have a voting right. Regardless of their status in the wider PHP ecosystem.

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes You can clearly contribute to how it evolves by, checks notes, participating on the internals mailing list and give feedback to RFCs before they are being voted on.

    Voting is a formality. So I don't see how it is an absurd argument. You are basically saying someone that doesn't do the former should be able to impose decisions?

    It's as if, I don't participate to any discussion on a repo and am allowed to merge any PR I want without review.

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes And it's not like we don't talk to people... but if you can fix the fact that 18000 people can vote by imposing some sensible conditions that everyone agrees on who can vote, please be my guest, because I don't know how. And that's the main blocker to any reform about the RFC process.

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes Most people who have voting rights don't vote. Not everyone that votes needs to reiterate points made by other people. Yes, there are probably people that don't read it or engage in it before voting because people have a lot to do, most people internals and reading PHP RFCs is not their job.
    Which is why a courtesy email a couple of days before opening a vote is a thing people ought to do.

    But that doesn't change that the vote is a formality.

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes I frankly have a list of people that deserve RFC voting rights that don't currently and who contribute to the ML.

    Giving voting rights to people without doing the former, even if they probably "should" in your opinion, makes no sense to me.

    The people who have voting rights are simply the people that have a php.net account because this was never decoupled when the RFC process was created 15ish years ago.

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes The RFC process is immensely flawed, but "just" giving people voting rights doesn't fix it. Who should get them, how should it be requested, should voting rights automatically grant a php.net email account, etc.

    And you will get 30 000 different opinions on how it should work.

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes Apologies, it is 1800, put one 0 too many. And it comes from the number of PHP accounts that you can find on: https://people.php.net (with page 37 being the last one)

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes Well... this is what I said in the beginning, if you can narrow this down in a way that everyone is happy then be my guest.

    But plenty of people have got voting rights, haven't used them, and will shout at you for daring to remove them this right.

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes Who announces the change?

    I think you have a fundamental misconception about how the PHP project operates. No one is in charge, no one can just "decide" this and announce it. Policy changes go through RFCs. The Voting RFC got amended via the RFC process.

    Any, and I mean any, policy change needs to go through the RFC process itself. Moreover, someone needs to build the policy change into the Dokuwiki plugin.

    Girgias,
    @Girgias@phpc.social avatar

    @codito @OndrejMirtes Well yeah, because as far as I understand, the RFC process got introduced around the PHP 5.3 era because people, rightfully so, were displeased that decision were done completely random and in the dark.

    And it hasn't really evolved from that point

    Girgias, to random
    @Girgias@phpc.social avatar

    Came back to Yoshino mountain after a week of good weather, and the difference in how many cherry trees have blossomed is astonishing.

    However this is a #Mosstodon post!

    Courtesy of Yoshimizu-jinja shrine on Yoshino mountain in Nara prefecture!

    Girgias, to random
    @Girgias@phpc.social avatar

    And some #Mosstodon photos I took today in Reikan-ji temple in east Kyoto!

    image/jpeg

    Girgias, to random
    @Girgias@phpc.social avatar

    So #mosstodon photo I took yesterday under the rain in Nijō Castle in Kyoto

    SecondeJ, to random
    @SecondeJ@phpc.social avatar

    Is anyone, -anyone- surprised that tech challenger banks are wiping the floor with account signups? Because it's mad that in 2024 this is still the user experience.

    Girgias,
    @Girgias@phpc.social avatar

    @SecondeJ I'm looking forward to the day where my voice password with Lloyds Bank doesn't work anymore, as I have no idea how to change or fix this lol

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