Felipe Gonçalves (@fellipesg) header
Felipe Gonçalves (@fellipesg) profile picture

Tech lead remoto para uma empresa dos EUA 🇺🇸 | 12+ anos de Laravel/PHP | Construindo em público: RevisaLog e SaaS para clínicas | Londrina-PR

Londrina
Joined October 2009
Photo by Felipe Gonçalves (@fellipesg)Photo by Felipe Gonçalves (@fellipesg)Photo by Felipe Gonçalves (@fellipesg)Photo by Felipe Gonçalves (@fellipesg)Photo by Felipe Gonçalves (@fellipesg)Photo by Felipe Gonçalves (@fellipesg)Photo by Felipe Gonçalves (@fellipesg)Photo by Felipe Gonçalves (@fellipesg)Photo by Felipe Gonçalves (@fellipesg)Photo by Felipe Gonçalves (@fellipesg)
With payment webhooks, I always save the raw payload as soon as the signature checks out. Then return 200, process it in a queue, and skip event IDs you've already seen. When something breaks, you just replay it from your own table instead of hoping the provider still lets you resend (Stripe gives you 30 days, some give you nothing, lol).
31
Dica pra quem usa IA em código legado: antes de pedir a refatoração, peça testes que descrevem o que o código faz hoje. Inclusive os bugs. Aí sim refatora. Revisar teste é bem mais fácil que revisar refatoração (e é o jeito de saber se a IA melhorou o código ou só mudou o comportamento).
2
134
I taught programming for years. If I taught it again, I'd spend less time on recursion and more on one idea: the network can fail halfway through. Payments taught me that one. The charge goes through, the response never comes back, and the user hits "pay" again (that's the whole reason idempotency keys exist).
1
177
I've done CodeIgniter-to-Laravel migrations where both apps ran side by side for months (new code takes over a piece, old code for that piece gets retired). The hard part wasn't routing requests between them. It was agreeing which app writes to each table at any given moment. Reads are easy. Two apps writing the same table is where the weird bugs live.
1
85
Bonus these days: retiring the old code as you go also helps coding agents. Less code in the repo means less context spent just reading it, and in my experience sharper, more accurate analysis (plus no agent copying a pattern from the old app, lol). The approach has a name, btw: Strangler Fig, coined by Martin Fowler.
28
I asked Gemini the 15 questions Brazilian drivers actually ask about my app's category, each in a fresh chat. 14 answers: my app wasn't mentioned. Asked by name, it described a different product (a fleet management system, very confidently, lol). What I shipped since: - one plain sentence on the homepage saying exactly what the app is - that same sentence in the structured data (JSON-LD) and in a FAQ - a comparison page and blog posts answering the questions people really ask Too early to call it a win. But SEO used to mean ranking on page 1. Now you also need to be in the answer.
3
70
Todo mundo discutindo reescrever em Go ou Rust. Nos sistemas PHP que eu otimizei, o maior ganho quase nunca veio da linguagem. Veio de tirar query de dentro de loop, criar o índice que faltava e cachear o que não muda. Linguagem mais rápida ajuda, mas só depois que o banco deixa de ser o gargalo (e na maioria dos apps web que eu vi, ele é).
43
28
6
539
31,370
Bug clássico de fila no Laravel: você despacha um job dentro de uma transação, o worker pega antes do commit e não acha o registro (não é culpa do Laravel, acontece com qualquer fila). A correção é curta: ->afterCommit() no dispatch ou ShouldQueueAfterCommit no job. Achar o bug é que leva uma tarde.
1
152
Perguntei ao Gemini sobre o RevisaLog, pelo nome. Ele respondeu (com toda confiança): um sistema pra frotas e oficinas, com alerta por WhatsApp!!! O RevisaLog é um app de iPhone pro dono do carro guardar o histórico, kkkk. Quando a IA não acha fonte sobre você, ela inventa uma versão plausível (tive que trabalhar um tanto nesse essas últimas semanas)
88
Felipe Gonçalves retweeted
Mais umnpra conta. Bora dar aquela ajuda pra crescer
Ta aparecendo meu selo aí galera? 🤣
3
1
11
297
Felipe Gonçalves retweeted
Omg omg omg 100+ followed 😎 Again, if you’re startup founders or part of tech, let’s connect!
31
1
22
845
Hot take: the best AI coding setup isn't the smartest model. It's a codebase with clear conventions, so the model has fewer ways to get creative (creative is the last thing I want in a migration file).
2
5
213
Eu acho que é fake mas vou tentar 🤷🏻‍♂️ VERIFICADO #verificado
8
12
767
Felipe Gonçalves retweeted
+110 seguidores de ontem pra hoje, top galera! Bora #verificados
37
4
1
54
1,518
My first dev job was at a marketing agency, building websites for small businesses. SEO was part of the job. 12 years later, I'm building RevisaLog and learning a new version of it: getting found by people who search with AI, not just Google (yes, they do that (my wife included))! Never stop learning (some lessons just come back with a new name, lol)
2
4
128
Today, on top of my regular work, I was reviewing dozens of PRs and fixing Sentry issues. With that many Claude Code sessions open, its to-do list didn't show me where things stood(it's the worst part, lol) So I built this small artifact: status, progress, and who on support to ping when it's done. (this is just an example with dummy data. The real board has(had) way more red, lol)
4
1
97
I taught programming for years and I keep wondering how AI will disrupt the way it's taught. Will theory-heavy CS programs, like the one I graduated from(like a million+ credit hours, lol), drop some of the theory to focus on AI itself? Or will theory matter even more now?
49
Payment reconciliation taught me more about software than any framework. The money matches or it doesn't. There's no "mostly works" in a ledger.
71
Lovable for client demos and landing pages. Code I can read and revert for anything with user data. The right AI tool depends on who gets paged at 3am.
66