Luca Mago (@lucamago) header
Luca Mago (@lucamago) profile picture

There's #hell in hello, #good in goodbye, #lie in believe, #over in lover, #end in friend, #ex in next & #if in life

Joined June 2008
Photo by Luca Mago (@lucamago)Photo by Luca Mago (@lucamago)Photo by Luca Mago (@lucamago)Photo by Luca Mago (@lucamago)Photo by Luca Mago (@lucamago)
Every app needs mcp.
8
6
3
40
2,677
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.
6
6
34
2,116
Luca Mago retweeted
All those Fable 5.2 posts about one-shotting in-browser shooters are absolutely wild
1
10
2,155
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…
860
1,173
854
15,076
4,504,272
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)
271
389
159
7,084
924,728
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()`.
2
2
34
2,363
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.
2
5
1
37
2,093
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!
80
81
30
442
86,262
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.
11
1
2
18
6,709
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
2
29
202
14,829
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.
3
14
1
112
7,102
Does anybody make music like this anymore? I popped it in today and forgot that every dang song is astronomically good.
19
1
1
89
20,640
one of the best ways for programmers to get unstuck is to work on something else and come back later
25
38
8
410
39,076
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/🧵
371
1,640
226
17,559
11,456,392
The worst question in the office that kills productivity for hours. "Got a minute?"
6
5
45
5,017
Luca Mago retweeted
7,193
34,309
28,019
185,391
32,571,046
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
6
1
1
47
6,839
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…
47
85
16
2,057
295,263
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.
449
4,080
301
38,459
10,485,620