Leonardo Poletto (@leopoletto) header
Leonardo Poletto (@leopoletto) profile picture

Senior Software Engineer · Backend, Platforms & Data Systems · Open to full-time roles and selected consulting engagements

Sao Paulo, Brazil
Joined August 2009
Photo by Leonardo Poletto (@leopoletto)Photo by Leonardo Poletto (@leopoletto)Photo by Leonardo Poletto (@leopoletto)Photo by Leonardo Poletto (@leopoletto)Photo by Leonardo Poletto (@leopoletto)Photo by Leonardo Poletto (@leopoletto)Photo by Leonardo Poletto (@leopoletto)Photo by Leonardo Poletto (@leopoletto)Photo by Leonardo Poletto (@leopoletto)Photo by Leonardo Poletto (@leopoletto)
Why are there some people that, even though they have only two or three comments on their post, they don't even bother to reply if the person commenting has not so many followers? It feels the same as being a speaker and someone raises their hand is ignored. Engagement.
1
16
Since social media became a means to make money, whether by selling a service or product, or being paid by engagement, it is no longer safe to trust people’s opinion.
21
Gemini is funny. You tell him you are building an agent and share one of the prompts so it can analyze it and tell you where it can be improved. Every single time it executes the prompt, whether it is for coding or image generation.
37
My LaraJobs analysis (leopoletto.dev/blog/larajobs…) got featured in Artisan Weekly Edition 88 alongside Filament, PHPStan, and other great Laravel work this week. Thanks for covering it, @artisan_weekly
🗞️ Artisan Weekly Edition 88 Less than 7 days until Laravel Live UK! The Jump24 team is heading down Wednesday afternoon - if you're around, let us know. PHPVerse 2026 wrapped up this week with brilliant speakers and talks. Here are your top 10 Laravel links: 🥇 The State of PHP 2026 The PHP Foundation and JetBrains are running their first annual State of PHP census to map the global PHP ecosystem. Spare 15 minutes to participate and help chart the worldwide elePHPant population, with a chance to win one of five EUR 500 vouchers. By @jetbrains surveys.jetbrains.com/s3/sta… 🥈 API Tips and Tricks from My Book @JustSteveKing shares key insights from his new book 'API Artisan: A guide to building APIs in Laravel', covering essential patterns for building Laravel APIs that developers actually want to use. Learn about measuring the right metrics, designing contracts before code, and understanding what truly constitutes a breaking change. By @JustSteveKing juststeveking.com/articles/a… 🥉 Eloquent Query Classes Pattern An in-depth exploration of the Eloquent Query Classes pattern in Laravel from @wendell_adriel, explaining how to organise complex database queries into dedicated classes to avoid duplication and improve maintainability as your application grows. By @wendell_adriel wendelladriel.com/blog/eloqu… 4️⃣ Audit your Filament app's security with Blueprint Filament Blueprint v1.2 introduces a new Security Audit skill that analyses your application's use of Filament and generates a remediation plan for security issues. The tool checks for common misconfigurations including access control, file uploads, XSS vulnerabilities, and query scoping, providing actionable fixes linked directly to the relevant documentation. By @danjharrin filamentphp.com/insights/dan… 5️⃣ PHPStan rules to measure cognitive complexity of your classes and methods @VotrubaT has released a PHPStan extension that measures cognitive complexity in your PHP code, helping you identify difficult-to-understand functions and class dependency trees. It provides configurable rules to keep your code maintainable by flagging overly complex classes and methods. By @VotrubaT github.com/TomasVotruba/cogn… 6️⃣ Laravel Collections Bug Caused by Arrow Functions @mmramadan496 explores a subtle Laravel Collections bug where arrow functions caused early iteration termination due to implicit return values. Switching to anonymous functions resolved the issue by returning null instead of false. By @mmramadan496 mmramadan.com/collections/la… 7️⃣ 3 Years of Laravel Jobs: What 699 LaraJobs Emails Actually Say About the Market A comprehensive data analysis of 699 Laravel job postings from 2023-2026 by @leopoletto, examining market trends through automated email processing with GPT-5 mini. Includes open-source pipeline code, salary insights, and detailed breakdowns of remote work patterns, engagement types, and skill requirements in the Laravel ecosystem. By @leopoletto leopoletto.dev/blog/larajobs… 8️⃣ Building a Ralph Loop With Laravel's AI SDK @jordankdalton demonstrates how to implement a Ralph loop pattern inside a Laravel application using the AI SDK, with durable database state instead of filesystem files. Learn how to build an agent system that processes 1,400 products with fresh context each iteration, custom tools, and verifiable completion conditions. By @jordankdalton jordandalton.com/articles/bu… 9️⃣ We had some interesting developments in the pursuit for Generics in PHP this week @ProjektGopher shares exciting updates about the ongoing discussion around implementing Generics in PHP from the internals mailing list. He covers the latest developments in his weekly PHP Internals recap video. By @ProjektGopher nitter.cf/ProjektGopher/status/2… 🔟 My AI Writes Perfect* PHP | Ashley Hindle | PHPverse 2026 In this talk from PHPverse 2026, @ashleyhindle shows his real day-to-day setup live, explains what he's learned on this journey, and gives you a checklist you can use to get your own projects writing PHP you don't have to fight. By @ashleyhindle youtube.com/watch?v=957MaDK4… --- Follow us: Daniel Newns: @DanielNewns Artisan Weekly: @artisan_weekly
2
52
This is how LinkedIn tries to detect extensions on my browser by iterating a list of 4279 predefined extensions targeting fetch(`chrome-extension://${id}/${file}`). I wrote a detailed article about it.
40
Why is there a footer on infinite scrolling websites? Is that a reward for those who stick until the end?
25
How come Agents cannot generate interfaces with valid contrast without having to be reminded to do so? Still, they mess up font-size or other basic aspects that are core to accessibility. Naive question: Is that the reason why skills exist?
26
Static site generators could significantly improve performance by subsetting fonts to include only the characters that are used. Merriweather Regular TTF: 1.02 MiB WOFF2: 368.57 KiB WOFF2 (Latin Subset): 98.54 KiB Jigsaw, afterBuild only the characters I needed: 20 KiB
43
I am working on an Open Graph Validator, and I know there are many, but none, at least the ones I have tested, have nailed down all the nuances of working with multiple platforms. Best-ranked validators on Google searches fail on simple principles like CORS by linking the image preview. The challenge is simulating the fetcher bot.
42
Am I using it wrong, or does AI vanish autocompletion from the Cursor? It tries to guess paths that the editor usually gets right, and 90% of the time gets them wrong.
41
I used to complain a lot about @laravelforge not allowing subdomains, which still bothers me, but the staging subdomain is a killer feature. I may no longer renew stgenv.site domain, which I used alongside custom NGINX files and a deployment script as a workaround.
3
644
The difference a font family makes in a reveal password feature
2
69
I lost an interview after 85% of it went great—until a simple “store a post” question turned into a gotcha about over-engineering. Here’s the lesson I learned. leopoletto.dev/blog/the-gotc…
55
Replying to @marcelpociot
@marcelpociot, Herd breaks the whole environment if the nvm script is not injected at the end of the .zshrc file? I suspect the issue is the function nvm_strip_path, line 831 path = substr($0, length(NVM_DIR) + 1).
1
54
By breaking the environment, I mean that, after that, most functions become inaccessible due to the path being overridden. If I drop a custom script or install any other application that does it, it causes the system to malfunction.
1
40