Swift Functional Programming PDF

Swift Functional Programming PDF

Name:
Swift Functional Programming PDF

Published Date:
04/26/2017

Status:
[ Active ]

Description:

Publisher:
PACKT - Packt Publishing, Inc.

Document status:
Active

Format:
Electronic (PDF)

Delivery time:
10 minutes

Delivery time (for Russian version):
200 business days

SKU:

Choose Document Language:
$12
Need Help?
ISBN: 9781787284500

Bring the power of functional programming to Swift to develop clean, smart, scalable and reliable applications.

About This Book

• Written for the latest version of Swift, this is a comprehensive guide that introduces iOS, Web and macOS developers to the all-new world of functional programming that has so far been alien to them

• Get familiar with using functional programming alongside existing OOP techniques so you can get the best of both worlds and develop clean, robust, and scalable code

• Develop a case study on example backend API with Swift and Vapor Framework and an iOS application with Functional Programming, Protocol-Oriented Programming, Functional Reactive Programming, and Object-Oriented Programming techniques

Who This Book Is For

Meant for a reader who knows object-oriented programming, has some experience with Objective-C/Swift programming languages and wants to further enhance his skills with functional programming techniques with Swift 3.x.

What You Will Learn

• Understand what functional programming is and why it matters

• Understand custom operators, function composition, currying, recursion, and memoization

• Explore algebraic data types, pattern matching, generics, associated type protocols, and type erasure

• Get acquainted with higher-kinded types and higher-order functions using practical examples

• Get familiar with functional and non-functional ways to deal with optionals

• Make use of functional data structures such as semigroup, monoid, binary search tree, linked list, stack, and lazy list

• Understand the importance of immutability, copy constructors, and lenses

• Develop a backend API with Vapor

• Create an iOS app by combining FP, OOP, FRP, and POP paradigms

In Detail

Swift is a multi-paradigm programming language enabling you to tackle different problems in various ways. Understanding each paradigm and knowing when and how to utilize and combine them can lead to a better code base. Functional programming (FP) is an important paradigm that empowers us with declarative development and makes applications more suitable for testing, as well as performant and elegant. This book aims to simplify the FP paradigms, making them easily understandable and usable, by showing you how to solve many of your day-to-day development problems using Swift FP.

It starts with the basics of FP, and you will go through all the core concepts of Swift and the building blocks of FP. You will also go through important aspects, such as function composition and currying, custom operator definition, monads, functors, applicative functors,memoization, lenses, algebraic data types, type erasure, functional data structures, functional reactive programming (FRP), and protocol-oriented programming(POP). You will then learn to combine those techniques to develop a fully functional iOS application from scratch

Style and approach

An easy-to-follow guide that is full of hands-on coding examples of real-world applications. Each topic is explained sequentially and placed in context, and for the more inquisitive, there are more details of the concepts used. It introduces the Swift language basics and functional programming techniques in simple, non-mathematical vocabulary with examples in Swift.


Edition : 2
File Size : 1 file , 2.5 MB
Number of Pages : 308
Published : 04/26/2017
isbn : 9781787284500

History


Related products

Java for Data Science
Published Date: 01/10/2017
$13.2
Spring Boot and Angular
Published Date: 12/16/2022
$12
Moodle Administration Essentials
Published Date: 07/23/2015
$7.8

Best-Selling Products

CAN/CSA-ISO/IEC ISP 10608-1-99 (R2003)
Published Date: 02/22/2000
Information Technology - International Standardized Profile TAnnnn - Connection-Mode Transport Service Over Connectionless- Mode Network Service - Part 1: General Overview and Subnetwork- Independent Requirements (Adopted ISO/IEC 10608-1:1992, first edition)
$21.9
CAN/CSA-ISO/IEC ISP 10608-12-99 (2003)
Published Date: 02/18/2000
Information Technology - International Standardized Profile TAnnnn - Connection-Mode Transport Service Over Connectionless- Mode Network Service - Part 12: MAC Sublayer and Physical Layer Dependent Requirements for a CSMA/CD LAN Subnetwork (Adopted ISO/IEC ISP 10608-12:1996)
$15.9
CAN/CSA-ISO/IEC ISP 10608-13-01
Published Date: 03/12/2001
Information Technology - International Standardized Profile TAnnnn - Connection-Mode Transport Service Over Connectionless-Mode Network Service - Part 13: MAC Sublayer and Physical Layer Dependent Requirements for a Token Ring LAN Subnetwork (Adopted ISO/IEC ISP 10608-13:1994, first edition, 1994-0
$15.9
CAN/CSA-ISO/IEC ISP 10608-14-99 (R2003)
Published Date: 02/19/2000
Information Technology - International Standardized Profile TAnnnn - Connection-Mode Transport Service Over Connectionless- Mode Network Service - Part 14: MAC, PHY and PMD Sublayer Dependent and Station Management Requirements Over an FDDI LAN Subnetwork (Adopted ISO/IEC ISP 10608-14:1995)
$27
CAN/CSA-ISO/IEC ISP 10608-2-99 (R2003)
Published Date: 02/19/2000
Information Technology - International Standardized Profile TAnnnn - Connection-Mode Transport Service Over Connectionless- Mode Network Service - Part 2: TA51 Profile Including Subnetwork Dependent Requirements for CSMA/CD Local Area Networks (LANs) (Adopted ISO/IEC ISP 10608-2:1992)
$15.9
CAN/CSA-ISO/IEC ISP 10608-4-99 (R2003)
Published Date: 02/18/2000
Information Technology - International Standardized Profile TAnnnn - Connection-Mode Transport Service Over Connectionless- Mode Network Service - Part 4: Definition of Profile TA53, Operation Over a Token Ring LAN Subnetwork (Adopted ISO/IEC ISP 10608-4:1994, first edition)
$14.1