
Metaprogramming Elixir
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Cover
- Table of Contents
- Acknowledgements
- Introduction
- Metaprogramming-An Essential Feature
- How to Read This Book
- Running the Code Exercises
- Online Resources
- 1. The Language of Macros
- The World Is Your Playground
- Macro Rules
- The Abstract Syntax Tree-Demystified
- Macros: The Building Blocks of Elixir
- Code Injection and the Caller's Context
- Further Exploration
- 2. Extending Elixir with Metaprogramming
- Custom Language Constructs
- Smarter Testing with Macros
- Extending Modules
- Using Module Attributes for Code Generation
- Compile-Time Hooks
- Further Exploration
- 3. Advanced Compile-Time Code Generation
- Generating Functions from External Data
- MIME-Type Conversion in Ten Lines of Code
- Building an Internationalization Library
- Code Generation from Remote APIs
- Further Exploration
- 4. How to Test Macros
- Setting Up Your Test Suite
- Deciding What to Test
- Integration Testing
- Unit Tests
- Test Simple and Test Fast
- Further Exploration
- 5. Creating an HTML Domain-Specific Language
- Getting Domain Specific
- Start by Defining the Minimum Viable API
- Support the Entire HTML Spec with Macros
- Enhance Your API with HTML Attribute Support
- Generate Less Code by Walking the AST
- To DSL or Not to DSL?
- Further Exploration
- 6. With Great Power Comes Great Responsibility (and Fun!)
- When and Where to Use Macros
- Avoiding Common Pitfalls
- Bending the Rules
- Build the Future
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.