Prime Target: Generating Prime Numbers in Elixir
A few ways to generate prime numbers in Elixir, from a naive check to a recursive sieve, a lazy infinite stream, and a parallel version with Task.async_strea...
A few ways to generate prime numbers in Elixir, from a naive check to a recursive sieve, a lazy infinite stream, and a parallel version with Task.async_strea...
A short tour of five dry-rb gems I keep coming back to: validation, types, structs, configuration, and composable business logic. Small, focused libraries th...
Service objects keep business logic out of fat controllers and models. A handful of conventions (one entry point, a consistent return value, a simple constru...
In this article, I engage in a conversation with ChatGPT to explore the possibility of extraterrestrial life and the pressing need to preserve our planet. We...
You don’t need a database table to get Rails-style validations. With ActiveModel you can validate plain Ruby objects (a contact form, a search form, an API p...