• Complain

Stephen Blackheath Anthony Jones [Stephen Blackheath - Functional Reactive Programming

Here you can read online Stephen Blackheath Anthony Jones [Stephen Blackheath - Functional Reactive Programming full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2016, publisher: Manning Publications, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Stephen Blackheath Anthony Jones [Stephen Blackheath Functional Reactive Programming

Functional Reactive Programming: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Functional Reactive Programming" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Summary

Functional Reactive Programming teaches the concepts andapplications of FRP. It offers a careful walk-through of core FRPoperations and introduces the concepts and techniques youll needto use FRP in any language.

About the Technology

Todays software is shifting to more asynchronous,event-based solutions. For decades, the Observer pattern has beenthe go-to event infrastructure, but it is known to be bug-prone.Functional reactive programming (FRP) replaces Observer, radicallyimproving the quality of event-based code.

About the Book

Functional Reactive Programming teaches you how FRP worksand how to use it. Youll begin by gaining an understandingof what FRP is and why its so powerful. Then, youllwork through greenfield and legacy code as you learn to apply FRPto practical use cases. Youll find examples in this bookfrom many application domains using both Java and JavaScript. Whenyoure finished, youll be able to use the FRP approachin the systems you build and spend less time fixing problems.

Whats Inside

  • Think differently about data and events

  • FRP techniques for Java and JavaScript

  • Eliminate Observer one listener at a time

  • Explore Sodium, RxJS, and Kefir.js FRP systems

  • About the Reader

    Readers need intermediate Java or JavaScript skills. Noexperience with functional programming or FRP required.

    About the Authors

    Stephen Blackheath and Anthony Jones are experienced softwaredevelopers and the creators of the Sodium FRP library for multiplelanguages.

    Stephen Blackheath Anthony Jones [Stephen Blackheath: author's other books


    Who wrote Functional Reactive Programming? Find out the surname, the name of the author of the book and a list of all author's works by series.

    Functional Reactive Programming — read online for free the complete book (whole text) full work

    Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Functional Reactive Programming" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

    Light

    Font size:

    Reset

    Interval:

    Bookmark:

    Make
    Functional Reactive Programming
    Stephen Blackheath Anthony Jones

    Functional Reactive Programming - image 1

    Copyright

    For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact

    Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 761 Shelter Island, NY 11964 Email: orders@manning.com

    2016 by Manning Publications Co. All rights reserved.

    No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.

    Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps.

    Picture 2 Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without elemental chlorine.

    Picture 3Manning Publications Co.20 Baldwin RoadPO Box 761Shelter Island, NY 11964
    Development editor: Jennifer StoutTechnical development editor: Dennis SellingerReview editor: Aleksandar DragosavljevicProject editor: Tiffany TaylorCopyeditor: Tiffany TaylorProofreader: Melody DolabTypesetter: Marija TudorCover designer: Marija Tudor

    ISBN: 9781633430105

    Printed in the United States of America

    1 2 3 4 5 6 7 8 9 10 EBM 21 20 19 18 17 16

    Brief Table of Contents
    Table of Contents

    extends Cell

    extends Cell

    extends Stream

    extends Stream

    Foreword

    In 1968, in a presentation that would later become known as the the mother of all demos, computer scientist Douglas Engelbart and his team started the personal computer revolution by demonstrating a system that featured text editing on a screen, his newly invented mouse, mixing of text and graphics, outline views, hypertext links, screen-sharing, and even videoconferencing. At a time when computers were room-sized machines conceived to outperform humans at computational tasks, he instead proposed that they help the human perform intellectual tasks, augmenting human intelligence by becoming interactive assistants in everyones daily work. The graphical user interface was born.

    But in addition to its groundbreaking interactivity, Engelbarts system is also interesting for the way it was built: it was written in several different programming languages that were specifically designed for it and adapted as the system changed. Building a truly innovative system also required building appropriate languages to program it. The next important milestone inspired by Engelbarts vision was the Xerox Alto system in 1973. In addition to introducing the desktop metaphor and other user interface innovations, it also featured the first object-oriented language, Smalltalk.

    Today, building graphical user interfaces and using object-oriented languages have become mainstream. Unfortunately, though, programming user interfaces is still surprisingly difficult. Code written in the currently predominant style, event-driven programming and the observer pattern, has an uncanny tendency to quickly evolve into an unmaintainable mess, commonly referred to as spaghetti code. Is there a better way?

    I think its time for another step in the evolution of user interfaces and programming languages. In recent years, the ideas of functional programming and a (separate) programming style called functional reactive programming (FRP) have shown great promise in making it easier to develop any kind of interactive programs.

    This text is one of the first comprehensive introductions to functional reactive programming in book form. With great enthusiasm, Stephen Blackheath and Anthony Jones teach you the basic concepts of FRP, explain a large example in detail, and discuss various patterns that commonly occur in practice. To show that FRP does indeed make things simpler, the pair of brothers also presents an illuminating case study where they solve one problem in three different programming styles and compare the results. Of the three approachesevent-based programming, actors, and functional reactive programmingthe latter compares most favorably.

    Functional reactive programming is a style that is usually supported by a library for a particular programming language. The authors have written an FRP library called Sodium that is available for several languages, including Java, and this book profits from their experience in detail. For the sake of concreteness, they use it in this book as well. Of course, the concepts apply more generally, and the authors also present a short guide to many other FRP libraries.

    Not all programming languages are created equal. As the name suggests, functional reactive programming derives much of its expressive power from functional programming. In this book, Stephen and Anthony dont assume any prior knowledge of functional programming; instead, they gently introduce you to the necessary concepts as needed. But this heritage also means that FRP libraries can only exist in languages that support them. Java is a popular example, and the authors have chosen it as the main vehicle for explaining FRP. Still, Java is mainly an imperative language, and I think the mismatch is showing in some places. That is why personally, I prefer the purely functional language Haskell for my FRP work. But I think the authors made an excellent choice by picking a more popular and widely used language for this book and not shying away from the difficulties of dealing with the imperative aspects of Java.

    Not all FRP libraries are created equal, either. As already mentioned, this book focuses on the Sodium library. But for the case where your programming environment is limited, the authors also discuss libraries like RxJS, which implement a style called reactive programming. This is very similar to functional reactive programming, but the authors rightfully note that it lacks some benefits and guarantees, such as a deterministic merge primitive. I wholeheartedly recommend the Sodium library as designed by the authors.

    The field of functional reactive programming is still very young, and you may find that youll need to think in new ways to express your code in this style. This book gives you the necessary tools and foundation for doing that.

    H EINRICH A PFELMUS

    O PEN SOURCE DEVELOPER

    A UTHOR OF THE FRP LIBRARY R EACTIVE-BANANA

    Preface

    This book was born of frustration. We were each involved in a large project with a lot of event-based logic. Petty problems regularly turned into long days of debugging.

    Anthony joined a team working on a complex configuration GUI full of plumbing that was replicated over and over. He decided to tidy this up by shifting all the logic to a single abstraction called PublishedScalar. This was a revolutionary change.

    Stephen was working on embedded development for vehicle telematics, and the challenges kept coming. He started fantasizing about a career change to truck driving but instead found new approaches in functional programming.

    Next page
    Light

    Font size:

    Reset

    Interval:

    Bookmark:

    Make

    Similar books «Functional Reactive Programming»

    Look at similar books to Functional Reactive Programming. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


    Reviews about «Functional Reactive Programming»

    Discussion, reviews of the book Functional Reactive Programming and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.