My Account Log in

1 option

Metaprogramming Elixir : write less code, get more done, (and have fun!) / Chris McCord.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
McCord, Chris (Computer programmer), author.
Contributor:
Carter, Jacquelyn, editor.
Series:
Pragmatic programmers.
Pragmatic exPress.
Pragmatic exPress
Pragmatic Programmers
Language:
English
Subjects (All):
Elixir (Computer program language).
Computer programming.
Physical Description:
1 online resource (112 pages) : illustrations.
Edition:
1st edition
Place of Publication:
Dallas, Texas ; Raleigh, North Carolina : The Pragmatic Bookself, 2015.
System Details:
text file
Summary:
Write code that writes code with Elixir macros. Macros make metaprogramming possible and define the language itself. In this book, you'll learn how to use macros to extend the language with fast, maintainable code and share functionality in ways you never thought possible. You'll discover how to extend Elixir with your own first-class features, optimize performance, and create domain-specific languages.
Contents:
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
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
4. How to Test Macros
Setting Up Your Test Suite
Deciding What to Test
Integration Testing
Unit Tests
Test Simple and Test Fast
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?
6. With Great Power Comes Great Responsibility (and Fun!)
When and Where to Use Macros
Avoiding Common Pitfalls
Bending the Rules
Build the Future.
Notes:
"Version: P1.0 (February 2015)."
Description based on print version record.
ISBN:
9781680500622
1680500627
9781680503982
1680503987
9781680503999
1680503995
9781680500417
1680500414
OCLC:
905245100

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Library Catalog Using Articles+ Library Account