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:






















