Advanced Dependency Injection in Elixir with Rewire | AppSignal Blog
Dependency injection can prove useful in Elixir. In this second part of a two-part series, we'll look at some basic concepts, core principles, and types of dependency injection.
Common Anti-Patterns in Elixir Projects and How to Avoid Them | Curiosum
Learn practical strategies to enhance your code quality, safeguard your applications, and ensure your Elixir projects are efficient, secure, and maintainable.
Early returns is often employed to exit a function as soon as an exceptional or negative condition is met. It won't take much time when learning elixir to figure out that early returns are missing!
Let’s say that you’ve been following the latest research in key/value data storage and are interested in managing such data in a PostgreSQL database. You want to have functions to store and retrieve pairs, but there is no natural way to represent pairs in SQL. Many languages have hashes or or data dictionaries to fulfill this role, and you can pass them to functional interfaces. SQL’s got nothin’. In PostgreSQL, have two options: use nested arrays (simple, fast) or use a custom composite data type (sugary, legible).
Improving upserts in Ecto and PostgreSQL | katafrakt's garden
With a little bit of a secret database sauce we managed to get the information about what our upsert did without resorting to tricks like comparing automatic timestamps.
Let's write a simple module to control OBS using websockets.
OBS already have a websocket server which can accept many command to control its features. We're going to use that websocket server to make some actions like:
Change scene Apply source filters Many other things Basic configuration First we need to install a websocket client, fresh is a easy to use client that works on top on mint.
Let's add the following code to our mix.
command line tool to extract taxonomies from Wikidata. Latest version: 0.6.7, last published: 5 years ago. Start using wikidata-taxonomy in your project by running `npm i wikidata-taxonomy`. There are no other projects in the npm registry using wikidata-taxonomy.
This is the story of how I solved a problem (ugly, cumbersome boilerplate code) that I ran into while writing a program in a functional language (Elixir). Functional programming languages often pride themselves on expressiveness and elegance; but occasionally they are not amenable to the most obvious solutions to the problems we wish to solve. In this case, the simplest solution to my problem would have been to have a global mutable variable.
What I mean when I say that machine learning in Elixir is production-ready
My ElixirConf EU 2024 keynote "Ship it! A roadmap for putting Nx into production" is up on youtube. I'm hoping it will help folks gain the confidence to go o...
Programming Ada: Packages And Command Line Applications
In the previous installment in this series we looked at how to set up an Ada development environment, and how to compile and run a simple Ada application. Building upon this foundation, we will now…
Before we discuss what VACUUM does and its implications, we need to understand how data is actually stored on disk. What happens when a tuple is inserted, updated, or deleted? Understanding this will help us understand what VACUUM does, why it’s needed, and its implications.