abreujp

abreujp

I’ve published a new article in my Elixir learning series on dev.to exploring modules - the labeled containers that group related functions and keep code organized.

The article covers:

  • What modules really are and why module names are atoms under the hood
  • Defining modules with defmodule and structuring their functions
  • Public vs private functions with def and defp - and why private functions matter
  • Using module attributes as compile-time constants
  • Documenting modules and functions with @moduledoc and @doc
  • How module names map to files and directories in a project
  • Nested modules, namespacing with dots, Module.split/1, Module.concat/1, and MODULE
  • Building a small in-memory to-do list module from scratch to tie it all together

With complete working examples you can copy into IEx, you’ll learn how modules become the backbone of organizing any Elixir codebase - from small scripts to large applications.
Check it out:

Where Next? Top

Trending in Blog Posts Top

New
davejs
Hi everyone, I’ve been building BetterTyping (https://bettertyping.org) on and off since 2021. It’s a free typing game: practice alone, ...
New
zorn
:pencil: I captured some notes and suggestions from my own job hunt this summer to help others looking for an <span class="hashtag-icon-p...
New
T0ha666
I run AI coding agents on a Docker Swarm cluster, and one afternoon a 40-minute agent run exited 0 and lost 100% of its output. The poll...
New
tomazbracic
A post on how to prepare AWS IoT Core for Provisioning a Nerves gateway on AWS IoT Core as Fleet provisioning with / by Claim. Hope it h...
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...
261 13183 112
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
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
PJUllrich
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
akoutmos
@hugobarauna, Dr. Dimitrios Koutmos (my brother) and I (Alex Koutmos) have been hard at work on writing a book on how you can use Elixir ...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews