• Complain

Fancher - The book of F♯: breaking free with managed functional programming

Here you can read online Fancher - The book of F♯: breaking free with managed functional programming full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: San Francisco;California, year: 2014, publisher: No Starch Press, genre: Home and family. 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.

Fancher The book of F♯: breaking free with managed functional programming
  • Book:
    The book of F♯: breaking free with managed functional programming
  • Author:
  • Publisher:
    No Starch Press
  • Genre:
  • Year:
    2014
  • City:
    San Francisco;California
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

The book of F♯: breaking free with managed functional programming: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "The book of F♯: breaking free with managed functional programming" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

F brings the power of functional-first programming to the .NET Framework, a platform for developing software in the Microsoft Windows ecosystem. In this book, Microsoft MVP Dave Fancher shares his expertise and teaches you how to wield the power of F to write succinct, reliable, and predictable code. As you learn to take advantage of features like default immutability, pipelining, type inference, and pattern matching, youll be amazed at how efficient and elegant your code can be. Youll also learn how to: Exploit Fs functional nature using currying, partial application, and delegation; Streamline type creation and safety with record types and discriminated unions; Use collection types and modules to handle data sets more effectively; Use pattern matching to decompose complex types and branch your code within a single expression; Make your software more responsive with parallel programming and asynchronous workflows; Harness object orientation to develop rich frameworks and interact with code written in other .NET languages; Use query expressions and type providers to access and manipulate data sets from disparate sources. --;Foreword; Preface; Acknowledgments; Introduction; Whom Is This Book For?; How Is This Book Organized?; Additional Resources; Chapter 1: Meet F; F in Visual Studio; Project Templates; Project Organization; Significance of Whitespace; Grouping Constructs; Namespaces; Modules; Expressions Are Everywhere; Application Entry Point; Implicit Return Values; Your First F Program; Summary; Chapter 2: F Interactive; Running F Interactive; F Interactive Output; The it Identifier

Fancher: author's other books


Who wrote The book of F♯: breaking free with managed functional programming? Find out the surname, the name of the author of the book and a list of all author's works by series.

The book of F♯: breaking free with managed functional 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 "The book of F♯: breaking free with managed functional 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
The Book of F#: Breaking Free with Managed Functional Programming
Dave Fancher
Published by No Starch Press
About the Author

Dave Fancher has been developing software with the .NET Framework for more than a decade. He is a familiar face in the Indiana development community as both a speaker and participant in user groups around the state. In July 2013, Dave was recognized as a Microsoft MVP (Most Valuable Professional) for Visual F#. When not writing code or writing about code at davefancher.com , he can often be found watching a movie or gaming on his Xbox One.

About the Technical Reviewer Over the last 14 years Kevin Miller has worked on - photo 1
About the Technical Reviewer

Over the last 14 years, Kevin Miller has worked on exciting projects with truly great people while unsuccessfully pleading with compilers to break their steadfast rules. He enjoys studying the inherent beauty of logic, and when inspired by the muses, actually codes something deserving a modicum of pride from time to time. His interests lie in security, distributed systems, and data, but he has a short attention... squirrel!

Foreword I met Dave at the Microsoft MVP Summit in Redmond in 2013 We - photo 2
Foreword

I met Dave at the Microsoft MVP Summit in Redmond in 2013. We witnessed something unexpected: F# caught fire. The language hadnt changed drastically, but the attitudes of the developers at the Summit had. During the past year, MVPs had been learning about functional programming, and there was a new excitement around the language. Over the week, I learned of several C# MVPs who were jumping ship to F#. Dave and I talked about the transformation. We also talked about ethics in the context of object-oriented (OO) and functional programming (FP). Here is my story about that...

During college in the early 90s, I was immersed in operations management where the focus was quality, continuous improvement, just-in-time strategy, and waste elimination. W. Edwards Deming was a hero to my professors, and we studied Demings huge impact on Japanese manufacturing from the 1950s onward. Finding the root cause of defects and fixing them at the source was the good. Shipping defective product or tacking inspection at the end of the line was the bad. These ideas resonated with me deeply.

Continuous improvement seemed more than just a way to make widgets; it felt like a way to live life. It echoed Socratess concept of virtue; it evoked the story of Siddhartha, who sought truth over comfort. These are ideas about what should be, about merit, about substance over rhetoric, about correctness.

After graduation I rolled into a software development career. Depending on the company, it was either clown cars and cowboys, or rigid waterfall. Both were exciting, but no one in either environment was talking about quality or continuous improvement. When I would bring it up, I would get sad smiles from grizzled developers. Their eyes said, Son, dont you realize this is war? The operating systems were crashy, the dev tools were buggy, and everything was closed source and proprietary. Thucydides said war is a rough master that brings most mens characters to a level with their fortune. Likewise, when the development environment is bad, most developers will write bad code.

In 2001, a group of conscientious software developers got together in Snowbird, Utah and signed the Agile Manifesto. About a year later I discovered it. From my perspective, it seemed like a retelling of Deming, operations management, and Lean manufacturing. It was the first time in my career that Id heard developers discussing quality and continuous improvement. There was hope!

After five years of test-driven development, pair programming, the SOLID principles (single responsibility, open/closed, Liskov substitution, interface segregation, and dependency inversion), and Scrum, my hope had mostly worn away. I continued to fight my tools, and it remained difficult to build quality software. Without discipline it was a train wreck. With discipline, process, and diligence, it was a hard slog.

Through pure good luck I encountered Erlang in 2007, and in 2009 I began working with F#. Functional programming consumed me. I learned about immutability, recursion, pattern matching, higher-order functions, referential transparency, code as data, and separation of behavior from data. As I learned and practiced I began to see the huge cost of OO. So much of what made my day-to-day coding life miserable was solvable with Erlang and F#. As I told people about FP, I again received those sad smiles that asked, Dont you know we are at war? I took it differently this time. I decided, OK, sure. Lets call it war. Ill be on the side thats looking at the root cause of defects. Ill be on the side that wants to fix the problem at the source.

The next stage for Agile must be to fully unravel itself from OO.

Object-oriented programming had boldly promised to model the world. Well, the world is a scary place where bad things happen for no apparent reason, and in this narrow sense I concede that OO does model the world. OO as we have it mingles data and behavior; the result is low cohesion and tight coupling. In OO, there is shared mutable state, which makes concurrency impossibly difficult. In OO, logic is nondeterministic. In OO, the result of a function doesnt simply depend on the arguments we pass in. The result may vary depending on arguments passed on previous calls to the function. How about mutations from other functions? How about data passed to the constructor? How about properties and fields? How about access from other threads? With every method call, we worry about the whole environment. Joe Armstrong describes the problem with OO languages like this: Theyve got all this implicit environment that they carry around with them. You wanted a banana, but what you got was a gorilla holding the banana and the entire jungle. OO is a dangerous place.

Alan Kay once said, I invented the term object-oriented and I can tell you I did not have C++ in mind. What Alan Kay described was message passing, isolation between objects, and polymorphism. That describes the functional programming language Erlang better than it describes Java! So what the devil happened? Were C++, Java, and C# billion-dollar mondegreens (misheard lyrics)? Just imagine Alan Kay as Jimi Hendrix with a whole industry in an OO haze, mouthing, Scuse me while I kiss this guy. Who sold us this mess?

Ill wind down with a lie that OO people who are learning FP tell one another: Learning FP will make you a better OO programmer. It rings true, and in the short run it may even be true, but as you internalize immutability, recursion, pattern matching, higher-order functions, code as data, separation of behavior from data, and referential transparency, you will begin to despise OO. Personally, I went from being a Microsoft C# MVP to feeling guilt every time I created a new class file. Once you understand the defects that can be avoided, it stops being a technical choice and becomes an ethical one.

The good news is F# is a great language, and this is a fantastic book. They both create an easy pathway from the OO world to a cleaner, safer functional world. Im delighted youre about to walk this path.

Bryan Hunter

CTO, Firefly Logic

Preface

Ever since I started touting the benefits of F#, people have asked me why I chose to learn F# over other functional languages like Scala, Erlang, or Haskell. This line of questioning presupposes that I intentionally set out to learn a functional language. In reality, adopting F# was an organic progression from C#.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «The book of F♯: breaking free with managed functional programming»

Look at similar books to The book of F♯: breaking free with managed functional 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 «The book of F♯: breaking free with managed functional programming»

Discussion, reviews of the book The book of F♯: breaking free with managed functional 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.