Posts

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

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Just released a new minor version of my โ€œchangelog-updaterโ€ GitHub Action.
https://github.com/stefanzweifel/changelog-updater-action

If the heading of a previous release in the changelog has a link to a compare view, the Action will use that URL and add a link to the updated compare view to the new release notes.

It's hard to explain this with words. The attached screenshot gives you a good example.

This previously only worked, if the changelog had a "Unreleased" heading with a link in it.

bobmagicii,
@bobmagicii@phpc.social avatar

@stefanzweifel been fighting this kind of thing too. one thing that has helped me personally is that when i need to print status messages... if i am not in "the cli app file" or 1 level of class deeper, aka my ./bin/whatever.php, then i have done it all wrong and stop.

this has helped me a lot because now i do a terminal app, and then like a terminal app... subcontroller?

so my main app will just be like DoThatStuff() new StuffDoer(this), and i do not allow cli related things to go any deeper.

bobmagicii,
@bobmagicii@phpc.social avatar

@stefanzweifel this highlighted method still being called Run() on Project is a direct artifact of when i had to stop and refactor my depths lol.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar
stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis I've deployed it already. ๐Ÿ˜„
(Also switched hosting from Vercel to Cloudflare pages.)

Gonna write a couple of blog posts soonish. Next up is also a โ€œmicroblog" for some smaller/shorter posts.

regis,
@regis@phpc.social avatar

@stefanzweifel I've noticed it since it reset the RSS feed.
Oh boy it's fast.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Happy Eurovision week to all that celebrate. ๐Ÿชฉ

stefanzweifel,
@stefanzweifel@phpc.social avatar

@adfichter I think Nemo has a high chance of winning.
Just listened to the super-cut of all songs this year and their song really stands out.

adfichter,
@adfichter@chaos.social avatar

@stefanzweifel I hope so too. Its a masterpiece! But I'm afraid popular voting will be in favour of 90's euro trash...

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Love it.
iCloud Drive decided to download all my old photo archives and old Windows XP games iso-files until 100MB of disk space was left.

No delete all node_modules folders and local TimeMachine snapshots. And after three restarts iCloud stopped downloading any more files and gave me back 15GB of data. ๐Ÿคท

stefanzweifel,
@stefanzweifel@phpc.social avatar

Haha. Microsoft Teams uses 1.8 GB of disk space?!

michael,
@michael@thms.uk avatar
stefanzweifel, to php
@stefanzweifel@phpc.social avatar

While making my PHP packages compatible with Laravel 11 the last few weeks, I've also spent some time and added PHPStan to all of them.

The more simpler ones are already on level 9. The more complex are still on level 5 or 6. I'm still a novice when it comes to proper type documentation. Goal is to increase levels throughout the year.

Links to all packages:
https://stefanzweifel.dev/projects

#php #phpstan

stefanzweifel,
@stefanzweifel@phpc.social avatar

@thgs @regis The problem is Laravel's magic.
Tools like Larastan or the laravel-ide-helper can help here.

The core problem is that for example in this User model, there are no $name or $email properties, but one can use $user->name = โ€˜Fooโ€™;
https://github.com/laravel/laravel/blob/11.x/app/Models/User.php

As mentioned, Iโ€™m a novice when it comes to phpstan and currently don't see the need to go to level 9 in my projects.
My app code these days are often strictly typed PHP classes "outside" of Laravel anyway.

thgs,
@thgs@phpc.social avatar

@stefanzweifel @regis yea I see, I was just curious about what is the obstacle. Also way more competent with psalm than phpstan myself, magic properties are still possible but you would need to define a lot of psalm types. I think more or less the same for phpstan too.

Itโ€™s quite a bit of difference in the code in level 5 and then level 3 and then level 1 (reverse these for phpstan).

I tend to like the way you need to write the code in the max level because it ends up being guided a lot.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

And the award for the worst country select field goes to โ€ฆ Meta.

Countries are sorted randomly. Not by name or abbreviation.
Oh and the native behaviour of a select field โ€“ typing searches the options โ€“ does not work. (It jumps to the option that starts with the last character you typed)

@grumpy_website

michael,
@michael@thms.uk avatar

@stefanzweifel haha, bonkers!

I hate country drop downs anyway. Especially when you are from a country like the UK which Iโ€™ve seen listed under U for United Kingdom, G for Great Britain, B for Britain, or even E for England. (The latter being particularly popular on German sites for some reason.)

So, yeah, country drop downs are an abomination to me โ€ฆ

cliophate,
@cliophate@overkill.social avatar

@stefanzweifel @grumpy_website Luxembourg, represent!

stefanzweifel, to Laravel
@stefanzweifel@phpc.social avatar

If you're in Zurich this Thursday evening and want to learn more about Laravel, I highly recommend joining us at the Laravel Switzerland Meetup.

Topics this time:

  • Fat Enums
  • How to Kickstart your next App

https://www.meetup.com/laravel-switzerland-meetup/events/298948244/

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Weird feeling today. Pulled the plug on a project at work today which I took over 11 years ago.

It was my first project at the company. I first migrated it from "raw" PHP, then to Codeigniter and then to Laravel.

This project alone tought me so much: scaling an app to send thousands of mails per day and deal with incoming webhooks. Tracking of server side events without impacting performance for users. Designing custom email templates. And so much more.

michael,
@michael@thms.uk avatar

@stefanzweifel working on the same project for such length of time is so rare (at least when it comes to โ€˜at workโ€™ work) yet so rewarding.

Must be hard letting it go thoughโ€ฆ

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

I'm in that stage of my life, where I walk from the office back to my place during lunch brake to take the butter out of the fridge, so it's not too firm when I want to bake muffins this evening. ๐Ÿ‘จโ€๐Ÿณ

rskuipers,
@rskuipers@phpc.social avatar

@stefanzweifel haha, peak life right there

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Great talk by @dunglas at explaining .

dgoosens,
@dgoosens@phpc.social avatar

@stefanzweifel @dunglas

when you think about it and @ApiPlatform may be the bridge we were missing between the @symfony and communities

I personally think that is and hope this is the beginning of less silo more together

stefanzweifel,
@stefanzweifel@phpc.social avatar

@dgoosens @dunglas @ApiPlatform @symfony Fully agree. Love the project and the energy that is behind it.

And how all major players in the ecosystem are looking to or already supporting it.

stefanzweifel, to blogging
@stefanzweifel@phpc.social avatar

Last week of the year. Time for the yearly recap blog post.

https://stefanzweifel.dev/posts/2023/12/27/recap-2023

regis,
@regis@phpc.social avatar

@stefanzweifel always a joy to read.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis โ™ฅ๏ธ

stefanzweifel, to opensource
@stefanzweifel@phpc.social avatar

Soon, my git-auto-commit GitHub action will be used in 70k public repos (๐Ÿคฏ).
To celebrate, I checked which are the biggest repos that use my little action.

Some big names are in there. Vercel, GitHub, Grafana, Android.
But also cool community projects like iptv, catppuccin or NotepadNext.

Makes me a proud that my most popular side-project is used in so many cool project. (I remember that I used Notepad++ to work on my World of Warcraft addons back in the day)

stefanzweifel,
@stefanzweifel@phpc.social avatar

@regis "Star the repo to get a chance to win a iPhone 16 Pro Galaxy HD." ๐Ÿ˜„

regis,
@regis@phpc.social avatar

@stefanzweifel Idea for next milestone maybe?

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

Blogroll time โœจ

https://stefanzweifel.dev/blogroll

stefanzweifel, to Taskmaster
@stefanzweifel@phpc.social avatar

Loved the "Taskmaster Hotel" task in the series 16 final. And they even released an extended cut on YouTube with Sue and Susan.

https://www.youtube.com/watch?v=BtU0sB61oGo

phphil,
@phphil@phpc.social avatar

@stefanzweifel This season was amazing. One of my favorite casts so far. Very wholesome.

stefanzweifel,
@stefanzweifel@phpc.social avatar

@phphil I wish the season would go on and on. Julianโ€˜s sass always had me laughing out loud.

stefanzweifel, to random
@stefanzweifel@phpc.social avatar

If youโ€™re a dev, you probably already know how good plain-text files are; but this video by No Boilerplate is a good reminder just how perfect plain-text files really are.
(And how Github Issues and Projects is good enough for your work)

https://www.youtube.com/watch?v=WgV6M1LyfNY

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