By Simon St. Laurent, J. David Eisenberg

ISBN-10: 1449369995

ISBN-13: 9781449369996

Elixir is a wonderful language with the intention to find out about useful programming, and with this hands-on creation, you'll observe simply how robust and enjoyable Elixir will be. This language combines the powerful sensible programming of Erlang with a syntax just like Ruby, and comprises strong gains for metaprogramming.

This ebook exhibits you ways to put in writing basic Elixir courses through instructing one ability at a time. when you decide up development matching, process-oriented programming, and different strategies, you'll comprehend why Elixir makes it more straightforward to construct concurrent and resilient courses that scale up and down comfortably.

Show description

Read Online or Download Introducing Elixir PDF

Similar programming books

Download PDF by Craig S. Lent: Learning to Program with MATLAB: Building GUI Tools

Author Craig Lent’s 1st version of studying to application with MATLAB: development GUI instruments teaches the center ideas of laptop programming, equivalent to arrays, loops, functionality, uncomplicated information constructions, and so on. , utilizing MATLAB. The textual content has a spotlight at the basics of programming and builds as much as an emphasis on GUI instruments, protecting text-based courses first, then courses that produce pictures. This creates a visible expression of the underlying arithmetic of an issue or layout. short and to-the-point, the textual content comprises fabric that may be switched over with supplementary reference fabric designed to attract clients to keep their copy.

Download e-book for iPad: PHP Web Services: APIs for the Modern Web (2nd Edition) by Lorna Jane Mitchell

Even if you're sharing facts among inner platforms or development an API in order that clients can entry their info, this useful consultant has every little thing you want to construct APIs with personal home page. writer Lorna Jane Mitchell presents plenty of hands-on code samples, real-world examples, and suggestion in response to her huge adventure to lead you thru the process—from the underlying thought to equipment for making your carrier powerful.

On Conceptual Modelling: Perspectives from Artificial - download pdf or read online

The becoming call for for structures of ever-increasing complexity and precision has influenced the necessity for better point thoughts, instruments, and strategies in each region of machine technology. a few of these components, particularly synthetic Intelligence, Databases, and Programming Lan­ guages, are trying to satisfy this call for through defining a brand new, extra summary point of procedure description.

Extra resources for Introducing Elixir

Sample text

As you’ll see in Chapter 9, though, even infinite loops can be useful. info Counting Down The simplest model of recursion with a natural limit is a countdown, like the one used for rockets. You start with a large number and count down to zero. When you reach zero, you’re done (and the rocket takes off, if there is one). To implement this in Elixir, you’ll pass a starting number to an Elixir function. If the number is greater than zero, it will then announce the number and call itself with the number minus one as the argument.

Info offers much more sophisticated possibilities, however, allowing you to match on argu‐ ments as well as on function names. 71 meters per second squared. Example 3-1, which you can find in ch03/ex1-atoms, shows one way to build code that supports this. Example 3-1. 71 * distance) end end It looks like the fall_velocity function gets defined three times here, and it certainly provides three processing paths for the same function. However, because Elixir will choose which function to call by pattern matching, they aren’t duplicate definitions.

Although underneath these are atoms, :true and :false, they are common enough that you don’t need to use the colons. Elixir will return these values if you ask it to compare something: iex(1)> false iex(2)> true iex(3)> true iex(4)> true iex(5)> true 3<2 3>2 10 == 10 :true == true :false == false Elixir also has special operators that work on these atoms (and on comparisons that resolve to these atoms): iex(1)> true iex(2)> false iex(3)> true iex(4)> false iex(5)> false true and true true and false true or false false or false not true The and and or operators both take two arguments.

Download PDF sample

Introducing Elixir by Simon St. Laurent, J. David Eisenberg


by William
4.2

Rated 4.29 of 5 – based on 48 votes