Elixir Testing Private Functions

Download Elixir Testing Private Functions PDF/ePub or read online books in Mobi eBooks. Click Download or Read Online button to get Elixir Testing Private Functions book now. This website allows unlimited access to, at the time of writing, more than 1.5 million titles, including hundreds of thousands of titles in various foreign languages.
Erlang and Elixir for Imperative Programmers

Learn and understand Erlang and Elixir and develop a working knowledge of the concepts of functional programming that underpin them. This book takes the author’s experience of taking on a project that required functional programming and real-time systems, breaks it down, and organizes it. You will get the necessary knowledge about differences to the languages you know, where to start, and where to go next. Have you been told by your customer or manager that they heard good things about Erlang, you should use it for the next project? Never had to deal with functional programming or real-time systems? In 2014, the author, Wolfgang Loder, developed a repository for digital assets that had to deliver those assets in binary form quickly and reliably, being able to deal with at least hundreds of requests per second. Since he could decide the architecture and software stack of the solution, he immediately thought of Erlang and its libraries and started to evaluate this option. It was not long after that he discovered Elixir, which sits on top of the Erlang virtual machine and has features more palatable for non-functional programmers, although it is a functional programming language itself. Erlang and Elixir for Imperative Programmers gives you a basis for deciding whether the effort is viable for your next project. This book is partly a tale of the author's own experience and partly a description of the bigger and more subtle differences between Erlang/Elixir and languages such as C++, Java, and C#. What You'll Learn Discover functional programming, Erlang, and Elixir Work on service design and service features Set up your environment: deployment, development, and production Implement the service including public interface, asset processing, and deployment Use the patterns and concepts found in Erlang including type creation concepts and code structuring. Who This Book Is For Experienced and savvy programmers, coders, and developers new to Erlang and Elixir.
Elixir Programming Mastery: An In-Depth Exploration for Developers

Elevate your Elixir skills with "Elixir Programming Mastery: An In-Depth Exploration for Developers". This comprehensive guide is tailored for those keen on mastering Elixir, a powerful functional programming language. Delve into an extensive exploration of Elixir's core concepts and its application in building scalable and maintainable software systems. Spanning from the fundamentals of functional programming and data structures to advanced topics like concurrency, parallelism, and web application development with Phoenix, this book offers a detailed learning pathway suitable for developers at any stage. Explore critical Elixir features such as pattern matching, modules, functions, and Ecto for efficient database management. Harness Elixir’s robust concurrency model to build highly scalable applications and discover best practices for error handling, debugging, testing, and documentation. Whether you're a beginner aiming to understand the essentials or an experienced developer seeking to enhance your expertise in functional programming and concurrent systems, this book equips you with the insights and practical examples necessary to excel in Elixir programming. Embark on your journey into the world of Elixir and learn how to craft high-quality, fault-tolerant applications with "Elixir Programming Mastery: An In-Depth Exploration for Developers". Embrace the future of scalable and efficient software development now!
Property-Based Testing with PropEr, Erlang, and Elixir

Author: Fred Hebert
language: en
Publisher: The Pragmatic Programmers LLC
Release Date: 2019-01-17
Property-based testing helps you create better, more solid tests with little code. By using the PropEr framework in both Erlang and Elixir, this book teaches you how to automatically generate test cases, test stateful programs, and change how you design your software for more principled and reliable approaches. You will be able to better explore the problem space, validate the assumptions you make when coming up with program behavior, and expose unexpected weaknesses in your design. PropEr will even show you how to reproduce the bugs it found. With this book, you will be writing efficient property-based tests in no time. Most tests only demonstrate that the code behaves how the developer expected it to behave, and therefore carry the same blind spots as their authors when special conditions or edge cases show up. Learn how to see things differently with property tests written in PropEr. Start with the basics of property tests, such as writing stateless properties, and using the default generators to generate test cases automatically. More importantly, learn how to think in properties. Improve your properties, write IPS data generators, and discover what your code can or cannot do. Learn when to use property tests and when to stick with example tests with real-world sample projects. Explore various testing approaches to find the one that's best for your code. Shrink failing test cases to their simpler expression to highlight exactly what breaks in your code, and generate highly relevant data through targeted properties. Uncover the trickiest bugs you can think of with nearly no code at all with two special types of properties based on state transitions and finite state machines. Write Erlang and Elixir properties that generate the most effective tests you'll see, whether they are unit tests or complex integration and system tests. What You Need Basic knowledge of Erlang, optionally Elixir For Erlang tests: Erlang/OTP >= 20.0, with Rebar >= 3.4.0 For Elixir tests: Erlang/OTP >= 20.0, Elixir >= 1.5.0