
Introducing Elixir
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Copyright
- Table of Contents
- Preface
- Who This Book Is For
- Who This Book Is Not For
- What This Book Will Do For You
- How This Book Works
- Other Resources
- Elixir Will Change You
- Conventions Used in This Book
- Using Code Examples
- Help This Book Grow
- Please Use It For Good
- O'Reilly Safari
- How to Contact Us
- Acknowledgments
- Chapter 1. Getting Comfortable
- Installation
- Installing Erlang
- Installing Elixir
- Firing It Up
- First Steps
- Moving Through Text and History
- Moving Through Files
- Doing Something
- Calling Functions
- Numbers in Elixir
- Working with Variables in the Shell
- Chapter 2. Functions and Modules
- Fun with fn
- And the &
- Defining Modules
- From Module to Free-Floating Function
- Splitting Code Across Modules
- Combining Functions with the Pipe Operator
- Importing Functions
- Default Values for Arguments
- Documenting Code
- Documenting Functions
- Documenting Modules
- Chapter 3. Atoms, Tuples, and Pattern Matching
- Atoms
- Pattern Matching with Atoms
- Atomic Booleans
- Guards
- Underscoring That You Don't Care
- Adding Structure: Tuples
- Pattern Matching with Tuples
- Processing Tuples
- Chapter 4. Logic and Recursion
- Logic Inside of Functions
- Evaluating Cases
- Adjusting to Conditions
- if, or else
- Variable Assignment in case and if Constructs
- The Gentlest Side Effect: IO.puts
- Simple Recursion
- Counting Down
- Counting Up
- Recursing with Return Values
- Chapter 5. Communicating with Humans
- Strings
- Multiline Strings
- Unicode
- Character Lists
- String Sigils
- Asking Users for Information
- Gathering Characters
- Reading Lines of Text
- Chapter 6. Lists
- List Basics
- Splitting Lists into Heads and Tails
- Processing List Content
- Creating Lists with Heads and Tails
- Mixing Lists and Tuples
- Building a List of Lists
- Chapter 7. Name-Value Pairs
- Keyword Lists
- Lists of Tuples with Multiple Keys
- Hash Dictionaries
- From Lists to Maps
- Creating Maps
- Updating Maps
- Reading Maps
- From Maps to Structs
- Setting Up Structs
- Creating and Reading Structs
- Pattern Matching Against Structs
- Using Structs in Functions
- Adding Behavior to Structs
- Adding to Existing Protocols
- Chapter 8. Higher-Order Functions and List Comprehensions
- Simple Higher-Order Functions
- Creating New Lists with Higher-Order Functions
- Reporting on a List
- Running List Values Through a Function
- Filtering List Values
- Beyond List Comprehensions
- Testing Lists
- Splitting Lists
- Folding Lists
- Chapter 9. Playing with Processes
- The Shell Is a Process
- Spawning Processes from Modules
- Lightweight Processes
- Registering a Process
- When Processes Break
- Processes Talking Amongst Themselves
- Watching Your Processes
- Watching Messages Among Processes
- Breaking Things and Linking Processes
- Chapter 10. Exceptions, Errors, and Debugging
- Flavors of Errors
- Rescuing Code from Runtime Errors as They Happen
- Logging Progress and Failure
- Tracing Messages
- Watching Function Calls
- Chapter 11. Static Analysis, Typespecs, and Testing
- Static Analysis
- Typespecs
- Writing Unit Tests
- Setting Up Tests
- Embedding Tests in Documentation
- Chapter 12. Storing Structured Data
- Records: Structured Data Before Structs
- Setting Up Records
- Creating and Reading Records
- Using Records in Functions
- Storing Data in Erlang Term Storage
- Creating and Populating a Table
- Simple Queries
- Overwriting Values
- ETS Tables and Processes
- Next Steps
- Storing Records in Mnesia
- Starting Up Mnesia
- Creating Tables
- Reading Data
- Chapter 13. Getting Started with OTP
- Creating Services with GenServer
- A Simple Supervisor
- Packaging an Application with Mix
- Chapter 14. Using Macros to Extend Elixir
- Functions Versus Macros
- A Simple Macro
- Creating New Logic
- Creating Functions Programatically
- When (Not) to Use Macros
- Chapter 15. Using Phoenix
- Skeleton Installation
- Structuring a Basic Phoenix Application
- Presenting a Page
- Routing
- A Simple Controller
- A Simple View
- Calculating
- Sharing the Gospel of Elixir
- Appendix A. An Elixir Parts Catalog
- Shell Commands
- Reserved Words
- Operators
- Guard Components
- Common Functions
- Datatypes for Documentation and Analysis
- Appendix B. Generating Documentation with ExDoc
- Using ExDoc with Mix
- Index
- About the Authors
- Colophon
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.