HomeCoursesMetaprogramming in Elixir
Updated 27 Aug
AI-powered learning
Save

Metaprogramming in Elixir

Gain insights into metaprogramming in Elixir. Delve into macros and discover how to elevate your coding skills, creating powerful libraries with concise, efficient code.

51 lessons
1 project
9h 10min
Created by The Pragmatic Programmers
Metaprogramming in Elixir
What's included
  • 51 lessons across 7 modules
  • 6 quizzes with instant feedback
  • 1 project in preconfigured environments
  • AI Tutor on every lesson
Who wrote it
The Pragmatic Programmers
We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.

Andy Hunt and Dave Thomas founded The Pragmatic Programmers, LLC., with a simple goal: to improve the lives of professional developers. We create timely, practical books and other learning resources on classic and cutting-edge topics to help you learn and practice your craft and accelerate your career. We are not a giant, faceless, greed-soaked corporation. We’re a small group of experienced professionals committed to helping make corporate software development—and your life—easier.

Join 3.1 million developers at

What You'll Learn

  • Understand the basic concepts of metaprogramming in Elixir
  • Learn about macros and the abstract syntax tree
  • Create an HTML Domain-Specific Language
  • Learn to properly test meta-programming based code

Learning Roadmap

51 Lessons1 Project6 Quizzes

1.

Introduction

Introduction

Sharpen your skills in Elixir metaprogramming, focusing on AST, macros, and custom feature development.

2.

The Language of Macros

The Language of Macros

Discover the logic behind Elixir macros, AST manipulation, and code injection techniques.

3.

Extending Elixir with Metaprogramming

Extending Elixir with Metaprogramming

9 Lessons

9 Lessons

Break apart key concepts of Elixir's macros, testing, module extension, and code generation.

4.

Advanced Compile-Time Code Generation

Advanced Compile-Time Code Generation

10 Lessons

10 Lessons

Apply your skills to advanced code generation, MIME-type conversion, and internationalization in Elixir.

5.

How to Test Macros

How to Test Macros

6 Lessons

6 Lessons

Map out the steps for setting up, focusing, integrating, unit testing, and simplifying macro tests.

6.

Create an HTML Domain-Specific Language

Create an HTML Domain-Specific Language

10 Lessons

10 Lessons

Tackle building an HTML DSL in Elixir using macros for dynamic and efficient HTML generation.

7.

With Great Power Comes Great Responsibility (and Fun!)

With Great Power Comes Great Responsibility (and Fun!)

6 Lessons

6 Lessons

Bend the rules for powerful applications, avoiding pitfalls, and build Elixir's future.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Fahim Ul HaqMetaprogramming in ElixirFounder & CEO
About this course
WHY I WROTE THIS COURSE
Get introduced to the concept of metaprogramming. Learn how to level up your programming skills by discovering the full potential of the macro system in Elixir. Understand the ins and outs of metaprogramming at a fundamental level and write incredible libraries by doing more with less code.
ABOUT THE AUTHOR

The Pragmatic Programmers

We create timely, practical books and learning resources on classic and cutting-edge topics to help you practice your craft and accelerate your career.

Learn more about The

Trusted by 3.1 million developers working at companies

These are high-quality courses. Trust me the price is worth it for the content quality. Educative came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks

A

Anthony Walker

@_webarchitect_

Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!

E

Evan Dunbar

ML Engineer

You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it.

S

Software Developer

Carlos Matias La Borde

I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site

S

Souvik Kundu

Front-end Developer

Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content.

V

Vinay Krishnaiah

Software Developer

FOR TEAMS

Interested in this course for your business or team?

Unlock this course (and 1,000+ more) for your entire org with DevPath

Built for 10x Developers

No Passive Learning
Learn by building with project-based lessons and in-browser code editor
Learn by DoingLearn by Doing
Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go
Learn by DoingLearn by Doing
Future-proof Your Career
Get hands-on with in-demand skills
Learn by DoingLearn by Doing
AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"
Learn by DoingLearn by Doing
Learn by DoingLearn by Doing
MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies
Learn by DoingLearn by Doing

Free Resources