Functional Programming in C++

Functional Programming in C++
Author :
Publisher : Simon and Schuster
Total Pages : 432
Release :
ISBN-10 : 9781638355663
ISBN-13 : 1638355665
Rating : 4/5 (63 Downloads)

Synopsis Functional Programming in C++ by : Ivan Cukic

Summary Functional Programming in C++ teaches developers the practical side of functional programming and the tools that C++ provides to develop software in the functional style. This in-depth guide is full of useful diagrams that help you understand FP concepts and begin to think functionally. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Well-written code is easier to test and reuse, simpler to parallelize, and less error prone. Mastering the functional style of programming can help you tackle the demands of modern apps and will lead to simpler expression of complex program logic, graceful error handling, and elegant concurrency. C++ supports FP with templates, lambdas, and other core language features, along with many parts of the STL. About the Book Functional Programming in C++ helps you unleash the functional side of your brain, as you gain a powerful new perspective on C++ coding. You'll discover dozens of examples, diagrams, and illustrations that break down the functional concepts you can apply in C++, including lazy evaluation, function objects and invokables, algebraic data types, and more. As you read, you'll match FP techniques with practical scenarios where they offer the most benefit. What's inside Writing safer code with no performance penalties Explicitly handling errors through the type system Extending C++ with new control structures Composing tasks with DSLs About the Reader Written for developers with two or more years of experience coding in C++. About the Author Ivan Čukić is a core developer at KDE and has been coding in C++ since 1998. He teaches modern C++ and functional programming at the Faculty of Mathematics at the University of Belgrade. Table of Contents Introduction to functional programming Getting started with functional programming Function objects Creating new functions from the old ones Purity: Avoiding mutable state Lazy evaluation Ranges Functional data structures Algebraic data types and pattern matching Monads Template metaprogramming Functional design for concurrent systems Testing and debugging

Real-World Functional Programming

Real-World Functional Programming
Author :
Publisher : Simon and Schuster
Total Pages : 989
Release :
ISBN-10 : 9781638353799
ISBN-13 : 1638353794
Rating : 4/5 (99 Downloads)

Synopsis Real-World Functional Programming by : Tomas Petricek

Functional programming languages like F#, Erlang, and Scala are attractingattention as an efficient way to handle the new requirements for programmingmulti-processor and high-availability applications. Microsoft's new F# is a truefunctional language and C# uses functional language features for LINQ andother recent advances. Real-World Functional Programming is a unique tutorial that explores thefunctional programming model through the F# and C# languages. The clearlypresented ideas and examples teach readers how functional programming differsfrom other approaches. It explains how ideas look in F#-a functionallanguage-as well as how they can be successfully used to solve programmingproblems in C#. Readers build on what they know about .NET and learn wherea functional approach makes the most sense and how to apply it effectively inthose cases. The reader should have a good working knowledge of C#. No prior exposure toF# or functional programming is required. Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.

Functional C

Functional C
Author :
Publisher : Addison Wesley Longman
Total Pages : 460
Release :
ISBN-10 : STANFORD:36105020691999
ISBN-13 :
Rating : 4/5 (99 Downloads)

Synopsis Functional C by : Pieter H. Hartel

Functional C teaches how to program in C, assuming that the student has already learnt how to formulate algorithms in a functional style. By using this as a starting point, the student will become a better C programmer, capable of writing programs that are easier to comprehend, maintain and that avoid common errors and pitfalls. All program code that appears in Functional C is available on our ftp server - see below. How to find a code fragment? To access a particular code fragment, use the book to locate the section or subsection in which the code fragment appears, then click on that section in the code index . This will open the appropriate page at the beginning of the section. The code fragment may then be selected using the copy/paste facilities of your browser. Each chapter is represented by a separate page, so as an alternative to the procedure above you can use the save-as menu of your browser to up-load all code fragments in a particular chapter at once. Also available on our ftp server is errata for Functional C.

Functional Programming in C#, Second Edition

Functional Programming in C#, Second Edition
Author :
Publisher : Simon and Schuster
Total Pages : 446
Release :
ISBN-10 : 9781617299827
ISBN-13 : 1617299820
Rating : 4/5 (27 Downloads)

Synopsis Functional Programming in C#, Second Edition by : Enrico Buonanno

Functional Programming in C#, Second Edition teaches functional thinking for real-world problems. It reviews the C# language features that allow you to program functionally and through many practical examples shows the power of function composition, data-driven programming, and immutable data structures. All code examples work with .NET 6 and C# 10.

Functional Programming in Scala

Functional Programming in Scala
Author :
Publisher : Simon and Schuster
Total Pages : 457
Release :
ISBN-10 : 9781638353959
ISBN-13 : 1638353956
Rating : 4/5 (59 Downloads)

Synopsis Functional Programming in Scala by : Paul Chiusano

Summary Functional Programming in Scala is a serious tutorial for programmers looking to learn FP and apply it to the everyday business of coding. The book guides readers from basic techniques to advanced topics in a logical, concise, and clear progression. In it, you'll find concrete examples and exercises that open up the world of functional programming. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Functional programming (FP) is a style of software development emphasizing functions that don't depend on program state. Functional code is easier to test and reuse, simpler to parallelize, and less prone to bugs than other code. Scala is an emerging JVM language that offers strong support for FP. Its familiar syntax and transparent interoperability with Java make Scala a great place to start learning FP. About the Book Functional Programming in Scala is a serious tutorial for programmers looking to learn FP and apply it to their everyday work. The book guides readers from basic techniques to advanced topics in a logical, concise, and clear progression. In it, you'll find concrete examples and exercises that open up the world of functional programming. This book assumes no prior experience with functional programming. Some prior exposure to Scala or Java is helpful. What's Inside Functional programming concepts The whys and hows of FP How to write multicore programs Exercises and checks for understanding About the Authors Paul Chiusano and Rúnar Bjarnason are recognized experts in functional programming with Scala and are core contributors to the Scalaz library. Table of Contents PART 1 INTRODUCTION TO FUNCTIONAL PROGRAMMING What is functional programming? Getting started with functional programming in Scala Functional data structures Handling errors without exceptions Strictness and laziness Purely functional state PART 2 FUNCTIONAL DESIGN AND COMBINATOR LIBRARIES Purely functional parallelism Property-based testing Parser combinators PART 3 COMMON STRUCTURES IN FUNCTIONAL DESIGN Monoids Monads Applicative and traversable functors PART 4 EFFECTS AND I/O External effects and I/O Local effects and mutable state Stream processing and incremental I/O

Thinking Functionally with Haskell

Thinking Functionally with Haskell
Author :
Publisher : Cambridge University Press
Total Pages : 357
Release :
ISBN-10 : 9781107087200
ISBN-13 : 1107087201
Rating : 4/5 (00 Downloads)

Synopsis Thinking Functionally with Haskell by : Richard Bird

This book introduces fundamental techniques for reasoning mathematically about functional programs. Ideal for a first- or second-year undergraduate course.

Learning C++ Functional Programming

Learning C++ Functional Programming
Author :
Publisher : Packt Publishing Ltd
Total Pages : 298
Release :
ISBN-10 : 9781787280588
ISBN-13 : 1787280586
Rating : 4/5 (88 Downloads)

Synopsis Learning C++ Functional Programming by : Wisnu Anggoro

Apply Functional Programming techniques to C++ to build highly modular, testable, and reusable code About This Book Modularize your applications and make them highly reusable and testable Get familiar with complex concepts such as metaprogramming, concurrency, and immutability A highly practical guide to building functional code in C++ filled with lots of examples and real-world use cases Who This Book Is For This book is for C++ developers comfortable with OOP who are interested in learning how to apply the functional paradigm to create robust and testable apps. What You Will Learn Get to know the difference between imperative and functional approaches See the use of first-class functions and pure functions in a functional style Discover various techniques to apply immutable state to avoid side effects Design a recursive algorithm effectively Create faster programs using lazy evaluation Structure code using design patterns to make the design process easier Use concurrency techniques to develop responsive software Learn how to use the C++ Standard Template Library and metaprogramming in a functional way to improve code optimization In Detail Functional programming allows developers to divide programs into smaller, reusable components that ease the creation, testing, and maintenance of software as a whole. Combined with the power of C++, you can develop robust and scalable applications that fulfill modern day software requirements. This book will help you discover all the C++ 17 features that can be applied to build software in a functional way. The book is divided into three modules—the first introduces the fundamentals of functional programming and how it is supported by modern C++. The second module explains how to efficiently implement C++ features such as pure functions and immutable states to build robust applications. The last module describes how to achieve concurrency and apply design patterns to enhance your application's performance. Here, you will also learn to optimize code using metaprogramming in a functional way. By the end of the book, you will be familiar with the functional approach of programming and will be able to use these techniques on a daily basis. Style and approach This book uses a module-based approach, where each module will cover important aspects of functional programming in C++ and will help you develop efficient and robust applications through gaining a practical understanding.

Learning Functional Programming

Learning Functional Programming
Author :
Publisher : "O'Reilly Media, Inc."
Total Pages : 166
Release :
ISBN-10 : 9781098111700
ISBN-13 : 1098111702
Rating : 4/5 (00 Downloads)

Synopsis Learning Functional Programming by : Jack Widman

Learn how to think and write code like a functional programmer. With this practical guide, software developers familiar with object-oriented programming will dive into the core concepts of functional programming and learn how to use both functional and OOP features together on large or complex software projects. Author Jack Widman uses samples from Java, Python, C#, Scala, and JavaScript to help you gain a new perspective and a set of tools for managing the complexity in your problem domain. You'll be able to write code that's simpler, reusable, easier to test and modify, and more consistently correct. This book also shows you how to use patterns from category theory to help bridge the gap between OOP and functional programming. Learn functional programming fundamentals and explore the way functional programmers approach problems Understand how FP differs from object-oriented and imperative programming Use a set of practical, applicable design patterns that model reality in a functional way Learn how to incorporate FP and OOP features into software projects Apply functional design patterns appropriately and use them to write correct, robust, and easily modifiable code

Functional Programming with C#

Functional Programming with C#
Author :
Publisher : Packt Publishing Ltd
Total Pages : 258
Release :
ISBN-10 : 9781805128939
ISBN-13 : 1805128930
Rating : 4/5 (39 Downloads)

Synopsis Functional Programming with C# by : Alex Yagur

Explore functional programming in C# with the help of clear explanations, practical examples, and hands-on exercises and write efficient, modular, and readable code Key Features Master functional programming in C# for expressive, modular code Apply advanced concepts such as error handling and asynchronous programming to overcome real-world challenges Gain practical coding skills through practical application and self-assessment questions Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionIn an era where software complexity is increasing by the day, functional programming offers a paradigm that simplifies code maintenance and enhances reliability. Functional Programming with C# takes you on an exhaustive journey into functional programming within C#. The book familiarizes you with the core principles and benefits of functional programming, juxtaposing it with imperative and object-oriented paradigms. You’ll get to grips with the functional features of C# and learn to write expressive, modular code through expressions, pure functions, and higher-order functions. As you advance, you’ll explore advanced concepts such as error handling and asynchronous programming, which will equip you with the practical skills that you need to tackle real-world challenges. By comparing functional programming in C# with other languages and providing additional resources, this book ensures that you’re well-equipped to continue your journey toward mastery in functional programming. By the end of this book, you’ll have gained a thorough understanding of functional programming techniques, such as recursion, memoization, and composition, empowering you to write robust, maintainable code.What you will learn Understand the core principles of functional programming Differentiate functional, imperative, and OOP paradigms Write expressive code with higher-order functions Handle errors effectively using functional techniques Utilize asynchronous programming for concurrent tasks Grasp advanced concepts, such as recursion and memoization Who this book is for This book is for intermediate-to-advanced C# developers looking to expand their programming paradigm horizons. Software engineers, developers, and programmers familiar with C# and object-oriented programming who want to delve deeper into functional programming concepts will find this book very useful. This book is ideal for professionals aiming to enhance code modularity, readability, and scalability. While prior knowledge of C# is necessary, beginners with a strong grasp of programming fundamentals can also benefit from the clear explanations and practical exercises provided.