@arnapou@phpc.social
@arnapou@phpc.social avatar

arnapou

@arnapou@phpc.social

🛠️ Engineer
🐘 Senior backend developer
🧙‍♂️ Dev+Ops lover
👾 Gamer
👪 Father of 3
🇫🇷 French
🇹🇬 Lived 17 years in africa
🇰🇷 나는 한국 드라마를 사랑한다

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

Crell, to random
@Crell@phpc.social avatar

How good, caring people became the bad guys...

https://www.okdoomer.io/thebadguys/

arnapou,
@arnapou@phpc.social avatar

@Crell 🤗 Thank you for sharing this. Well written. I often felt that : being the bad guy because telling the truth, being too sincere. Recently, I told around me, family & work that I feel totally exhausted, I asked my HR to help me recover reducing my work time (even if it means less money), but nothing. Rowing or sinking, that’s how we feel for years with my wife. 🤷🏼

afilina, to random
@afilina@phpc.social avatar

This looks suspiciously similar to azjezz/psl, just with a different API. It even has the same name: PHP Standard Library.

The PHP community would be better if devs worked together instead of copying and re-branding someone else's work. Credit to azjezz for the original PSL.

arnapou,
@arnapou@phpc.social avatar

@afilina Sad.

I never liked the way this guy presented things like if they are new and innovative (already seen a conference of him 5 years ago). Narrowing type is supported by phpstan, and if we want more type strictness at runtime, there are so many ways to do that. I even built my own « lightweight » lib for that last year (arnapou/ensure)… 😂

People need to stay humble, but it seems to me (I may be wrong) that the laravel world is filled with too much show off.

afilina, to random
@afilina@phpc.social avatar

Blogged "Legacy Tales: Arrays Initialized Using Strings"
https://afilina.com/legacy-array-empty-string

arnapou,
@arnapou@phpc.social avatar

@afilina Got that in legacy projects too.

That was very funny passing from 5.6 to 7 when the index is an integer, for instance a huge integer from a table autoincrement field. $array = ““; $array[$id] = $someString, because it explodes the memory in php 7 trying to put “abc“ in the right position in the string while it just set “abc“ at $id array index in php 5.6 🤯😂

arnapou,
@arnapou@phpc.social avatar

@afilina 👍 lmao, didn’t got negative integers when I got this a few years ago. But even between 7.x versions, there are inconsistencies.

markusstaab, to random German
@markusstaab@phpc.social avatar

I love theses pull requests.

It usually takes more time arguing with the involved stackholders, then the actual change.

but it smells like freedom :-)

arnapou,
@arnapou@phpc.social avatar

@markusstaab 💯

I like being provocative when I say I worked for a previous company for 2 years where I was paid to suppress code. About +400k/-800k LoC 😂

jay, to linux
@jay@phpc.social avatar

I have some experience with on servers, but not on desktops. Now I've ordered my first non-mac PC and am not sure which distro I should use. I'd like a minimal one to not have apps that I won't use and to have a chance to learn everything from the get-go.

intrigues me, but I'm not sure if it is too advanced to start with.

Which do you use and why?

arnapou,
@arnapou@phpc.social avatar

@MagicLike @jay If you want like me staying with Ubuntu flavor without the bad moves of Canonical, I would suggest TuxedoOS.

ramsey, to php
@ramsey@phpc.social avatar

deleted_by_author

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

    @Crell @ramsey idk if my opinion is relevant but I change too often of company because they lack what I need to stay. I am a pure engineer, eclectic, emotion-less, pragmatic, loving reliable simple but powerful things.

    The fact is that it was harder for me to find a job the last years. Companies are not seeking people like me in php. I will begin a new job in February and I hope that it will last more than 3 years.

    I am in France and the mindset is awful about php.

    hywan, to Energy
    @hywan@fosstodon.org avatar

    It’s been 300km we (my wife and I) are driving our new Microlino (https://microlino-car.com/en).

    It consumes 6kWh/100km. It’s roughly 0.6L/100km once converted to gas.

    Fully charging it costs 3CHF, for 150km.

    arnapou,
    @arnapou@phpc.social avatar

    @hywan My assisted electric bicycle consumes around 0.6kWh/100km for commuting. For a 500kg car, microlino seems not bad to me. Thanks for sharing, bookmarked for future. 🤗

    arnapou,
    @arnapou@phpc.social avatar

    @hywan Yep. I sold one our 2 cars for the bike. Here children are 13, 14, 14 and I don’t need anymore to carry them for school. We have a diesel car because I cannot replace it with electric : we need a car adapted for my disabled child. There is nothing in the market for us : no place for batteries. (Yes i know for your home and your website about it, love your shares, following you for around 15y, sounds creepy said like that, sorry 😅)

    Crell, to php
    @Crell@phpc.social avatar

    When should you use Enums, and when shouldn't you?

    https://peakd.com/hive-168588/@crell/on-the-use-of-enums

    arnapou,
    @arnapou@phpc.social avatar

    @Crell Nice article.

    You wrote « So why then do BackedEnums exist? There's really only one reason: Serialization. »

    I used BackedEnums when the value is covered by a RFC or when the value will not change soon like SnmpVersion (case v1 = ‘1’, case v2c …).

    Would you say I was correct or I made a mistake ? (In fact I could have kept a simple enum and create a dedicated method.)

    arnapou,
    @arnapou@phpc.social avatar

    @Crell Ok thanks, I understand better what you meant by this sentence 🤗

    Crell, to php
    @Crell@phpc.social avatar

    Null is problematic, but why? Let's see why, and let that guide us to new alternatives.

    https://peakd.com/hive-168588/@crell/much-ado-about-null

    arnapou,
    @arnapou@phpc.social avatar

    @Crell I have the case where my method is a generic (phpstan typing) returning the object type.

    I wanted to use an enum to materialize some unsupported cases, then returning object|Error but this is nonsense because Error is an object.
    Returning only object can lead to errors for the user.

    In that case the null sentinel is the easy way. In fact I used exceptions to keep the generic typing, I am not happy with it. Hard to find a way, dilemma.

    arnapou, to random French
    @arnapou@phpc.social avatar

    Looking for a (php) job.

    Full remote or bicycle accessible (<16 km by ride).

    If you need a senior backend developer (+20y of php / 43yo 😅).
    Hire me only if you need high quality, precise, human readable code.

    I am en engineer before being a developer, loving simple (≠ easy), reliable, sustainable architectures.

    If you don't need me, but know someone else who can be interested, feel free to foward.

    🇫🇷 French accent when speaking english, but open to the world.

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