@heiglandreas@phpc.social
@heiglandreas@phpc.social avatar

heiglandreas

@heiglandreas@phpc.social

Father. Husband. PHP-Nerd. Draughtsman. Soil-Scientist. Brewer. Rescue-Diver. OSS-Maintainer. Challenge-Accepter.

Homebase roughly 50N 8E

@ teamup.com, ingewikkeld.net & stella-maris.solutions

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

afilina, to random
@afilina@phpc.social avatar

Write code in a way where it's impossible for it to be misused by another dev. Prevent instantiating incomplete or incorrect objects, prevent calling methods in the wrong order, prevent putting your objects in an invalid state. This easily quadruples the productivity of my teams.

heiglandreas,
@heiglandreas@phpc.social avatar

@sarah @afilina I usually try to have only one method that can get executed to change state.

Or pass a DTO to the method and have it return a changed DTO that can then be used to be chamged in a different method. When those are different DTOs the typesystem will break if called in the wrong order

heiglandreas, to random
@heiglandreas@phpc.social avatar

I hope my Nepali friends and everyone else there is and stays safe....

https://social.yl.ms/display/e18176ef-d5813f59-c18f3496eb275ab1

heiglandreas, to random
@heiglandreas@phpc.social avatar

Thank you all at @phpugmrn for a great evening. It was a pleasure and I would have loved to stay a bit longer.

Thanks Łukas and Thijs for very interesting and enlightening talks!

Hope to see you all soon!

fribbledom, to random
@fribbledom@mastodon.social avatar

I really dislike the button reading "Publish" when sending a DM on Mastodon.

It always makes me question if I'm really sending a DM or if I'm accidentally "publishing" something on my regular feed.

heiglandreas,
@heiglandreas@phpc.social avatar

@fribbledom I always think ofDMs on Mastodon as Toots that only the mentioned people can see. And suddenly the word "Publish" makes sense. And as they are not encrypted but readable by anyone getting acces to them it is a kind of publishing....

heiglandreas, to random
@heiglandreas@phpc.social avatar

Thank you DeutscheBahn for this helpfull notification!

You do know that that train has still not arrived at the station due to a 50 minute delay? So YES! I would love to use the comfort checkin feature! But I'd rather first get into the train!

Takeaway: Before sending notifications it might be a good idea to check whether the circumstances might have changed and either delay or completely ignore the notification...

heiglandreas, to random
@heiglandreas@phpc.social avatar

Bluetooth-headphones that can not connect while charging....

WHY????

I can use my phone, my laptop, my touchpad, my keyboard,... while charging...

Why not my headphones or my magichamster?

heiglandreas, to random
@heiglandreas@phpc.social avatar

Yes. I think I understand why people love living here.

whalecoiner, to random

Bluesky absolutely nailed it by targeting the FOMO that runs right through the tech industry.

You could put “invite required” on a cheese sandwich and developers would be selling their grandmothers for access to it. 🙄

heiglandreas,
@heiglandreas@phpc.social avatar

@whalecoiner

/me heads off in search for an "invite required" branding iron....

heiglandreas, to random
@heiglandreas@phpc.social avatar

I'm enjoying "The best mobile network" during a trainride in germany. What shall I say...

If that is the best network in germany, I'd rather have the worst network in Nepal....

flowcontrol, to random
@flowcontrol@phpc.social avatar

I am happy to announce that I will be giving a talk on @reactphp at @PHPers in ~four weeks 🐘
I'm really looking forward to my first trip to Poland 🇵🇱
Grab your ticket and get a ReactPHP sticker (just find me)

heiglandreas,
@heiglandreas@phpc.social avatar

@flowcontrol Looking forward to seeing you tzere!

/cc@PHPers

afilina, to random
@afilina@phpc.social avatar

Brought my 9-year-old daughter to a quiz at a local board game place. The theme was astronomy. She was the only kid there, but she got a few answers right, including a tough one.

Our team came in second. She really enjoyed herself and seems to want to repeat the experience. Am I doing this right?

heiglandreas,
@heiglandreas@phpc.social avatar

@afilina Your kid is enjoying herself? That can't be right, can it? 😉

syntaxseed, to random
@syntaxseed@phpc.social avatar

Working on my first project to be hosted by the client on AWS & I'm told I can't store anything on the filesystem.

So now I have to rethink profile picture uploads, session storage, logs, etc.

🤔🤔🤔

heiglandreas,
@heiglandreas@phpc.social avatar

@syntaxseed S3, Redis and Datadog/elk-stack to the rescue.... 🙈

heiglandreas,
@heiglandreas@phpc.social avatar

@syntaxseed BTW: From own felt pain: Use something like flysystem to implememt the filesystem operations.

Thank me later when you write the tests and can use a local system instead of S3 🙈

afilina, to random
@afilina@phpc.social avatar

A class named UsefulTestCase implies that there is a class named UselessTestCase. I pride myself on my ability to extrapolate from incomplete information.

heiglandreas,
@heiglandreas@phpc.social avatar

@afilina 🤣😂🤣😱🙈🤣😂

heiglandreas, to random
@heiglandreas@phpc.social avatar

There goes my free time....

heiglandreas,
@heiglandreas@phpc.social avatar

@rskuipers either way it's probably true! Feel free to add a number of * anywhere for more hardship 🙈

heiglandreas, to random
@heiglandreas@phpc.social avatar

I love PHP!

But sometimes..... 😡

heiglandreas,
@heiglandreas@phpc.social avatar
heiglandreas,
@heiglandreas@phpc.social avatar

The test should have been if ($string ==== null) - but that part of the code .... let's say it evolved over time...

heiglandreas,
@heiglandreas@phpc.social avatar

@brunty just to be sure!!!

😂🤣😱🙈

heiglandreas,
@heiglandreas@phpc.social avatar

@SenseException We for sure did!

My mental model on this one was like "if the variable is not string... but it IS a string! What are you DOING???"

It took a while to realize that that was wrong and needed to be "if the variable $string contains something that can be cast to boolean false...." Oh! Wait!

And why can $string be NULL.... 🙈

heiglandreas, to random
@heiglandreas@phpc.social avatar

2019 jetbrains publishes a howto to be able to step-debug twig templates. Yes! The user-edited ones. As well as the compiled-to-php ones.

Lucky me stumbled over it when I needed exactly that functionality right now!

Thought I'd share it: https://blog.jetbrains.com/phpstorm/2019/05/twig-and-blade-templates-debugging-2/

heiglandreas,
@heiglandreas@phpc.social avatar

@derickr @DadaProvider was already curious how that worked 😁 He'dfor sure not be uninterestedin your findings 😇

heiglandreas, to random
@heiglandreas@phpc.social avatar

Why are there still forms like this?

It is 2023 and there are still people out there that do not get it.

I doubt that it is necessary to know my gender to be able to provide me with a public transport ticket - even when they need to create an invoice.

Just provide me with one line "How shall we adress you in written communication" where I can add my name in the way I want it to appear.

No need for a salutation, no need for a first name, no need for a last name.

heiglandreas,
@heiglandreas@phpc.social avatar

@omnicolor See! Everytime you log in you have a positive experience and something to grin about 😁

Much more fun to work with them than with some other sites...

heiglandreas,
@heiglandreas@phpc.social avatar

@omnicolor In a talk about forms that I have in store I encourage people to just use one input field for title, first and second name. And I give people exactly that example: When you decide to enter "Hi Spongebob" there, you will be smiling each time you receive a newsletter or log in. And your website - and therefore your services - will stand out!

dragonmantank, to random
@dragonmantank@phpc.social avatar

An interesting question that has always bugged me:

I’ve released a new version of software, why aren’t people upgrading?

I think I found the question I should be asking:

What’s the friction people are experiencing when trying to upgrade?

heiglandreas,
@heiglandreas@phpc.social avatar

@dragonmantank @alessandrolai When you got the SEP handed over the main question is probably: For new features or to keep it running?

For new features: You are knee deep in sh*t to get the features up and running without breaking too much, so updates please only when necessary.

For maintenance: Lucky you: Add tests (automated or documented manual) and then update, update, update. Add renovate or similar.

Key are IMO tests. Otherwise your customers will find the problems....

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