![](https://images-na.ssl-images-amazon.com/images/I/51FgGCiigyL._SX395_BO1,204,203,200_.jpg)
By Benjamin Tan Wei Hao
Summary
The Little Elixir & OTP Guidebook will get you began programming purposes with Elixir and OTP. you start with a short evaluate of the Elixir language syntax, besides simply enough practical programming to exploit it successfully. Then, you will dive instantly into OTP and find out how it is helping you construct scalable, fault-tolerant and allotted functions via numerous enjoyable examples.
Purchase of the print publication contains a loose publication in PDF, Kindle, and ePub codecs from Manning Publications.
About the Technology
Elixir is a sublime programming language that mixes the expressiveness of Ruby with the concurrency and fault-tolerance of Erlang. It makes complete use of Erlang's BEAM VM and OTP library, so that you get 20 years' worthy of adulthood and reliability correct out of the gate. Elixir's aid for practical programming makes it ideal for contemporary event-driven applications.
About the Book
The Little Elixir & OTP Guidebook will get you begun writing purposes with Elixir and OTP. you will commence with the instantly cozy Elixir language syntax, in addition to barely enough sensible programming to exploit it successfully. Then, you are going to dive directly into numerous lighthearted examples that educate you to use the awesome performance outfitted into the OTP library.
What's Inside
- Covers Elixir 1.2 and 1.3
- Introduction to practical concurrency with actors
- Experience the outstanding strength of Erlang and OTP
About the Reader
Written for readers happy with a customary programming language like Ruby, Java, or Python. FP event is useful yet now not required.
About the Author
Benjamin Tan Wei Hao is a software program engineer at Pivotal Labs, Singapore. he's additionally an writer, a speaker, and an early adopter of Elixir.
Table of Contents
- Introduction
- A whirlwind journey
- Processes one zero one
- Writing server purposes with GenServer
- Concurrent error-handling and fault tolerance with hyperlinks, displays, and techniques
- Fault tolerance with Supervisors
- Completing the worker-pool program
- Distribution and cargo balancing
- Distribution and fault tolerance
- Dialyzer and sort necessities
- Property-based and concurrency testing
GETTING began WITH ELIXIR AND OTP
FAULT TOLERANCE, SUPERVISION, AND DISTRIBUTION
Read or Download The Little Elixir & OTP Guidebook PDF
Similar web development & design books
Written for builders already utilizing . internet and accustomed to C#, this e-book introduces the XML criteria and the . internet meeting that implements the expertise, explains while it is applicable to exploit each one know-how, and gives examples that illustrate tips to use the assemblies. The final 3rd of the booklet is an API reference that describes each one namespace, its forms, and their individuals.
Endnote Made effortless: Reference administration for theProfessional is meant for healthcare pros (Physicians, Nurses, Managers, and so on. ) and biomedical researchers engaged in writing medical manuscripts. It aids readers in gaining an realizing of the powerful use of data expertise in storing, dealing with, retrieving, and bringing up references in medical writings.
Accelerate! Move Your Business Forward through the Convergence of Search, Social & Content Marketing
Winner 2012 Small company ebook Award through Small enterprise Trends"If you personal an internet site, you are a writer. " Interruption advertising and marketing is something of the previous. we will now not purely check with our viewers. We needs to sign up for the dialog that is already occurring. the realm of selling has been appreciably altering within the final couple of years to a brand new form of advertising.
Getting StartED with Google Apps
How do you want to percentage your calendar, entry your e mail, or create and proportion records, all on-line out of your smartphone/mobile gadget, netbook, or laptop? should you spoke back sure, then you definately should still comprehend that the simplest of these kind of on-line purposes and providers are being provided at no cost, from one of many Internet's greatest names, Google.
- The Internet resource directory for K-12 teachers and librarians
- Universal Acess in Human Computer Interaction. Coping with Diversity: Coping with Diversity, 4th International Conference on Universal Access in Human-Computer ... Programming and Software Engineering)
- The Internet resource directory for K-12 teachers and librarians
- Strategic Intelligence Management. National Security Imperatives and Information and Communications Technologies
- The Internet resource directory for K-12 teachers and librarians
Additional resources for The Little Elixir & OTP Guidebook
Sample text
The next listing shows one possible approach. 08667200000001 This example illustrates that modules can be nested. The modules Feet and Inch are nested within MeterToLengthConverter. To access a function in a nested module, you use dot notation. ) In mailing lists, this format is sometimes known as MFA (Module, Function, and Arguments). Remember this format because you’ll encounter it again in the book. NOTE You can also flatten the module hierarchy, as shown in the next listing. 3701 end end You can call the function exactly the same way you did previously.
This is a perfect place to explain why. Consider this example: defmodule MyList do def flatten([ head | tail ]) do flatten(head) ++ flatten(tail) end def flatten(head), do: [ head ] def flatten([]), do: [] B This line never runs! end The base case is the last clause. flatten([])? You’d expect the result to be [], but in fact you’d get back [[]]. If you give it a little thought, you’ll realize that B never runs. The reason is that the second function clause will match [], and therefore the third function clause will be ignored.
If you get a non-list argument, you turn it into a list. Now, consider what happens to a list such as [[1], 2]. It helps to trace the execution on paper: 1 2 3 4 The first function clause B doesn’t match. The second function clause C matches. In this case, you pattern-match the list: head is [1], and tail is 2. Now, flatten([1]) and flatten(2) are called recursively. Handle flatten([1]). Again it doesn’t match the first clause B. The second one C matches. head is 1, and tail is []. flatten(1) is called.