Property-Based Testing with PropEr, Erlang, and Elixir

Download Property-Based Testing with PropEr, Erlang, and Elixir PDF Online Free

Author :
Publisher : Pragmatic Bookshelf
ISBN 13 : 1680506544
Total Pages : 497 pages
Book Rating : 4.49/5 ( download)

DOWNLOAD NOW!


Book Synopsis Property-Based Testing with PropEr, Erlang, and Elixir by : Fred Hebert

Download or read book Property-Based Testing with PropEr, Erlang, and Elixir written by Fred Hebert and published by Pragmatic Bookshelf. This book was released on 2019-01-17 with total page 497 pages. Available in PDF, EPUB and Kindle. Book excerpt: 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 custom 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 ElixirFor Erlang tests: Erlang/OTP >= 20.0, with Rebar >= 3.4.0For Elixir tests: Erlang/OTP >= 20.0, Elixir >= 1.5.0

Property-based Testing with PropEr, Erlang, and Elixir

Download Property-based Testing with PropEr, Erlang, and Elixir PDF Online Free

Author :
Publisher :
ISBN 13 : 9781680506556
Total Pages : 367 pages
Book Rating : 4.52/5 ( download)

DOWNLOAD NOW!


Book Synopsis Property-based Testing with PropEr, Erlang, and Elixir by : Fred Hébert

Download or read book Property-based Testing with PropEr, Erlang, and Elixir written by Fred Hébert and published by . This book was released on 2019 with total page 367 pages. Available in PDF, EPUB and Kindle. Book excerpt: 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 custom 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.

Programming Ecto

Download Programming Ecto PDF Online Free

Author :
Publisher : Pragmatic Bookshelf
ISBN 13 : 1680506935
Total Pages : 330 pages
Book Rating : 4.38/5 ( download)

DOWNLOAD NOW!


Book Synopsis Programming Ecto by : Darin Wilson

Download or read book Programming Ecto written by Darin Wilson and published by Pragmatic Bookshelf. This book was released on 2019-04-01 with total page 330 pages. Available in PDF, EPUB and Kindle. Book excerpt: Languages may come and go, but the relational database endures. Learn how to use Ecto, the premier database library for Elixir, to connect your Elixir and Phoenix apps to databases. Get a firm handle on Ecto fundamentals with a module-by-module tour of the critical parts of Ecto. Then move on to more advanced topics and advice on best practices with a series of recipes that provide clear, step-by-step instructions on scenarios commonly encountered by app developers. Co-authored by the creator of Ecto, this title provides all the essentials you need to use Ecto effectively. Elixir and Phoenix are taking the application development world by storm, and Ecto, the database library that ships with Phoenix, is going right along with them. There are plenty of examples that show you the basics, but to use Ecto to its full potential, you need to learn the library from the ground up. This definitive guide starts with a tour of the core features of Ecto - repos, queries, schemas, changesets, transactions - gradually building your knowledge with tasks of ever-increasing complexity. Along the way, you'll be learning by doing - a sample application handles all the boilerplate so you can focus on getting Ecto into your fingers. Build on that core knowledge with a series of recipes featuring more advanced topics. Change your pooling strategy to maximize your database's efficiency. Use nested associations to handle complex table relationships. Add streams to handle large result sets with ease. Based on questions from Ecto users, these recipes cover the most common situations developers run into. Whether you're new to Ecto, or already have an app in production, this title will give you a deeper understanding of how Ecto works, and help make your database code cleaner and more efficient. What You Need: To follow along with the book, you should have Erlang/OTP 19+ and Elixir 1.4+ installed. The book will guide you through setting up a sample application that integrates Ecto.

Testing Elixir

Download Testing Elixir PDF Online Free

Author :
Publisher :
ISBN 13 : 9781680507829
Total Pages : 220 pages
Book Rating : 4.26/5 ( download)

DOWNLOAD NOW!


Book Synopsis Testing Elixir by : Andrea Leopardi

Download or read book Testing Elixir written by Andrea Leopardi and published by . This book was released on 2021-02-28 with total page 220 pages. Available in PDF, EPUB and Kindle. Book excerpt:

Designing for Scalability with Erlang/OTP

Download Designing for Scalability with Erlang/OTP PDF Online Free

Author :
Publisher : "O'Reilly Media, Inc."
ISBN 13 : 1449361579
Total Pages : 482 pages
Book Rating : 4.70/5 ( download)

DOWNLOAD NOW!


Book Synopsis Designing for Scalability with Erlang/OTP by : Francesco Cesarini

Download or read book Designing for Scalability with Erlang/OTP written by Francesco Cesarini and published by "O'Reilly Media, Inc.". This book was released on 2016-05-16 with total page 482 pages. Available in PDF, EPUB and Kindle. Book excerpt: If you need to build a scalable, fault tolerant system with requirements for high availability, discover why the Erlang/OTP platform stands out for the breadth, depth, and consistency of its features. This hands-on guide demonstrates how to use the Erlang programming language and its OTP framework of reusable libraries, tools, and design principles to develop complex commercial-grade systems that simply cannot fail. In the first part of the book, you’ll learn how to design and implement process behaviors and supervision trees with Erlang/OTP, and bundle them into standalone nodes. The second part addresses reliability, scalability, and high availability in your overall system design. If you’re familiar with Erlang, this book will help you understand the design choices and trade-offs necessary to keep your system running. Explore OTP’s building blocks: the Erlang language, tools and libraries collection, and its abstract principles and design rules Dive into the fundamentals of OTP reusable frameworks: the Erlang process structures OTP uses for behaviors Understand how OTP behaviors support client-server structures, finite state machine patterns, event handling, and runtime/code integration Write your own behaviors and special processes Use OTP’s tools, techniques, and architectures to handle deployment, monitoring, and operations

Erlang and Elixir for Imperative Programmers

Download Erlang and Elixir for Imperative Programmers PDF Online Free

Author :
Publisher : Apress
ISBN 13 : 1484223942
Total Pages : 260 pages
Book Rating : 4.49/5 ( download)

DOWNLOAD NOW!


Book Synopsis Erlang and Elixir for Imperative Programmers by : Wolfgang Loder

Download or read book Erlang and Elixir for Imperative Programmers written by Wolfgang Loder and published by Apress. This book was released on 2016-11-26 with total page 260 pages. Available in PDF, EPUB and Kindle. Book excerpt: 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.

Learn You Some Erlang for Great Good!

Download Learn You Some Erlang for Great Good! PDF Online Free

Author :
Publisher : No Starch Press
ISBN 13 : 1593275048
Total Pages : 628 pages
Book Rating : 4.44/5 ( download)

DOWNLOAD NOW!


Book Synopsis Learn You Some Erlang for Great Good! by : Fred Hebert

Download or read book Learn You Some Erlang for Great Good! written by Fred Hebert and published by No Starch Press. This book was released on 2013-01-13 with total page 628 pages. Available in PDF, EPUB and Kindle. Book excerpt: 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 Hébert 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.

Building Web Applications with Erlang

Download Building Web Applications with Erlang PDF Online Free

Author :
Publisher : "O'Reilly Media, Inc."
ISBN 13 : 1449309968
Total Pages : 155 pages
Book Rating : 4.61/5 ( download)

DOWNLOAD NOW!


Book Synopsis Building Web Applications with Erlang by : Zachary Kessin

Download or read book Building Web Applications with Erlang written by Zachary Kessin and published by "O'Reilly Media, Inc.". This book was released on 2012-06-07 with total page 155 pages. Available in PDF, EPUB and Kindle. Book excerpt: "Working with REST and Web-Sockets on Yaws"--Cover.

Programming Erlang

Download Programming Erlang PDF Online Free

Author :
Publisher : Pragmatic Bookshelf
ISBN 13 : 1680504320
Total Pages : 755 pages
Book Rating : 4.23/5 ( download)

DOWNLOAD NOW!


Book Synopsis Programming Erlang by : Joe Armstrong

Download or read book Programming Erlang written by Joe Armstrong and published by Pragmatic Bookshelf. This book was released on 2013-09-23 with total page 755 pages. Available in PDF, EPUB and Kindle. Book excerpt: A multi-user game, web site, cloud application, or networked database can have thousands of users all interacting at the same time. You need a powerful, industrial-strength tool to handle the really hard problems inherent in parallel, concurrent environments. You need Erlang. In this second edition of the bestselling Programming Erlang, you'll learn how to write parallel programs that scale effortlessly on multicore systems. Using Erlang, you'll be surprised at how easy it becomes to deal with parallel problems, and how much faster and more efficiently your programs run. That's because Erlang uses sets of parallel processes-not a single sequential process, as found in most programming languages. Joe Armstrong, creator of Erlang, introduces this powerful language in small steps, giving you a complete overview of Erlang and how to use it in common scenarios. You'll start with sequential programming, move to parallel programming and handling errors in parallel programs, and learn to work confidently with distributed programming and the standard Erlang/Open Telecom Platform (OTP) frameworks. You need no previous knowledge of functional or parallel programming. The chapters are packed with hands-on, real-world tutorial examples and insider tips and advice, and finish with exercises for both beginning and advanced users. The second edition has been extensively rewritten. New to this edition are seven chapters covering the latest Erlang features: maps, the type system and the Dialyzer, WebSockets, programming idioms, and a new stand-alone execution environment. You'll write programs that dynamically detect and correct errors, and that can be upgraded without stopping the system. There's also coverage of rebar (the de facto Erlang build system), and information on how to share and use Erlang projects on github, illustrated with examples from cowboy and bitcask. Erlang will change your view of the world, and of how you program. What You Need The Erlang/OTP system. Download it from erlang.org.

Testing Elixir

Download Testing Elixir PDF Online Free

Author :
Publisher : Pragmatic Bookshelf
ISBN 13 : 168050892X
Total Pages : 326 pages
Book Rating : 4.25/5 ( download)

DOWNLOAD NOW!


Book Synopsis Testing Elixir by : Andrea Leopardi

Download or read book Testing Elixir written by Andrea Leopardi and published by Pragmatic Bookshelf. This book was released on 2021-07-13 with total page 326 pages. Available in PDF, EPUB and Kindle. Book excerpt: Elixir offers new paradigms, and challenges you to test in unconventional ways. Start with ExUnit: almost everything you need to write tests covering all levels of detail, from unit to integration, but only if you know how to use it to the fullest - we'll show you how. Explore testing Elixir-specific challenges such as OTP-based modules, asynchronous code, Ecto-based applications, and Phoenix applications. Explore new tools like Mox for mocks and StreamData for property-based testing. Armed with this knowledge, you can create test suites that add value to your production cycle and guard you from regressions. Write Elixir tests that you can be proud of. Dive into Elixir's test philosophy and gain mastery over the terminology and concepts that underlie good tests. Create and structure a comprehensive ExUnit test suite, starting from the basics, and build comprehensive test coverage that will provide safety for refactoring and confidence that your code performs as designed. Use tests to make your software more reliable and fault tolerant. Explore the basic tool set provided by ExUnit and Mix to write and organize your test suite. Test code built around different OTP functionality. Isolate your code through dependency injection and by using Mox. Write comprehensive tests for Ecto projects, covering Ecto as a database tool as well as a standalone data validation tool. Test Phoenix channels from end to end, including authentication and joining topics. Write Phoenix controller tests and understand the concepts of integration testing in Elixir. Learn property-based testing with StreamData from the author who wrote the library. Code with high confidence that you are getting the most out of your test suite, with the right tools that make testing your code a pleasure and a valuable part of your development cycle. What You Need: To get the most out of this book, you will need to have installed Elixir 1.8 or later and Erlang/OTP 21 or later. In order to complete the relevant chapters, you will also need Ecto 3.1 or later, EctoSQL 3.1 or later and Phoenix 1.3 or later.