David Lun πŸ’» (@mc0de) header
David Lun πŸ’» (@mc0de) profile picture

βš™οΈ Laravel Artisan | 🐍 Pythonista

Vilnius, Lithuania
Joined September 2009
Photo by David Lun πŸ’» (@mc0de)Photo by David Lun πŸ’» (@mc0de)Photo by David Lun πŸ’» (@mc0de)Photo by David Lun πŸ’» (@mc0de)Photo by David Lun πŸ’» (@mc0de)Photo by David Lun πŸ’» (@mc0de)Photo by David Lun πŸ’» (@mc0de)Photo by David Lun πŸ’» (@mc0de)Photo by David Lun πŸ’» (@mc0de)Photo by David Lun πŸ’» (@mc0de)
When configuring queues the next value should be higher to avoid cuncurrency: ☒️ atomic lock < πŸƒ backoff (if fails) < ⏲️ timeout < πŸ” retry_after (if crashes)
Replying to @taylorotwell
If you have a job that times out after 5 minutes but a queue that retries after 60s, you end up with jobs that get processed twice. I'm not sure there's any way around it, but I've always wished for one attribute (job timeout) instead of two (time + retry after)
2
256
Dev debates be like: β€œmy editor is better than yours” Meanwhile… we’re all just choosing a different window to not write code in.
1
42
David Lun πŸ’» retweeted
Last quarter I rolled out Microsoft Copilot to 4,000 employees. $30 per seat per month. $1.4 million annually. I called it "digital transformation." The board loved that phrase. They approved it in eleven minutes. No one asked what it would actually do. Including me. I told everyone it would "10x productivity." That's not a real number. But it sounds like one. HR asked how we'd measure the 10x. I said we'd "leverage analytics dashboards." They stopped asking. Three months later I checked the usage reports. 47 people had opened it. 12 had used it more than once. One of them was me. I used it to summarize an email I could have read in 30 seconds. It took 45 seconds. Plus the time it took to fix the hallucinations. But I called it a "pilot success." Success means the pilot didn't visibly fail. The CFO asked about ROI. I showed him a graph. The graph went up and to the right. It measured "AI enablement." I made that metric up. He nodded approvingly. We're "AI-enabled" now. I don't know what that means. But it's in our investor deck. A senior developer asked why we didn't use Claude or ChatGPT. I said we needed "enterprise-grade security." He asked what that meant. I said "compliance." He asked which compliance. I said "all of them." He looked skeptical. I scheduled him for a "career development conversation." He stopped asking questions. Microsoft sent a case study team. They wanted to feature us as a success story. I told them we "saved 40,000 hours." I calculated that number by multiplying employees by a number I made up. They didn't verify it. They never do. Now we're on Microsoft's website. "Global enterprise achieves 40,000 hours of productivity gains with Copilot." The CEO shared it on LinkedIn. He got 3,000 likes. He's never used Copilot. None of the executives have. We have an exemption. "Strategic focus requires minimal digital distraction." I wrote that policy. The licenses renew next month. I'm requesting an expansion. 5,000 more seats. We haven't used the first 4,000. But this time we'll "drive adoption." Adoption means mandatory training. Training means a 45-minute webinar no one watches. But completion will be tracked. Completion is a metric. Metrics go in dashboards. Dashboards go in board presentations. Board presentations get me promoted. I'll be SVP by Q3. I still don't know what Copilot does. But I know what it's for. It's for showing we're "investing in AI." Investment means spending. Spending means commitment. Commitment means we're serious about the future. The future is whatever I say it is. As long as the graph goes up and to the right.
5,078
25,143
5,923
169,450
26,381,573
David Lun πŸ’» retweeted
Laravel Tip πŸš€ Easily share secure download links without exposing your S3 bucket with the temporaryUrl method. Check how we can generate a temporary URL valid for 10 minutes in a clean and easy way in Laravel with the example TemporaryLink action. πŸ”₯
2
13
132
7,019
how you accomplish something is as important as the accomplishment itself
1
49
Also here's helper to have more control over randomly selected values davidlun.com/p/choices-larav…
Laravel tip: `fake()->optional()` with PROBABILITY for NULLABLE fields. See example? The code of migration/factory and the result DB table. 0.3 means 30% chance of field with NOT NULL value.
66
LLMS are just word calculators!
45
I'm a developer, not GPT operator
1
1
2
165
got extorted, thank you @dbrand
2
119
Happy to meet, participate and share experience together with my true roots @DailyLaravel
After 6 years @PovilasKorop and @DailyLaravel team is organizing a local meetup! First topic is about @filamentphp by Povilas himself!
2
171
David Lun πŸ’» retweeted
After 6 years @PovilasKorop and @DailyLaravel team is organizing a local meetup! First topic is about @filamentphp by Povilas himself!
6
7
2
118
5,873
Agreed, do like it is your last one. So better make it count.
There's a saying: "How you do anything is how you do everything". So, adopt useful coding habits even when it's no big deal in some cases. Even if you have 20 records, select only the fields you need. Prevent yourself from being lazy to type a few words. It's a good habit.
57
You've officially completed the game of life, epic. πŸ‘πŸš€
I'm excited to announce that Laravel has raised a $57M Series A in partnership with Accel. I believe that Laravel is the most productive way to build full-stack web applications, and Laravel Cloud will be the platform for shipping those applications that this community deserves.
1
78
David Lun πŸ’» retweeted
Highlights of what I announced during my @LaraconUS talk yesterday... 🧡
13
96
17
591
87,587
Stop asking to make SaaS course. SaaS is an objective of business and dictated by your payment processor.
45
David Lun πŸ’» retweeted
My condolences to anyone who was relying on Joel. He'll be back in four to six weeks.
About to click the download button after hearing @aarondfrancis gush about this on the recent pod. What can go wrong?
42
3
1
364
32,421
Write long comments into editor, then copy/paste them. Browsers sometimes crash. πŸ₯‚
1
1
4
2,150
Install PHP extensions with ease when using Laravel Herd. davidlun.com/p/install-missi… Let me know how are you solving these problems in the comments
78
In a response "Don't use localhost, use 127.0.01": I'd argue that you should use Unix domain sockets instead of TCP. How no one noticed that? πŸ«³πŸŽ€πŸ›βš‘
1
80
Wasn't that the purpose of Filament?
1
80
How Laravel Forge makes deployments? Here's the answer: davidlun.com/p/laravel-forge…
1
101