• Complain

Michael Fogus - Functional JavaScript: Introducing Functional Programming with Underscore.js

Here you can read online Michael Fogus - Functional JavaScript: Introducing Functional Programming with Underscore.js full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: OReilly Media, 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.

Michael Fogus Functional JavaScript: Introducing Functional Programming with Underscore.js
  • Book:
    Functional JavaScript: Introducing Functional Programming with Underscore.js
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2013
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Functional JavaScript: Introducing Functional Programming with Underscore.js: summary, description and annotation

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

How can you overcome javascript language oddities and unsafe features? With this book, youll learn how to create code thats beautiful, safe, and simple to understand and test by using javascripts functional programming support. Author Michael Fogus shows you how to apply functional-style concepts with Underscore.js, a javascript library that facilitates functional programming techniques. Fogus helps you think in a functional way to help you minimize complexity in the programs you build. If youre a javascript programmer hoping to learn functional programming techniques, or a functional programmer looking to learn javascript, this book is the ideal introduction.

Michael Fogus: author's other books


Who wrote Functional JavaScript: Introducing Functional Programming with Underscore.js? Find out the surname, the name of the author of the book and a list of all author's works by series.

Functional JavaScript: Introducing Functional Programming with Underscore.js — 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 JavaScript: Introducing Functional Programming with Underscore.js" 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 JavaScript
Michael Fogus
Beijing Cambridge Farnham Kln Sebastopol Tokyo Download from Wow eBook For - photo 1

Beijing Cambridge Farnham Kln Sebastopol Tokyo
Download from Wow! eBook

For Yuki

Special Upgrade Offer

If you purchased this ebook directly from oreilly.com, you have the following benefits:

  • DRM-free ebooksuse your ebooks across devices without restrictions or limitations

  • Multiple formatsuse on your laptop, tablet, or phone

  • Lifetime access, with free updates

  • Dropbox syncingyour files, anywhere

If you purchased this ebook from another retailer, you can upgrade your ebook to take advantage of all these benefits for just $4.99. to access your ebook upgrade.

Please note that upgrade offers are not available from sample content.

Foreword by Jeremy Ashkenas
Jeremy Ashkenas

This is a terribly exciting book.

Despite its ignominious origins as a Java-lite scripting language, intended to be embedded inline in HTML documents to allow a minimum modicum of interactivity JavaScript has always been one of the most essentially flexible languages for general purpose programming.

You can sketch, smudge, and draft bits of code in JavaScript, while pushing and twisting the language in the direction that best suits your particular style. The reason that this is more natural in JavaScript than in other, more rigid languages is due to the small set of strong core ideas that lie at the heart of JavaScript: Everything is an object (everything is a value) to an even greater extent than in famously object-oriented languages like Ruby and Java. Functions are objects, are values. An object may serve as prototype (default values) for any other object. There is only one kind of function, and depending on how you employ it, it can either serve as a pure function, a mutating procedure, or as a method on an object.

JavaScript enables, but does not enforce, many different programming styles. In the early days, we tended to bring our traditional expectations and best practices with us when we started to learn to write JavaScript. Naturally this led to much JavaScript resembling Java without the omnipresent types or even with the types still there, just living inside of annotation comments above each method. Gradually, experiments were made: folks started generating functions at runtime, working with immutable data structures, creating different patterns for object-orientation, discovering the magic of chaining APIs, or extending built-in prototypes with custom functionality.

One of my favorite recent developments is the enthusiastic embrace of functional programming ideas as appropriate tools for building rich JavaScript applications. As we move beyond form validation and DOM animation towards full-featured apps, where the JavaScript in your codebase might be getting up to any manner of hijinks in any particular problem space, functional ideas are similarly moving beyond the basic callback, and towards more interesting arenas, such as:

  • Building out a large API by partially applying a core set of functions with arguments in different configurations.

  • Using recursive functions to smooth the gap between actions that need to occur for a period of time, and events coming in rapid-fire off the event loop.

  • Structuring a piece of complex business logic as a pipeline of mutation-free changes that can later be plugged-into and pulled apart.

Youre reading the ideal book with which to explore this territory. In the following nine chapters (and two appendixes), your friendly tour guide and resident mad scientist, Michael Fogus, breaks down functional programming into its basic atoms, and builds it back up again into edifices of terrifying cleverness that will leave you wondering. Its rare that a programming book can take you by surprise, but this one will.

Enjoy.

Foreword by Steve Vinoski
Steve Vinoski

I remember when I first read Douglas Crockfords wonderful book JavaScript: The Good Parts . Not only did I learn from it, but the fact that Crockford required only 172 pages to steer readers away from JavaScripts problematic parts makes his work that much more impressive. Brevity is often at odds with educative exposition, but when an author achieves both as Crockford did, the reader is more likely to fully digest the authors recommendations and benefit from them.

In the pages that follow, youll find that Michael Fogus has given us a book as excellent as Crockfords, perhaps more so. Hes built on the sound advice of Crockford and other predecessors to take us on a deep dive into the world of functional JavaScript programming. Ive often heard and read (and even written myself) that JavaScript is a functional programming language, but such assertions (including my own) have always seemed light on the pragmatic details that practicing programmers need. Even Crockford devoted only a single chapter to functions, focusing instead, like many authors, on JavaScripts object support. Here, merely saying that Fogus fills in those missing details would be a serious understatement.

Functional programming has been a part of the computing field from its inception, yet traditionally it has not enjoyed significant interest or growth among practicing software professionals. But thanks to continuing advances in computing hardware speed and capacity, coupled with our industrys increasing interest in creating software systems of ever-escalating levels of concurrency, distribution and scale, functional programming is rapidly growing in popularity. This growth is due to the observation that functonal programming appears to help developers reason about, build and maintain such systems. Curiosity about languages that support functional programming, like Scala, Clojure, Erlang and Haskell, is at an all-time high and still increasing, with no abatement in sight.

As you read through Michaels insightful investigations of JavaScripts functional programming capabilities, youll be impressed with the significant depth and breadth of the information he provides. He keeps things simple at first, explaining how functions and data as abstraction can avoid the desire to use JavaScripts powerful object prototype system to create yet another way of modeling classes. But as he explains and thoroughly reveals in subsequent chapters, the simple model of functional data transformation can yield sophisticated yet efficient building blocks and higher level abstractions. I predict youll be amazed at just how far Fogus is able to take these innovative approaches as each chapter goes by.

Most software development efforts require pragmatism, though, and fortunately for us Fogus tackles this important requirement as well. Having beautiful, sophisticated and simple code is ultimately meaningless if its not practical, and this is a large part of the reason functional programming stayed hidden in the shadows for so many years. Fogus addresses this issue by helping the reader explore and evaluate the computing costs associated with the functional programming approaches he champions here.

And of course books, just like software, are ultimately about communication. Like Crockford, Fogus writes in a manner thats both brief and informative, saying just enough to drive his ideas home without belaboring them. I cant overstate the importance of Michaels brevity and clarity, since without them wed miss the incredible potential of the ideas and insights hes provided here. Youll find elegance not only in the approaches and code Fogus presents, but also in the way he presents them.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Functional JavaScript: Introducing Functional Programming with Underscore.js»

Look at similar books to Functional JavaScript: Introducing Functional Programming with Underscore.js. 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 JavaScript: Introducing Functional Programming with Underscore.js»

Discussion, reviews of the book Functional JavaScript: Introducing Functional Programming with Underscore.js 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.