Luca Mago retweeted
PHP tip.
`match(true)` turns a messy if/elseif chain into one expression.
Each arm is a condition, and the first one that's true wins.
You can even put several conditions on one arm, separated by commas.
Luca Mago retweeted
All those Fable 5.2 posts about one-shotting in-browser shooters are absolutely wild
Luca Mago retweeted
I wanted to test Fable 5.2's quality with one-shot prompts without human feedback.
Everything in this game is from scratch: models, sounds, textures. ~$550 at API pricing, ~2.7M output and 445M input tokens, heavily cached. Took 8 hours!
Play it here: claude.ai/artifact/BGY1SztrA…
Luca Mago retweeted
This is actually INSANE.
Fable 5.2 just created this in one shot, and I did it live on stream.
I gave Claude one prompt.
It wrote code that builds the entire room in Blender: the desk, the MacBook, the light, even Clawd.
The laptop screen is a web page Claude built to look like the Claude app, played on the laptop inside the 3D scene.
Then it animated everything itself: 13 camera shots, every single key press, Clawd jumping around, and the sun going from golden hour to night to sunrise.
It rented 10 GPUs on RunPod and rendered the whole thing in 4K in 52 minutes. Total cost: $5.75.
It graded it, added the titles, and made the music and sound effects with ElevenLabs.
(More info below)
Luca Mago retweeted
Laravel tip.
`empty()` has two traps: `empty('0')` is true and `empty(' ')` is false.
Laravel's `blank()` gets both right: "0" is a real value, and a string of only spaces is blank.
Its opposite is `filled()`.
Luca Mago retweeted
If you feel you don't have enough time in the day...
Open your phone settings.
And check your average daily usage.
THERE'S your time.
Luca Mago retweeted
after 48 hours, using the most productive stack in the wolrd: php, @laravel, @phpstorm & @getsome_air, we are proud to introduce: dev-null.sh
social network for developers; sign-in with @github, done!
Luca Mago retweeted
Isn't it shocking how tolerant we are of iOS's lackluster artificial intelligence, especially Siri, when AI is advancing at light speed everywhere else?
Might be the first time since iPhone 1 that I feel stuck in an ecosystem that isn't meeting my needs—let alone exceeding them.
Luca Mago retweeted
Hey Laravel Developers 👩💻,
🚀 In my recent tweet, we discovered cool methods like loadSum, loadMin, loadMax, and loadAvg available on a model to get aggregate values from a relation.
But guess what? Laravel makes it even simpler! You can eagerly load these aggregates while fetching a collection of models from the database using the with***() function.
Let's check it out with an example fetching aggregate values from the orders table, where the User model has a has-many relationship with the Order model.
#laravel #php
Luca Mago retweeted
Laravel Tip
Do you want to test email contents in your app but unable/unwilling to set up something like Mailgun?
Just use the .env parameter MAIL_DRIVER=log and all the emails will be saved into storage/logs/laravel.log file, instead of being sent.
Luca Mago retweeted
Does anybody make music like this anymore? I popped it in today and forgot that every dang song is astronomically good.
Luca Mago retweeted
one of the best ways for programmers to get unstuck is to work on something else and come back later
Luca Mago retweeted
This video is controversial so that and it’s physics will be explored 🧵
As I see it the potential energy of the nails convert to kinetic energy so it transfers energy all through the box the entropy of the system is increased 1/🧵
Luca Mago retweeted
The worst question in the office that kills productivity for hours.
"Got a minute?"
Luca Mago retweeted
restarting a game campaign because I haven’t played so long I forgot the story and controls… games need a “recap+tutorial” for boomer parents
Luca Mago retweeted
ah yes, gemini
Readers added context they thought people might want to know
Bard cannot generate images yet. This post is fake.
Bard does well with the prompt to create a text description of the question.
g.co/bard/share/ba9…
Luca Mago retweeted
In 1960, David Latimer planted a spiderwort sprout inside of a large glass jar, added a quarter pint of water, and then sealed it shut.
He opened the bottle for the first time only 12 years later, in 1972, to add some water and then sealed it for good.
The self-contained ecosystem flourished for more than 60 years as a perfectly balanced garden and self-sufficient ecosystem.
The bacteria in the compost ate the dead plants and broke down the oxygen released, turning it into carbon dioxide, essentially forming a microcosm of Earth.

























