万本电子书0元读

万本电子书0元读

顶部广告

Clojure Reactive Programming电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Leonardo Borges

出  版  社:Packt Publishing

出版时间:2015-03-23

字       数:103.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you are a Clojure developer who is interested in using Reactive Programming to build asynchronous and concurrent applications, this book is for you. Knowledge of Clojure and Leiningen is required. Basic understanding of ClojureScript will be helpful for the web chapters, although it is not strictly necessary.
目录展开

Clojure Reactive Programming

Table of Contents

Clojure Reactive Programming

Credits

About the Author

Acknowledgments

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. What is Reactive Programming?

A taste of Reactive Programming

Creating time

More colors

Making it reactive

Exercise 1.1

A bit of history

Dataflow programming

Object-oriented Reactive Programming

The most widely used reactive program

The Observer design pattern

Functional Reactive Programming

Higher-order FRP

Signals and events

Implementation challenges

First-order FRP

Asynchronous data flow

Arrowized FRP

Applications of FRP

Asynchronous programming and networking

Complex GUIs and animations

Summary

2. A Look at Reactive Extensions

The Observer pattern revisited

Observer – an Iterator's dual

Creating Observables

Custom Observables

Manipulating Observables

Flatmap and friends

One more flatmap for the road

Error handling

OnError

Catch

Retry

Backpressure

Sample

Backpressure strategies

Summary

3. Asynchronous Programming and Networking

Building a stock market monitoring application

Rolling averages

Identifying problems with our current approach

Removing incidental complexity with RxClojure

Observable rolling averages

Summary

4. Introduction to core.async

Asynchronous programming and concurrency

core.async

Communicating sequential processes

Rewriting the stock market application with core.async

Implementing the application code

Error handling

Backpressure

Fixed buffer

Dropping buffer

Sliding buffer

Transducers

Transducers and core.async

Summary

5. Creating Your Own CES Framework with core.async

A minimal CES framework

Clojure or ClojureScript?

Designing the public API

Implementing tokens

Implementing event streams

Implementing behaviors

Exercises

Exercise 5.1

Exercise 5.2

A respondent application

CES versus core.async

Summary

6. Building a Simple ClojureScript Game with Reagi

Setting up the project

Game entities

Putting it all together

Modeling user input as event streams

Working with the active keys stream

Reagi and other CES frameworks

Summary

7. The UI as a Function

The problem with complex web UIs

Enter React.js

Lessons from functional programming

ClojureScript and Om

Building a simple Contacts application with Om

The Contacts application state

Setting up the Contacts project

Application components

Om cursors

Filling in the blanks

Intercomponent communication

Creating an agile board with Om

The board state

Components overview

Lifecycle and component local state

Remaining components

Utility functions

Exercises

Summary

8. Futures

Clojure futures

Fetching data in parallel

Imminent – a composable futures library for Clojure

Creating futures

Combinators and event handlers

The movies example revisited

Futures and blocking IO

Summary

9. A Reactive API to Amazon Web Services

The problem

Infrastructure automation

AWS resources dashboard

CloudFormation

The describeStacks endpoint

The describeStackResources endpoint

EC2

The describeInstances endpoint

RDS

The describeDBInstances endpoint

Designing the solution

Running the AWS stub server

Setting up the dashboard project

Creating AWS Observables

Combining the AWS Observables

Putting it all together

Exercises

Summary

A. The Algebra of Library Design

The semantics of map

Functors

The Option Functor

Finding the average of ages

Applicative Functors

Gathering stats about ages

Monads

Summary

B. Bibliography

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部