Book description
Erlang is the language of choice for programmers who want to write robust, concurrent applications, but its strange syntax and functional design can intimidate the uninitiated. Luckily, there's a new weapon in the battle against Erlang-phobia: Learn You Some Erlang for Great Good!
Erlang maestro Fred Hebert starts slow and eases you into the basics: You'll learn about Erlang's unorthodox syntax, its data structures, its type system (or lack thereof!), and basic functional programming techniques. Once you've wrapped your head around the simple stuff, you'll tackle the real meat-and-potatoes of the language: concurrency, distributed computing, hot code loading, and all the other dark magic that makes Erlang such a hot topic among today's savvy developers.
As you dive into Erlang's functional fantasy world, you'll learn about:
- Testing your applications with EUnit and Common Test
- Building and releasing your applications with the OTP framework
- Passing messages, raising errors, and starting/stopping processes over many nodes
- Storing and retrieving data using Mnesia and ETS
- Network programming with TCP, UDP, and the inet module
- The simple joys and potential pitfalls of writing distributed, concurrent applications
Packed with lighthearted illustrations and just the right mix of offbeat and practical example programs, Learn You Some Erlang for Great Good! is the perfect entry point into the sometimes-crazy, always-thrilling world of Erlang.
Publisher resources
Table of contents
- Learn You Some Erlang For Great Good!
- Foreword
- Preface
- Acknowledgments
- Introduction
- 1. Starting Out
- 2. Modules
- 3. Syntax in Functions
- 4. Types (or Lack Thereof)
- 5. Hello Recursion!
- 6. Higher-Order Functions
- 7. Errors and Exceptions
- 8. Functionally Solving Problems
- 9. A Short Visit to Common Data Structures
- 10. The Hitchhiker’s Guide to Concurrency
- 11. More on Multiprocessing
- 12. Errors and Processes
- 13. Designing a Concurrent Application
- 14. An Introduction to OTP
- 15. Rage Against the Finite-State Machines
- 16. Event Handlers
- 17. Who Supervises the Supervisors?
- 18. Building an Application
- 19. Building Applications the OTP Way
- 20. The Count of Applications
- 21. Release Is the Word
- 22. Leveling Up in the Process Quest
- 23. Buckets of Sockets
- 24. EUnited Nations Council
- 25. Bears, ETS, Beets: In-Memory NoSQL for Free!
- 26. Distribunomicon
- 27. Distributed OTP Applications
- 28. Common Test for Uncommon Tests
- 29. Mnesia and the Art of Remembering
- 30. Type Specifications and Dialyzer
- A. Afterword
- B. On Erlang’s Syntax
- Index
- About the Author
- C. Updates
- Copyright
Product information
- Title: Learn You Some Erlang for Great Good!
- Author(s):
- Release date: January 2013
- Publisher(s): No Starch Press
- ISBN: 9781593274351
You might also like
book
Introducing Erlang
If you’re new to Erlang, its functional style can seem difficult, but with help from this …
book
Erlang Programming
This book is an in-depth introduction to Erlang, a programming language ideal for any situation where …
video
Erlang by Example with Cesarini and Thompson
Get to know Erlang, the increasingly popular programming language widely known for its role in concurrency. …
book
Building Web Applications with Erlang
Why choose Erlang for web applications? Discover the answer hands-on by building a simple web service …