Elixir Applications
In Elixir, an application is a component implementing some specific functionality. It is a unit that can be run independently, thus started and stopped. It can also be reused by other applications, much like a library.
When you cr...
I've been working on writing PEG expressions with Rosie Pattern Language to help people to search Elixir code bases for certain things. Very preliminary but I did want to share what I've got so far....
Introducing Drops.Relation: High-Level Relation Abstraction on top of Ecto
I’m excited to announce the latest addition to the Elixir Drops suite of libraries: Drops.Relation. This new library provides a high-level API for defining database relations with automatic schema inference and composable queries, simplifying database interactions when developing applications in Elixir.
Drops.Relation is based on 10 years of my work on the Ruby Object Mapper project and brings the most powerful features of ROM to Elixir.
What is Drops.Relation?
Drops.Relation bridges the gap between Ecto and application-level data handling and management. It automatically introspects your database tables, generates Ecto schemas, and provides a convenient query API that feels like working directly with Ecto.Repo while adding powerful composition features.
Sideko Blog - Building an SDK Generator: Maintaining Custom Files
Building an SDK Generator: Maintaining Custom Files | This articles explains our SDK generation solution that utilizes a macro! in the Rust programming language to maintain custom files added between code generations with zero configuration.
Def Over Lambda Part 1 - Factory Pattern and Dependency Injection
I recently read part of a pretty awesome book called Let Over Lambda by Doug Hoyte. Full of nice examples, wisdom and funnily opinionated remarks. I was also working on a personal project involving a couple of libraries where I suddenly saw how I could use one of the first patterns explained in the book.
Let Over Lambda In lisp and lisp like languages you can rely on lexical binding to manage scope in a way that is for today's standards (at least to me) intuitive.
Tony Hoare introduced Null references in ALGOL W back in 1965 "simply because it was so easy to implement", says Mr. Hoare. He talks about that decision considering it "my billion-dollar mistake".
Writing Load Balancer From Scratch In 250 Line of Code
Hey, everyone. It's another weekend, and I was exploring what to build. So I decided to build a simple yet completely functional load balancer. Let's discuss it in this post.
A Visual Tour of Phoenix's Updated 'magic link' Authentication Code Generator
A visual tour of how `phx.gen.auth` looks to the user, what the core schemas/contexts look like, and I'll sprinkle in some personal commentary as we go.
How to test for leap years (until year 102499) in the proleptic Gregorian calendar with just three 32-bit instructions, with detailed explanation of the bit-level tricks.