Exit e-book
Show all chapters
01
Introduction
01. 
Introduction

Sign up to our Newsletter

Signing up to our newsletter allows you to read all our ebooks.

I agree to receive marketing communication from Scalac.
You can unsubscribe from these communications at any time. For more information on how to unsubscribe, view ourĀ Privacy Policy.

Mastering Modularity in ZIO with Zlayer
01

Introduction

Writing modular applications is without doubt very important in software engineering. Being able to split a problem into smaller parts and put them back together to build large applications is an essential concept. It allows us to build software no matter the complexity involved. And composability has been one of the core principles of ZIO from the very beginning. So, for getting a grasp on how ZIO is great for modularity, this document will be about writing a Tic-Tac-Toe application using the ZLayer data type.

Here is what you will learn:

  • What is the module structure suggested by ZIO
  • ZIO data types for writing modular applications: ZLayer and Has
  • ZLayer type aliases
  • How to organize a ZIO application around ZLayers
  • How to create and combine ZLayers, with horizontal and vertical composition

How to organize ZIO tests and mocks around ZLayers

PREVIOUS
Chapter
00
NEXT
Chapter
02