Claudio Dekker's Avatar

Claudio Dekker

@claudiodekker.me.bsky.social

Artisan at @laravelphp ❯ Open-source enthusiast ❯ GPG 08FD B44B 6D63 2021 5D1E E8C1 3025 FFE2 33CC C24B

594 Followers  |  124 Following  |  16 Posts  |  Joined: 27.04.2023  |  1.6048

Latest posts by claudiodekker.me on Bluesky

Yep, agreed!

22.12.2024 08:17 — 👍 1    🔁 0    💬 0    📌 0

Of course, these are just the fundamentals, and with Laravel, there's way more you can do to multiply your power level, such as the scheduling of periodic tasks (e.g. statistics calculations/updates) that you can store/keep warm in the cache, but the opportunities are endless! 👍

21.12.2024 08:37 — 👍 3    🔁 0    💬 0    📌 0

Now, technically there is one other benefit to queueing; Imagine spills your coffee mid-prep. ☕

- ✅ With a queue: They’ve got your order ticket and just start over.
- ❌ Without a queue: You awkwardly re-explain your triple-shot, half-decaf, oat milk latte.

21.12.2024 08:37 — 👍 1    🔁 0    💬 1    📌 0

For example, imagine you're ordering a coffee at a busy cafe:

- ✅ With queues, you'd get a buzzer and can sit down and relax until your coffee is ready
- ❌ Without queues, you're awkwardly standing at the counter until it's ready

In both cases, the barista' work just as hard

21.12.2024 08:37 — 👍 0    🔁 0    💬 1    📌 0

In most cases, I'd recommend #2 even if you need a response right now.

Why? It's simple; For the most part, "right now" is a concept that mostly applies to humans, less so to computers.

While "queueing" sounds slow and negative (nobody likes queues), they're definitely not.

21.12.2024 08:37 — 👍 0    🔁 0    💬 1    📌 0

You might ask; but what about things that need a response _right now_? And to that I'd say you have two approaches:

1. Lie about it succeeding (e.g. "an email has been sent")
2. Add a "processing" state, and use polling/websockets to get an update the second something's done.

21.12.2024 08:37 — 👍 0    🔁 0    💬 1    📌 0

Examples of things you'd queue:

- ✅ Sending an email
- ✅ Calling a third-party API to send/fetch data
- ✅ Resizing an uploaded image
- ✅ Processing a payment or order
- ✅ Handling an incoming webhook

21.12.2024 08:37 — 👍 1    🔁 0    💬 1    📌 0

My advice to any web-developer; Treat your incoming requests like hot potatoes🥔🔥

Validate the input, store it in the database, dispatch a queue job if needed, and let the user know everything's great _immediately_.

Processing any logic is the queue worker's problem 😏

21.12.2024 08:37 — 👍 7    🔁 0    💬 1    📌 0

Yeah, I think the PHP 8.0 Attributes are a syntaxical crime against developers.

It's like that one ex I regret but can't seem to escape.

21.11.2024 13:22 — 👍 1    🔁 0    💬 1    📌 0

PHP 8.4 was just released ✨

✅ Property hooks - pure magic!
✅ Parentheses-free `new MyClass()->method()` -finally!
⚠️ Asymmetric `public private(set)` - a feature and a vibe
❌ `[\#Deprecated]` - Ironic. Should've `@Deprecated` it's own syntax instead

But hey, 2.5/4, not bad!

21.11.2024 12:52 — 👍 4    🔁 0    💬 1    📌 0

Phew, at least it ain’t me this time

21.10.2023 15:40 — 👍 0    🔁 0    💬 0    📌 0

Of course! 👋

14.10.2023 11:32 — 👍 3    🔁 0    💬 0    📌 0
Post image

I've just released version v1.4.0 of my Word Generator package. ✨

- ✅ You can now generate more complex words (uses multiple adjectives)
- ✅ It now ships with 3x the amount of adjectives & nouns by default!

github.com/claudiodekke...

12.10.2023 15:08 — 👍 4    🔁 1    💬 0    📌 0

Sous vide is the best

02.10.2023 07:33 — 👍 1    🔁 0    💬 0    📌 0
Post image

Ok Laravel folks, it's time to increase your bcrypt rounds because 10 is no longer considered secure enough.
securinglaravel.com/p/security-t...
#PHP #Laravel

01.10.2023 21:23 — 👍 8    🔁 5    💬 0    📌 0
Preview
A new PHP JIT implementation based on IR JIT framework by dstogov · Pull Request #12079 · php/php-... This PR provides a new JIT implementation based on IR - Lightweight JIT Compilation Framework. Despite of the PHP 8.* JIT approach, that generates native code directly from PHP byte-code, this impl...

👀 github.com/php/php-src/...

15.09.2023 07:20 — 👍 2    🔁 0    💬 0    📌 0

document.write(
"<?php echo 'Hello World!'; ?>"
);

27.04.2023 21:32 — 👍 3    🔁 0    💬 1    📌 0

@claudiodekker.me is following 20 prominent accounts