Effect Oriented Programming
$20.00
Minimum price
$30.00
Suggested price

Effect Oriented Programming

A Paradigm for Creating Reliable, Adaptable, Testable Systems - Using Scala and ZIO

About the Book

Effects are the unpredictable elements in your programs.

Concerns like network communication or user interaction might seem easy, but they are devilishly difficult to get right. The pristine world of algorithms devolves into the gory reality of failures and inconsistency.

Traditionally, we've coped with Effects incompletely and often unwittingly. Programs have been difficult to build, adapt, and maintain.

Discover a groundbreaking approach to software development using Effect Systems to control the unpredictable elements in your systems. We focus on practical techniques you can apply immediately, making complex concepts accessible to all developers. You'll learn resilient system development in a straightforward, pragmatic way, using simplified code examples and clear explanatory prose.

  • Share this book

  • Categories

    • Scala
    • Functional Programming
    • Software Engineering
  • Feedback

    You must own a copy of this Book to access the forums.

    Email the Author(s)

About the Authors

Bill Frasure
Bill Frasure

Bill Frasure is a software engineer that has become enamored with static types, functional programming, and effect systems.

He has worked at Ziverge as a core member of the ZIO team, in addition to medical and financial software.

He loves to give presentations, lessons, and generally assist others in sharing all moments of learning.

Bruce Eckel
Bruce Eckel

Bruce Eckel is the author of the multi-award-winning Thinking in Java and Thinking in C++, and a number of other books on computer programming including Atomic Scala. He's given hundreds of presentations throughout the world and puts on alternative conferences and events like the www.WinterTechForum.com and developer retreats. He lives in Crested Butte, Colorado. Bruce has a BS in applied physics and an MS in computer engineering. His blog is at www.BruceEckel.com and his consulting, training and conference business is www.MindviewLLC.com.

James Ward
James Ward

Professional software developer since 1997, with much of that time spent helping developers build software that doesn't suck. A Typed Pure Functional Programming zealot who often compromises on his ideals to just get stuff done. Currently a Developer Advocate for AWS. Blog: jamesward.com

Table of Contents

    • 1:Preface
      • 1.1:Scala 3 & ZIO
      • 1.2:Code Examples
      • 1.3:Acknowledgements
    • 2:Introduction
      • 2.1:Types of Effects
      • 2.2:Motivation
      • 2.3:The Pursuit of Adaptability
      • 2.4:What’s Stopping Us?
      • 2.5:Managing Effects
      • 2.6:Improving Your Life
    • 3:Superpowers
      • 3.1:Retry
      • 3.2:Modifying Failure
      • 3.3:Timeout
      • 3.4:Fallback
      • 3.5:Finalization
      • 3.6:Timing
      • 3.7:Filtering
      • 3.8:Effects are the Sum of Their Parts
      • 3.9:Deferred Execution
    • 4:Initialization
      • 4.1:Effects and Dependencies
      • 4.2:Defining Dependencies
      • 4.3:Effects as Dependencies
      • 4.4:Providing Dependencies to Effects
      • 4.5:Dependencies With Dependencies
      • 4.6:Naming Dependencies
      • 4.7:Sharing Dependencies
      • 4.8:The Dependency Graph
      • 4.9:Dependency Cleanup
      • 4.10:Construction Failure
      • 4.11:External Configuration
    • 5:Testing
      • 5.1:Basic ZIO Testing
      • 5.2:Test Dependencies
      • 5.3:Testing Built-Ins
    • 6:Failure
      • 6.1:Throwing Exceptions
      • 6.2:The Functional Solution
      • 6.3:Failure Types
      • 6.4:Short-Circuiting
      • 6.5:Handling Failures
      • 6.6:Multiple Failure Types
      • 6.7:Handling Thrown Exceptions
    • 7:Composability
      • 7.1:Composing with Effects
      • 7.2:Future
      • 7.3:Option
      • 7.4:Either
      • 7.5:AutoCloseable
      • 7.6:Try
      • 7.7:Exceptions
      • 7.8:Slow Functions
      • 7.9:Composing an Application
      • 7.10:Effects are Values
    • 8:Shared State
      • 8.1:Unreliable State
      • 8.2:Reliable State
      • 8.3:Effects Are Not Allowed
      • 8.4:Sneaking in Side Effects
      • 8.5:Reliable Effects
    • 9:Resilience
      • 9.1:Caching
      • 9.2:Rate Limits
      • 9.3:Constraining Concurrent Requests
      • 9.4:Circuit Breaking
      • 9.5:Reducing Worst-Case Latency
      • 9.6:Test Resilience
      • 9.7:The Ecosystem of Effects

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub