I craft software, mostly on the web. I love best practices, patterns, and functional programming.
Sep 6, 2022 • 8 tweets • 3 min read
#Ruby's Enumerator.produce is a really cool method! It can generate an infinite series where each item is used to calculate the next.
✨ For example the series of even numbers:
Interestingly though, Enumerator.produce cannot be used to generate more complex series like squares because the input from each step is the output of the previous step
Sep 24, 2021 • 18 tweets • 4 min read
Working in small chunks is one of the powerful dev skills I have!
Among other things it:
👀 Makes it easier to get code review (smaller PRs)
🏃♂️ Keeps forward momentum
🗑️ Prevents code from going stale
↩️ Makes code easier to revert
a thread on ways to achieve this 🧵
1. Before even getting into code, try and break your features into smaller chunks. What's the smallest incremental amount of value you can ship to customers?
@germsvel has a great article digging into ways we can do this