Programming

Programming

1474 bookmarks
Custom sorting
Advanced Dependency Injection in Elixir with Rewire | AppSignal Blog
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.
·blog.appsignal.com·
Advanced Dependency Injection in Elixir with Rewire | AppSignal Blog
Early Returns in Elixir – Clivern
Early Returns in Elixir – Clivern
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!
·clivern.com·
Early Returns in Elixir – Clivern
Managing Key/Value Pairs in PostgreSQL
Managing Key/Value Pairs in PostgreSQL
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).
·justatheory.com·
Managing Key/Value Pairs in PostgreSQL
Improving upserts in Ecto and PostgreSQL | katafrakt's garden
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.
·katafrakt.me·
Improving upserts in Ecto and PostgreSQL | katafrakt's garden
Simple OBS Client in Elixir
Simple OBS Client in Elixir
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.
·erick.navarro.io·
Simple OBS Client in Elixir
wikidata-taxonomy
wikidata-taxonomy
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.
·npmjs.com·
wikidata-taxonomy
Picture This: Open Source AI for Image Description
Picture This: Open Source AI for Image Description
Nolan builds a proof of concept for a screen-reader plugin that uses Ollama and PocketBase to get a large language model to describe images.
·fly.io·
Picture This: Open Source AI for Image Description
Boilerplate Busting in Functional Languages
Boilerplate Busting in Functional Languages
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.
·lambdaland.org·
Boilerplate Busting in Functional Languages
Building Elixir Applications: mix with nix — part 1
Building Elixir Applications: mix with nix — part 1
A lot of our services are written in Elixir, and one of the major issues we had with deploying Elixir services were the CI build times…
·medium.com·
Building Elixir Applications: mix with nix — part 1
Ansible is a Lisp
Ansible is a Lisp
More specifically, Ansible is homoiconic and has syntactic macros
·astrid.tech·
Ansible is a Lisp
Box Is a Unique Type
Box Is a Unique Type
About better aliasing semantics for `Box`
·blog.nilstrieb.dev·
Box Is a Unique Type
Naming your Daemons - Erlang Solutions
Naming your Daemons - Erlang Solutions
Discover the power of naming your programming daemons and how to effectively label your Elixir processes for clearer code.
·erlang-solutions.com·
Naming your Daemons - Erlang Solutions
Programming Ada: Packages And Command Line Applications
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…
·hackaday.com·
Programming Ada: Packages And Command Line Applications
Exploring the Enigma of Database Vacuuming
Exploring the Enigma of Database Vacuuming
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.
·dineshgowda.com·
Exploring the Enigma of Database Vacuuming