Book description
You want to explore functional programming, but are put off by the academic feel (tell me about monads just one more time). You know you need concurrent applications, but also know these are almost impossible to get right. Meet Elixir, a functional, concurrent language built on the rock-solid Erlang VM. Elixir's pragmatic syntax and built-in support for metaprogramming will make you productive and keep you interested for the long haul. This book is the introduction to Elixir for experienced programmers.
Maybe you need something that's closer to Ruby, but with a battle-proven environment that's unrivaled for massive scalability, concurrency, distribution, and fault tolerance. Maybe the time is right for the Next Big Thing. Maybe it's Elixir.
This edition of the book has been updated to cover Elixir 1.2, including the new with
expression, the exrm release manager, and the removal of deprecated types.
Publisher resources
Table of contents
- Foreword
- A Vain Attempt at a Justification
- 1. Take the Red Pill
-
Part I. Conventional Programming
- 2. Pattern Matching
- 3. Immutability
- 4. Elixir Basics
- 5. Anonymous Functions
- 6. Modules and Named Functions
- 7. Lists and Recursion
- 8. Maps, Keyword Lists, Sets, and Structs
- 9. An Aside—What Are Types?
- 10. Processing Collections—Enum and Stream
- 11. Strings and Binaries
- 12. Control Flow
-
13. Organizing a Project
- The Project: Fetch Issues from GitHub
- Task: Use Mix to Create Our New Project
- Transformation: Parse the Command Line
- Step: Write Some Basic Tests
- Transformation: Fetch from GitHub
- Task: Use Libraries
- Transformation: Convert Response
- Transformation: Sort Data
- Transformation: Take First n Items
- Transformation: Format the Table
- Task: Make a Command-Line Executable
- Task: Add Some Logging
- Task: Test the Comments
- Task: Create Project Documentation
- Coding by Transforming Data
- Part II. Concurrent Programming
- Part III. More-Advanced Elixir
- A1. Exceptions: raise and try, catch and throw
- A2. Type Specifications and Type Checking
- Bibliography
Product information
- Title: Programming Elixir 1.2
- Author(s):
- Release date: February 2016
- Publisher(s): Pragmatic Bookshelf
- ISBN: 9781680501667
You might also like
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
Small, Sharp Software Tools
The command-line interface is making a comeback. That's because developers know that all the best features …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …
book
Mastering Elixir
Leverage the power of Elixir programming language to solve practical problems associated with scalability, concurrency, fault …