Hey! If you want to learn to deploy your Laravel application on Kubernetes, I've got you covered: View Course

Hey, there!

I'm a programmer from Brazil sharing thoughts and experiments.

These are my latest articles.

Infinite Scrolling with Inertia.js

September 18th, 2020 — Infinite Scrolling with Inertia.js can be tricky. In this article, I'll show you how I ended up implementing it as well as another attempt I made.

Premature optimization is the root of all evil...

August 23rd, 2020 — Performance is tricky. When we want to make applications faster, we need to take a look at it from a broad perspective (a full-stack view, if you will). Sometimes making code 10% faster really means making the response time 299.6ms instead of 300ms. And don't blindly take advice. Benchmark and profile your applications instead.

On Elo Rating Systems

August 7th, 2020 — Elo Rating Systems can be used when you have any kind of "match" between two players (or teams). If you have that kind of system at play, your first "naive" implementation might be a simpler scoring system like: winner gets 3 points; tie game each one gets 1 point; losses get nothing. That's very simplistic and doesn't work very well.

Reddit's "hotness" algorithm

August 7th, 2020 — Reddit's "hotness" algorithm can be used to create more "relevant" ways to consume the data in your application. We can adapt it to our needs, depending on what our data looks like.

The Secret Life of Programs (a book review?)

July 4th, 2020 — I wanted to write about this book because it really got me thinking about my experience and my relationship with computers. I feel like this is going to be a bit personal, but I'm not entirely sure how this will end up.

Introduction to Inertia.JS

April 24th, 2020 — Modern SPA frameworks can add drawbacks to a team’s workflows. You suddenly need to build an API, deal with API versioning, handle CORS and all that, while maintaining different applications at the same time. Inertia.JS allows building modern SPAs without most of those drawbacks, easily integrating with our backend framework of choice.

True hybrid mobile applications with Turbolinks

March 28th, 2020 — In this video, I want to cover one aspect of using Turbolinks that I think it's not shared enough. Turbolinks has mobile bridges that makes it really easy to wrap your existing web applications in a real native shell application, having some real mobile navigation and behaviors on top of your web content.

On Serverless and Monoliths

February 12th, 2020 — I've just read the article "The Serverless Supremacy: The fall of the Monolith" and wanted to share my thoughts here real quick.

On OOP and Active Record

February 7th, 2020 — I'm a huge fan o Sandi Metz, I have watched some of her recorded talks multiple times, the most recent one was called "Polly want a message" and it's also my favorite so far (if this is a reference to a Nirvana song, I like it even more). In that talk, she goes on refactoring some code into smaller objects and giving them appropriate names. Eventually, she gets into this a very nice design with no branching in code (conditionals), which leads to easily testable code. I like it a lot.

Top lessons for startups

January 29th, 2020 — We've worked for a lot of different companies. What is the top lesson we can share with startups that we've learned from our experience?