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

By Simon St. Laurent, J. David Eisenberg

Elixir is a wonderful language so one can know about practical programming, and with this hands-on creation, you'll become aware of simply how robust and enjoyable Elixir will be. This language combines the strong practical programming of Erlang with a syntax just like Ruby, and comprises strong beneficial properties for metaprogramming.

This publication indicates you the way to put in writing easy Elixir courses by means of instructing one ability at a time. when you choose up development matching, process-oriented programming, and different techniques, you'll comprehend why Elixir makes it more uncomplicated to construct concurrent and resilient courses that scale up and down comfortably.

Show description

Read or Download Introducing Elixir PDF

Best programming books

OpenGL ES 2.0 Programming Guide

OpenGL ES 2. zero is the industry’s prime software program interface and portraits library for rendering subtle 3D photographs on hand-held and embedded units. With OpenGL ES 2. zero, the complete programmability of shaders is now to be had on small and transportable devices—including cellphones, PDAs, consoles, home equipment, and autos.

Flow-Based Programming: A New Approach To Application Development (2nd Edition)

Written by means of a pioneer within the box, it is a thorough advisor to the price- and time-saving benefits of Flow-Based Programming. It explains the theoretical underpinnings and alertness of this programming strategy in useful phrases. Readers are proven tips on how to follow this programming in a couple of parts and the way to prevent universal pitfalls.

Objective-C Quick Syntax Reference

The Objective-C fast Syntax Reference is a condensed code and syntax connection with the preferred Objective-C programming language, that is the center language at the back of the APIs present in the Apple iOS and Mac OS SDKs. It offers the fundamental Objective-C syntax in a well-organized layout that may be used as a convenient reference.

Object-Oriented Programming in C++ (4th Edition)

Object-Oriented Programming in C++ starts with the fundamental rules of the C++ programming language and systematically introduces more and more complicated subject matters whereas illustrating the OOP technique. whereas the constitution of this ebook is the same to that of the former variation, every one bankruptcy displays the most recent ANSI C++ common and the examples were completely revised to mirror present practices and criteria.

Extra info for Introducing Elixir

Example text

When you tell Elixir to compile a file, it converts your text into something it can process without having to reinterpret all the text, tremendously im‐ proving efficiency when you run the code. That “something it can process,” in Elixir’s case, is an Erlang BEAM file. It contains code that the BEAM processor, a key piece of the Erlang Runtime System (ERTS), can run. BEAM is Bogdan’s Erlang Abstract Machine, a virtual machine that interprets optimized BEAM code. This may sound slightly less efficient than the traditional compilation to machine code that runs directly on the computer, but it resembles other virtual ma‐ chines.

Info You can also do this within code in a module. If you’re referring to code in the same module, you can leave off the module name preface. In this case, that would mean leaving off Drop. and just using &(fall_velocity/1). Splitting Code Across Modules The Drop module currently mixes two different kinds of functions. The fall_veloci ty function fits the name of the module, Drop, very well, providing a calculation based on the height from which an object falls. The mps_to_mph and mps_to_kph functions, however, aren’t about dropping.

Using tuples opens more possibilities. Other code could package different things into tuples—more argu‐ ments, different atoms, even functions created with fn(). Passing a single tuple rather than a pile of arguments gives Elixir much of its flexibility, especially when you get to passing messages between different processes. Processing Tuples There are many ways to process tuples, not just the simple pattern matching shown in Example 3-7. If you receive the tuple as a single variable, you can do many different things with it.

Download PDF sample

Rated 4.20 of 5 – based on 10 votes