Introducing Elixir: Getting Started in Functional Programming, 2nd Edition
- Length: 250 pages
- Edition: 2
- Language: English
- Publisher: O'Reilly Media
- Publication Date: 2017-01-21
- ISBN-10: 1491956771
- ISBN-13: 9781491956779
- Sales Rank: #641422 (See Top 100 Books)
Smooth, powerful, and small, Elixir is an excellent language for learning functional programming, and with this hands-on introduction, you’ll discover just how powerful Elixir can be. Authors Simon St. Laurent and J. David Eisenberg show you how Elixir combines the robust functional programming of Erlang with an approach that looks more like Ruby, and includes powerful macro features for metaprogramming.
Updated to cover Elixir 1.3, the second edition of this practical book helps you write simple Elixir programs by teaching one skill at a time. Once you pick up pattern matching, process-oriented programming, and other concepts, you’ll understand why Elixir makes it easier to build concurrent and resilient programs that scale up and down with ease.
- Get comfortable with IEx, Elixir’s command line interface
- Learn Elixir’s basic structures by working with numbers
- Discover atoms, pattern matching, and guards: the foundations of your program structure
- Delve into the heart of Elixir processing with recursion, strings, lists, and higher-order functions
- Create Elixir processes and send messages among them
- Store and manipulate structured data with Erlang Term Storage and the Mnesia database
- Build resilient applications with the Open Telecom Platform
Table of Contents
Chapter 1. Getting Comfortable
Chapter 2. Functions and Modules
Chapter 3. Atoms, Tuples, and Pattern Matching
Chapter 4. Logic and Recursion
Chapter 5. Communicating with Humans
Chapter 6. Lists
Chapter 7. Name-Value Pairs
Chapter 8. Higher-Order Functions and List Comprehensions
Chapter 9. Playing with Processes
Chapter 10. Exceptions, Errors, and Debugging
Chapter 11. Static Analysis, Typespecs, and Testing
Chapter 12. Storing Structured Data
Chapter 13. Getting Started with OTP
Chapter 14. Using Macros to Extend Elixir
Chapter 15. Using Phoenix
Appendix A. An Elixir Parts Catalog
Appendix B. Generating Documentation with ExDoc