Vtome.ru - электронная библиотека

Functional Design and Architecture: Building real programs in Haskell: application architectures, design patterns

  • Добавил: literator
  • Дата: 1-01-2021, 15:50
  • Комментариев: 0
Functional Design and Architecture: Building real programs in Haskell: application architectures, design patternsНазвание: Functional Design and Architecture: Building real programs in Haskell: application architectures, design patterns
Автор: Alexander Granin
Издательство: Leanpub
Год: 2020
Страниц: 495
Язык: английский
Формат: pdf (true), epub + Extra
Размер: 41.3 MB

Software Design in Functional Programming, Design Patterns and Practices, Methodologies and Application Architectures. How to build real software in Haskell with less efforts and low risks. The first complete source of knowledge.

It is a fundamental book about Software Design in Haskell. The main idea of this book is to provide a comprehensive source of knowledge, a complete methodology of building real world applications in Haskell. Application architectures, best practices, design patterns and approaches, - all the information you need to achieve a simple, maintainable, testable code with low complexity and low risks. By reading this book, you’ll learn many useful techniques: from the requirement analysis to the implementation of particular subsystems such as SQL and NoSQL databases, multithreading, logging. You’ll learn about design principles, application layers, functional interfaces, Inversion of Control and Dependency Injection in Haskell.

The book is very practical. It will be useful for software engineers who want to improve their software design skills with a strong relation to many advanced Haskell concepts. The book requires a certain level of Haskell knowledge, up to intermediate.

The book covers a big gap in the Haskell ecosystem: the lack of resources about high-level application design. It’s also important that the ideas from the book were used in real production with great success. The book offers my own methodology - Functional Declarative Design, with Hierarchical Free Monads as a core technology. Using this methodology, I created several real-world frameworks, and they are driving a successful business in several companies.

Book topics:

requirements analysis and architecture modeling;
application layering;
design principles, SOLID;
Haskell-specific design patterns;
Inversion of Control and Dependency Injection;
domain modeling, embedded and external DSLs;
functional interfaces, subsystems and services;
Free monads, ReaderT pattern, Service handle pattern;
Final Tagless/mtl, GADTs
multithreading and concurrency;
state and stateful applications;
design of business logic;
interaction with impure subsystems;
relational and key-value databases;
error handling, exceptions, error domains;
web servers, HTTP backends, CLI applications;
property-based, functional and integration testing;
black box and white box testing.

The book is project-based. There are two showcase projects for it:

Hydra, a full-fledged framework for building web services, multithreaded and concurrent applications with SQL and KV DB support. Contains 3 engines: Final Tagless, Free Monad and Church Encoded Free Monad, as well as several demo applications to compare these 3 approaches.
Andromeda, a SCADA software for spaceship control.

I designed the following real-world frameworks using the ideas from the book (with the help of other people of course):

PureScript Presto - a framework for building mobile apps using a handy eDSL.
PureScript Presto. Backend - a framework for web RESTful backends. It has the same design as Presto but also is empowered by some additional features like logging, HTTP APIs integration, KV DB, SQL DB subsystems, state handling, automatic whitebox testing, and other useful stuff.

Both of these frameworks drive the business of an Indian financial company Juspay. Its mobile apps and financial backends are written on top of Presto and Presto.Backend. This technology helped the company to grow up and enabled a wide adoption of PureScript and Haskell in the future. Essentially, Juspay was the first company I used my ideas in. We found that Hierarchical Free Monads hide all the complexity of implementation details behind convenient interfaces so that the code is understandable by not only developers but by managers as well. This helped us to easily reason about the domain, the logic, the business goals and requirements. My approach also brought confidence that Haskell and PureScript are not only academic languages.

Node - a full-fledged framework for building distributed, concurrent, multithreading apps, blockchains initially, but not only. I designed this framework for Enecuum and then we successfully created our own blockchain using it. What's important, we managed to achieve our goals less than in 4 months with a team of 4 haskellers. The framework allowed us to write fast, complicated blockchain logic easily, quickly, without bugs and with maximum confidence due to a great testability of the HFM approach. You can read more about the framework in this my article: Building network actors with Node Framework.

Скачать Functional Design and Architecture: Building real programs in Haskell: application architectures, design patterns












ОТСУТСТВУЕТ ССЫЛКА/ НЕ РАБОЧАЯ ССЫЛКА ЕСТЬ РЕШЕНИЕ, ПИШИМ СЮДА!


ПРАВООБЛАДАТЕЛЯМ


СООБЩИТЬ ОБ ОШИБКЕ ИЛИ НЕ РАБОЧЕЙ ССЫЛКЕ



Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.