JEG2

JEG2

Author of Designing Elixir Systems with OTP

In this third article of my questions series, I’m coming for your dependencies! I do my best to add a fifth cost to Martin Fowler’s costs of YAGNI. You can also find out what my favorite programming book is.

Showing Posts 1 to 2

Asd

Asd

  1
  |> Stream.iterate(fn n -> n * 1.01 end)
  |> Stream.drop(1)
  |> Stream.take(70)
  |> Enum.at(-1)

Just a simpler way to do this 1.01 ** 70


And for the more useful comment, I can say that counting dependencies as lines in mix.lock is a very naive way to count dependencies. Let’s start that your Elixir app depends on OTP runtime, which depends on features provided by operating systems, which depend on drivers, which depend on hardware, which depends on electricity and specific temperatures and supplementary hardware, etc.

So the discussion about dependencies as the burden you-as-the-engineer have to carry is wrong, because we can support only a very little subset of software we use, and software is very little part of what products depend on. You don’t choose operating system by looking at the millions lines of code and thinking “Hmm, if a bug occurs here, I think I can find and fix it”.

I tried to come up with question which would reflect this idea, but I couldn’t, because not all ideas fit into questions which fit into article titles. But I can advice to do these things

  1. Check if the maintainer of the dependency is going to fix your problems. If it’s open source, do they actively maintain it?
  2. Do maintainers provide workarounds or fixes for their own dependencies?
  3. Can you pay someone to fix your problems with this dependency when they occur? Maybe bug-bounty or some external consulting specializing in these kinds of problems?
  4. Can you fix the problems yourself?
  5. Can you replace the dependency?

It sounds similar to the original question, but the key difference here is that most of the time you don’t have to carry or think about replacing anything

JEG2

JEG2 OP

Author of Designing Elixir Systems with OTP

Supporting it doesn’t just mean fixing bugs inside of it. Maybe it’s just keeping a dependency updated for compatibility or security reasons. If the library is prone to breaking changes, that could be a lot of work.

— All posts loaded —

Where Next? Top

Trending in Blog Posts Top

bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
pckrishnadas88
Hey everyone! :waving_hand: I’ve published Part 7 of the Building Distributed Systems in Elixir series, where we build core distributed ...
New
zorn
An educational side project in Elixir, Phoenix, and Tauri. I share what I learned while wiring Automerge into the BEAM, including how I s...
New
nathanl
Process labels are useful for visualization and debugging. Here’s why you should use them.
New
abreujp
New article: Elixir Project Structure — From mix new to a Growing Codebase I’ve published a new article in my Elixir learning series on d...
New
andreasronge
What happens if you design tools for LLMs instead of letting LLM use human tools ? Wrote a blog on why and what that enables. As I see ...
New
mudasobwa
Somewhere, right now, a senior engineer is on the verge of a nervous breakdown because his company will not let him switch from Claude to...
New

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews