• Complain

Marco Vermeulen - Functional Programming in Kotlin

Here you can read online Marco Vermeulen - Functional Programming in Kotlin full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: Manning, 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.

Marco Vermeulen Functional Programming in Kotlin

Functional Programming in Kotlin: summary, description and annotation

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

Master techniques and concepts of functional programming to deliver safer, simpler, and more effective Kotlin code.In Functional Programming in Kotlin you will learn: Functional programming techniques for real-world applications Write combinator libraries Common structures and idioms in functional design Simplicity and modularity (and fewer bugs!)Functional Programming in Kotlin is a reworked version of the bestselling Functional Programming in Scala, with all code samples, instructions, and exercises translated into the powerful Kotlin language. In this authoritative guide, youll take on the challenge of learning functional programming from first principles. Complex concepts are demonstrated through exercises that youll love to test yourself against. Youll start writing Kotlin code thats easier to read, easier to reuse, better for concurrency, and less prone to bugs and errors.Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.About the technology Improve performance, increase maintainability, and eliminate bugs! How? By programming the functional way. Kotlin provides strong support for functional programming, taking a pragmatic approach that integrates well with OO codebases. By applying the techniques youll learn in this book, your code will be safer, less prone to errors, and much easier to read and reuse.About the bookFunctional Programming in Kotlin teaches you how to design and write Kotlin applications using typed functional programming. Offering clear examples, carefully-presented explanations, and extensive exercises, it moves from basic subjects like types and data structures to advanced topics such as stream processing. This book is based on the bestseller Functional Programming in Scala by Rnar Bjarnason and Paul Chiusano.Whats inside Functional programming techniques for real-world situations Common structures and idioms in functional design Simplicity, modularity, and fewer bugs!About the reader For Kotlin developers. No functional programming experience required.About the authorMarco Vermeulen has two decades of programming experience on the JVM.Rnar Bjarnason and Paul Chiusano are the authors of Functional Programming in Scala.Tabel of ContentsPART 1 INTRODUCTION TO FUNCTIONAL PROGRAMMING 1 What is functional programming? 2 Getting started with functional programming in Kotlin 3 Functional data structures 4 Handling errors without exceptions 5 Strictness and laziness 6 Purely functional state PART 2 FUNCTIONAL DESIGN AND COMBINATOR LIBRARIES 7 Purely functional parallelism 8 Property-based testing 9 Parser combinators PART 3 COMMON STRUCTURES IN FUNCTIONAL DESIGN 10 Monoids 11 Monads and functors 12 Applicative and traversable functors PART 4 EFFECTS AND I/O 13 External effects and I/O 14 Local effects and mutable state 15 Stream processing and incremental I/O

Marco Vermeulen: author's other books


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

Functional Programming in Kotlin — 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 Programming in Kotlin" 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 Programming in Kotlin - image 1

Functional Programming with Kotlin

Marco Vermeulen, Rnar Bjarnason, and Paul Chiusano

Foreword by Raul Raja

To comment go to liveBook

Functional Programming in Kotlin - image 2

Manning

Shelter Island

For more information on this and other Manning titles go to

www.manning.com

Copyright

For online information and ordering of these and other Manning books, please visit www.manning.com. The publisher offers discounts on these books 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

2021 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.

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 the use of elemental chlorine.

Functional Programming in Kotlin - image 3

Manning Publications Co.

20 Baldwin Road Technical

PO Box 761

Shelter Island, NY 11964

Development editor:

Marina Michaels

Technical development editor:

Mark Elston, John Guthrie,

Joshua White

Review editor:

Aleksandar Dragosavljevi

Production editor:

Keri Hales

Copy editor:

Tiffany Taylor

Proofreader:

Katie Tennant

Technical proofreader:

Jean-Franois Morin

Typesetter:

Dennis Dalinnik

Cover designer:

Leslie Haimes

ISBN: 9781617297168

front matter
foreword

Functional programming has profoundly changed the way we approach and solve problems through software. Functional programming emphasizes immutability, function purity, and composition of functions as a means to build correct and predictable programsproperties in our code that have changed how we look at distributed systems, applications, and software engineering in recent decades.

Whereas a few years ago, functional programmings success was questioned and it was frequently compared or linked to other paradigms, todays adoption has extended to most language compilers and standard libraries and impacts how communities and teams approach architecture and system design.

Kotlin is a multiparadigm, multiplatform language that includes functional features such as continuations, nullable types, interfaces, pattern matching, algebraic data types, and many others that make it unique, fun, and one of the most performant languages with which to practice functional programming.

Since every language has its own notion of how functional programming manifests itself, you may be wondering what the essence of functional programming is and whether you can learn it in a principled way. Marco brings us this adaptation of the Red Book, Functional Programming in Scala, this time using Kotlin as a vehicle to illustrate these patterns from the ground up. Functional Programming in Kotlin breaks down basic concepts around function composition and algebraic design and then invites you to practice and learn through exercises and examples that illustrate how you can implement functional patterns and data types from scratch.

From common scenarios like error handling to more complex cases like streaming, Functional Programming in Kotlin complements the functional programmers learning journey and provides a foundational approach to learning core functional abstractions and patterns.

Raul Raja

Arrow maintainer

CTO 47 Degrees

preface

Writing good software is no easy task. We write code to provide machine-executable instructions that should execute with ease and efficiency. More importantly, code has another fundamental purpose: it exists as a means of clear communication with others who interact with our code now and in the future. And so, code has transcended its role as a tool for instructing machines and become one used for collaboratively instructing machines.

I have been coding since a relatively young age. It all began when I wrote BASIC on my ZX Spectrum and, later, machine language on my Commodore 64. After a long, winding road, this culminated in me becoming a passionate Java developer many years later. Up to that point, everything I had learned was of a procedural nature, a sequence of imperative steps to instruct the computer. In the early 2000s, Java blew my mind by introducing me to the concept of object orientation. I could now model real-world concepts in the memory of my computer as objects! Java also taught me the value of having a static type system that enforces specific rules at compilation time, resulting in fewer runtime issues.

As time went by, I discovered another way of thinking about software. This realization dawned on me when I started programming in another statically typed language, Scala. Functional programming was a completely new paradigm that shifted my mind from thinking about classes and objects to emphasizing the functions and methods within them. When learning Scala, I was lucky enough to have some fantastic resources at my disposal. The first was the excellent Functional Programming Principles in Scala video course by Martin Odersky on Coursera. The other was the famous Red Book, Functional Programming in Scala (Manning, 2014), into which Paul Chiusano and Rnar Bjarnason had poured many years of their experience and effort. Both of these shaped my thinking tremendously and altered the way that I perceive programming to this day.

When I began looking at Kotlin, I realized that despite the language having capabilities similar to Scalas, there was a significant focus on pragmatism, but not so much on the academic aspects of functional programming (FP) using the type system. After completing the Kotlin for Java Developers course on Coursera with a group of friends, we spoke about carrying on the study group using the material in the Red Book as a basis for our studies in typed FP while using Kotlin. Sadly, these further studies never materialized, but I carried on by myself and presented the concept of a new Kotlin FP book to Manning. My initial idea was to provide the same material as Paul and Rnar had written but with all code translated to Kotlin instead of Scala. I was delighted when Manning accepted the proposal. Once the work began, it took on a life of its own, changing a lot from the original, not only in code but also in text. Having said that, the structure of the book is still very true to the original.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Functional Programming in Kotlin»

Look at similar books to Functional Programming in Kotlin. 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 Programming in Kotlin»

Discussion, reviews of the book Functional Programming in Kotlin 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.