Metaprogramming Elixir: Write Less Code, Get More Done (and Have Fun!) (Paperback)
Chris McCord
- 出版商: Pragmatic Bookshelf
- 出版日期: 2015-03-10
- 定價: $595
- 售價: 9.5 折 $565
- 語言: 英文
- 頁數: 128
- 裝訂: Paperback
- ISBN: 1680500414
- ISBN-13: 9781680500417
-
相關分類:
Functional-programming
立即出貨 (庫存=1)
買這商品的人也買了...
-
$800$632 -
$580$452 -
$450$356 -
$780$616 -
$650$507 -
$1,520$1,444 -
$550$468 -
$380$300 -
$620$527 -
$450$356 -
$780$616 -
$360$284 -
$580$522 -
$380$323 -
$199$179 -
$620$484 -
$590$502 -
$1,140$1,083 -
$1,568$1,485 -
$580$452 -
$580$458 -
$380$323 -
$450$383 -
$505數據驅動游戲運營
-
$520$406
相關主題
商品描述
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.
Metaprogramming is one of Elixir's greatest features. Maybe you've played with the basics or written a few macros. Now you want to take it to the next level. This book is a guided series of metaprogramming tutorials that take you step by step to metaprogramming mastery. You'll extend Elixir with powerful features and write faster, more maintainable programs in ways unmatched by other languages.
You'll start with the basics of Elixir's metaprogramming system and find out how macros interact with Elixir's abstract format. Then you'll extend Elixir with your own first-class features, write a testing framework, and discover how Elixir treats source code as building blocks, rather than rote lines of instructions. You'll continue your journey by using advanced code generation to create essential libraries in strikingly few lines of code. Finally, you'll create domain-specific languages and learn when and where to apply your skills effectively.
When you're done, you will have mastered metaprogramming, gained insights into Elixir's internals, and have the confidence to leverage macros to their full potential in your own projects.
商品描述(中文翻譯)
使用Elixir宏编写代码的书籍。宏使元编程成为可能,并定义了语言本身。在本书中,您将学习如何使用宏以快速、可维护的方式扩展语言,并以您从未想过的方式共享功能。您将发现如何使用自己的一流功能扩展Elixir,优化性能并创建特定领域的语言。
元编程是Elixir最重要的特性之一。也许您已经了解了基础知识或编写了一些宏。现在您想将其提升到更高的水平。本书是一系列引导式元编程教程,逐步带您掌握元编程。您将使用强大的功能扩展Elixir,并以其他语言无法匹敌的方式编写更快、更易维护的程序。
您将从Elixir元编程系统的基础知识开始,并了解宏如何与Elixir的抽象格式交互。然后,您将使用自己的一流功能扩展Elixir,编写一个测试框架,并了解Elixir如何将源代码视为构建块,而不是机械的指令行。您将继续使用高级代码生成,在极少的代码行中创建必要的库。最后,您将创建特定领域的语言,并学习何时何地有效地应用您的技能。
完成后,您将掌握元编程,深入了解Elixir的内部工作原理,并有信心在自己的项目中充分利用宏的潜力。