Doeke Norg (@doekenorg) header
Doeke Norg (@doekenorg) profile picture

PHP Architect, spouse to @Renatenorg and father of 3. Follow me for more on vanilla PHP and useful patterns.

Vries, The Netherlands
Joined March 2009
One of the most important features you probably take for granted on any marketplace like Amazon or eBay: now available in GravityView Pro. This was a lot of fun to build. It opens up so many new possibilities for your listings! 🍾
Pick the fields people should filter by, click Update, and your View has a filter panel that narrows your entries with every click. Live Filters is new in GravityView Pro, available November 12. gravitykit.com/new-in-gravit…
3
370
"Understanding WCAG 2.2" is *the document* that explains every success criterion: what it asks, who benefits, how to fix it. The W3C publishes it only as dozens of web pages. So I converted it to a free e-book. EPUB + PDF (PDF/UA, of course). doeken.org/wcag-ebook #a11y #w3c
1
1
4
545
The irony is not lost on me that I forgot the alt text on the image. But I will not remove and repost! I'm only human. Which is kind of the point. So here it is: 'Card reading "Understanding WCAG 2.2 as EPUB and PDF" with the doeken.org logo.'
2
91
Without looking it up... What is the result here? *Spoiler, it is _not_ 2024-12-31*
2
4
358
Quick PHP Tip💡 If your class is meant to be immutable, don't use a public constructor; you can call it like any other public method. Use a private constructor with a static named constructor instead.
6
10
745
Here is one that *is* immutable. Alternatively, you can also use `readonly` parameters (8.1) or classes (8.2).
1
4
295
PHP Coroutines... and hot potatoes? 🥔🔥 Sounds weird, but it perfectly explains how `yield` and Fibers work. If you’ve dabbled with them (or avoided them entirely), this post is for you 👉 doeken.org/blog/coroutines-i… #PHP #Coroutines #AsyncPHP
9
549
PHP Coroutines... and hot potatoes? 🥔🔥 Sounds weird, but it perfectly explains how `yield` and Fibers work. If you’ve dabbled with them (or avoided them entirely), this post is for you 👉 doeken.org/blog/coroutines-i… #PHP #Coroutines #AsyncPHP
17
4
79
4,720
Unfortunately I was right about how wrong the provided info was 😑
1
168
Damn, @samwhoo's posts never seem to disappoint me. The quality is absolutely bonkers, with the perfect balance of nerding out and light-heartedness. And the interactivity is something we should all strive for. 👏 When is your course coming? Sign me up !💰
It me! ❤️ This really was such good timing. I sent Nolen one of my first drafts of samwho.dev/reservoir-samplin… at the time he was working on this cold-start problem. He connected the dots immediately and we had a good laugh about it.
1
6
461
I would call it 'created_at'. #crudlife
You're adding a column to your users table to store the users birthdate. What do you call it?
33%dob
53%birthdate
13%birthday_at
586 votes • Final results
2
10
609
Quick PHP tip: If you ever need to insert a value into an array at a specific index, you can use the `$replacement` variable of the php.net/array_splice method, combined with a length of `0`. If you know the value, you can find the index using php.net/array_search.
2
6
170
I found out this weekend how to make fluffy pancakes 🥞! I just mixed up regular pancake batter and then whisked the crêpe out of it. 🤌
2
127
I'm so glad to see the screen casting course from @aarondfrancis paid off. Basically needed just one take. Anyways, the full edit is here: youtube.com/watch?v=9K4pxzcs… #php #wordpress @apogidev @mail_poet @gravityforms
2
13
675
Back to 100kg squats. Getting there. Is there a fitdads.dev group I can join? 😅
7
326
37. I'm starting to feel old. 🥳 Happy Valentine's ❤️
3
200
This is so subtle, and so easy to miss! I wondered if is should at this caveat at the time of writing this blog, and now I'm glad I did 😅. Generators are still great 🙌 doeken.org/blog/generators-o…
Ugh, I'll never learn. I wasted a good hour this week wondering why I couldn't make an invokable class the source for a LazyCollection. If you want to do complex generators nicely often it's best to make them their own invokable class. The problem with that is using them with Laravel's LazyCollection. It won't consider them a generator until you encapsulate the invokable object into a Closure. You can do this by using the first-class callable functionality in PHP.
1
2
244
The amount of spelling errors in my tweet is awful, sorry.
83
A 100 x yes! These are the updates that actually make PHP better! 👏
What do you think? The latest RFC to the #PHP language is the |> pipe operator. Inspiration taken from Elixir, OCaml, F#. In the past, this was proposed. myself and others vote against it, but for different reasons at the time. I feel now is the right time for this to come to PHP, and I plan to vote YES on this. You can also do chaining and piping in PHP, but it's a userland implementation and add overhead. This will be built directly into the compiler. Here is the after/before image.
1
160