About This Title

Pages: 130
Published: May 2022
ISBN: 9781680509625
In Print

Skill Level Meter

Programmer Passport: Elixir

by Bruce Tate

Elixir is a functional language that crosses many boundaries. With a syntax borrowing heavily from Ruby, a runtime that is on the Erlang BEAM, a macro system like that in Lisp, and a streaming library like you might find in Haskell, Elixir takes the best features from many environments. Elixir borrows from Erlang’s “Let It Crash” philosophy, and adds significant improvements with structs, first-class hygienic macros, and abstractions such as protocols. Many of these ideas were borrowed from other communities, and they make a big difference in language adoption. This book gives you a quick guided tour through the fascinating world of Elixir!

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $15.00 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal


Explore Elixir with the author of Seven Languages in Seven Weeks. In this fast-paced book—first published with Groxio’s Programmer Passport—you’ll discover how Elixir’s fantastic documentation, clear error messages, and excellent tooling make it approachable and easy to work with. Learn about techniques other books skip, like writing your own Mix task, and discover several blind spots that beginning and intermediate Elixir developers encounter.

Effective Elixir depends on getting the most out of the most common datatypes—explore the most important ones before using them to write modules and different kinds of functions. Learn when to choose tuples, maps, or lists in your programs, and the most effective ways to access lists. Understand the differences between maps and keyword lists. Learn the primitives Elixir uses to start multiple processes and send messages between them. You’ll finish the book by dabbling with the advanced techniques of streams, sigils, and macros.

Find out what Groxio customers already know. The assistance of an experienced guide will help you learn Elixir more quickly than you could without one.

What You Need

You’ll need Elixir version 1.12 or greater.

Resources

Releases:

  • P1.0 2022/05/25

Contents & Extracts

Preface

  • Sweet Tooling
    • Based on Erlang
    • Beyond Erlang
    • Tools
    • Mix Manages Development Tasks
    • IEx: Interactive Elixir
    • Built-in Testing
    • Custom Mix Tasks
    • Sound Dependency Management Fuels Adoption
    • Your Turn
  • Data and Code Organization
    • Atoms, Pattern Matching, and Erlang Access
    • Booleans and Truthy Expressions
    • Numerics Favor Utility over Performance
    • Characters Are Code Points
    • Elixir Deemphasizes Control Structures
    • Your Turn
  • Tuples and Functions excerpt
    • Tuples, Deconstruction, and Pattern Matching
    • Functions and Code Organization
    • Advanced Pattern Matching and Constructors
    • Your Turn
  • Lists and Algorithms
    • Lists
    • Pattern Matching and Lists
    • Recursion over Lists
    • Reduce and Anonymous Functions
    • Implement a Polygon
    • Your Turn
  • Key-Value Data
    • Keyword Dictionaries
    • Maps
    • Map Manipulation
    • Using Maps in Bulk
    • Structs Are Restricted Maps
    • Structs, Maps, and Public APIs
    • Your Turn
  • Processes and Concurrency excerpt
    • Processes, Inboxes, and Pattern Matching
    • Put It All Together in a Message Loop
    • Your Turn
  • Blind Spots
    • Sigils
    • Dates, Times, and Comparisons
    • Binaries and Bit Strings
    • Your Turn
  • Macros
    • Elixir’s AST
    • Unquoting, Quoting, and defmacro
    • Introduce a DSL
    • Your Turn

Author

Bruce A. Tate is a programmer and CEO of Groxio where he is helping to redefine how computer languages are taught and learned. He’s the author of Seven Languages in Seven Weeks and Programming Phoenix, among other titles, and has been involved with Elixir from the very beginning. He’s written more than 10 books.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $15.00 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal

Related Titles:

Skill Level Meter

About This Title

Pages: 130
Published: May 2022
ISBN: 9781680509625
Edition: 1
In Print