product engineer – code / ship / repeat

Florianópolis, Brazil
Flow has a concept of "opaque types", pretty similar to what the branded types pattern in TypeScript aims to solve Really recommend reading this article: codemix.com/opaque-types-in-… Will record a video tomorrow about it 😄
594
Type predicates are super useful for narrowing down types based on conditionals Especially on cases where you receive unknown raw values and have to validate those - branded types can also come into play here However, it's possible to easily introduce bugs, cause the TS compiler won't notice in case the runtime logic doesn't match the predicate👇
3
908
"The person who gets 1 shot needs everything to go right. The person who gets 1000 shots is going to score at some point"
6
607
Here's a quick explanation of how to use tuples and conditional types to define dynamic arguments in TypeScript 🎥
1
3
27
2,754
Going to schedule it for tomorrow, cause I've just finished editing it! But here's a snippet:
Will try to ship a new video style today, using animated code snippets 🎥
1
5
1,328
Will try to ship a new video style today, using animated code snippets 🎥
1
1,766
Chill day, learning some Ruby and also trying to build a small app with Rails 7.0
5
9
2,458
3 ways to use Mapped Types in TypeScript 👇 - From union to object - From object to union - Key remapping via "as"
1
33
1,829
Getting back to Ruby code after getting used to Elixir, trying to write a method and then ending up with "do" at the end 🥲
4
524
My teammate and I just ended up fighting with Ruby for like 1 hour in order to manage a fix related to bundle install with Sorbet 😵‍💫
5
717
What's "as const" in TypeScript and what are the use cases for that? Let's take a quick look into it 👇
2
1
40
4,043
Going to continue posting updates regarding the Elixir SDK 👀 I'm essentially taking it as a side project, setting the goal of releasing an official version of it Last week I raised a lot of PRs, mainly refactoring the main modules, and now I just need to polish those and ship 🚢
3
727
🔥🔥
💠 Big personal news! I'm super happy to announce that I've joined the incredible @WorkOS design team. I'm so excited for what we'll create together 🩵 LFG!
1
2
1,013
3 type helpers that you're probably already using on a daily basis: Parameters, ReturnType, and Awaited ✨ Extremely useful when having to derive types from other functions, without having to hard code the values, also helpful for accessing types from external dependencies
4
4
82
6,135
Still struggling on how to pronounce "parameters" properly tho, the Brazilian accent won't go away for this one 😄
4
549