{"id":28505103,"url":"https://github.com/curiosum-dev/elixir-macros-metaprogramming","last_synced_at":"2026-02-13T19:32:49.956Z","repository":{"id":74768953,"uuid":"276309573","full_name":"curiosum-dev/elixir-macros-metaprogramming","owner":"curiosum-dev","description":"A companion repository to our article at Curiosum: https://curiosum.dev/blog/elixir-trickery-using-macros-metaprogramming?utm_source=github\u0026utm_medium=social","archived":false,"fork":false,"pushed_at":"2020-07-01T07:57:17.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-24T10:56:28.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curiosum-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-01T07:36:02.000Z","updated_at":"2020-07-01T07:57:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"d21ab55c-b7ba-4fc6-8b82-04811c834e1c","html_url":"https://github.com/curiosum-dev/elixir-macros-metaprogramming","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/curiosum-dev/elixir-macros-metaprogramming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curiosum-dev%2Felixir-macros-metaprogramming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curiosum-dev%2Felixir-macros-metaprogramming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curiosum-dev%2Felixir-macros-metaprogramming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curiosum-dev%2Felixir-macros-metaprogramming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curiosum-dev","download_url":"https://codeload.github.com/curiosum-dev/elixir-macros-metaprogramming/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curiosum-dev%2Felixir-macros-metaprogramming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29415628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T19:06:38.919Z","updated_at":"2026-02-13T19:32:49.949Z","avatar_url":"https://github.com/curiosum-dev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a companion repository for the [\"Elixir Trickery: Using Macros and Metaprogramming Without Superpowers\"](https://curiosum.dev/blog/elixir-trickery-using-macros-metaprogramming?utm_source=github\u0026amp;utm_medium=social) article published at [curiosum.dev](https://curiosum.dev).\n\n## Outline\n\n1. \u003ca href=\"https://curiosum.dev/blog/elixir-trickery-using-macros-metaprogramming?utm_source=github\u0026utm_medium=social#axioms\" target=\"_blank\"\u003eThe axioms to keep in mind\u003c/a\u003e: The truth about the nature of code, macros and functions in Elixir that you need to realize before reasoning about metaprogramming.\n2. \u003ca href=\"https://curiosum.dev/blog/elixir-trickery-using-macros-metaprogramming?utm_source=github\u0026utm_medium=social#meta\" target=\"_blank\"\u003eMetaprogramming at its core: code that generates code\u003c/a\u003e: The core difference between how Elixir understands metaprogramming and how it works in many popular languages.\n3. \u003ca href=\"https://curiosum.dev/blog/elixir-trickery-using-macros-metaprogramming?utm_source=github\u0026utm_medium=social#ast\" target=\"_blank\"\u003eAST: Tree representation of code\u003c/a\u003e: The internal representation of code in Elixir and how it can be manipulated and accessed.\n4. \u003ca href=\"https://curiosum.dev/blog/elixir-trickery-using-macros-metaprogramming?utm_source=github\u0026utm_medium=social#macros-ast\" target=\"_blank\"\u003eMacros as functions manipulating ASTs\u003c/a\u003e: On the nature of Elixir macros which are little more than a tool to transform abstract syntax trees, with some syntactic sugar to make it feel more natural.\n5. \u003ca href=\"https://curiosum.dev/blog/elixir-trickery-using-macros-metaprogramming?utm_source=github\u0026utm_medium=social#quote\" target=\"_blank\"\u003eThe way to understand `quote` and `unquote`\u003c/a\u003e: Explaining how quoting and unquoting to code is like interpolation to strings.\n6. \u003ca href=\"https://curiosum.dev/blog/elixir-trickery-using-macros-metaprogramming?utm_source=github\u0026utm_medium=social#wrapping-up\"\u003eWrapping up: Which approach to use when creating macros?\u003c/a\u003e: Why and when to use either macro creation strategy described in the article.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuriosum-dev%2Felixir-macros-metaprogramming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuriosum-dev%2Felixir-macros-metaprogramming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuriosum-dev%2Felixir-macros-metaprogramming/lists"}