Announcing Delta for Elixir - Knock Down Silos by Slab
We are excited to open-source our Elixir implementation of Delta – an expressive format to describe contents and changes that powers our real-time collaboration.
Uncover Elixir's hidden gem - the 'implicit try'. Enhance error handling and code readability. Dive into this elegant feature's benefits in our exploration.
I first started looking into Elixir upon the recommendation of a friend of mine about the wonders of the language. My first foray into the language was over a year ago as I dipped my toe into the Phoenix Framework to see how it compared to something like ReactJS, the
An Opinionated Way of Organizing GraphQL APIs using Absinthe and Phoenix
REST has been the predominant architectural choice for API development on the web. GraphQL being the new kid in town has been continually gaining traction over the last few years as an alternative way to build APIs. GraphQL is - "A query language for...
A picture's worth a thousand words. It can be confusing to explain to a LiveView newbie just what the lifecycle of a LiveView process looks like. I made a flow chart to help visualize how an HTTP Request becomes a stateful LiveView
How can I measure the similarity between two images?
I would like to compare a screenshot of one application (could be a Web page) with a previously taken screenshot to determine whether the application is displaying itself correctly. I don't want an...
Given a set of r random values from a large set (of size N), I have been using the formula 1-exp(-r**2/(2N)) to approximate the probability of a collision. It assumes that r is much smaller than N. The formula suggests that if you have hundreds of millions of random 64-bit numbers, you will start getting … Continue reading How accurate is the birthday’s paradox formula?
Building Self-referential Associations in Elixir/Phoenix
Self-referential association is used to associate a model with itself. It's pretty common to have this kind of association to build relationships in today's social media applications - Twitter, Mastodon, Facebook, etc. However, the association model ...