Groxio Blog
all posts / courses / training / grox.io
← Back to all posts

Posts tagged with Structs

2 posts

  • Move the Whole Family in One Car: Structs as Containers
    How Structs Keep Related Elixir State Moving Together
    Use Elixir structs as containers for fixed domain state. Learn how a tetromino struct keeps name, location, rotation, and color together while reducers update one field at a time.
    Elixir Functional Programming Structs Data Structures Reducers
  • A Struct Is Just a Map With Rules
    How Structs Give Elixir Maps a Fixed Shape
    Structs are maps with rules: fixed fields, a hidden __struct__ key, and clearer boundaries around domain data. Learn when to choose a map and when to reach for a struct in Elixir.
    Elixir Functional Programming Structs Data Structures Protocols

Stay in the Loop

Get weekly insights on Elixir, system design, and building resilient teams.

🎉 Welcome aboard!
Something went wrong. Please try again.

We respect your privacy. No spam, unsubscribe anytime.

© 2025 | Groxio Blog