Höre jetzt 3 Monate lang mit 30 % Rabatt!

Profitieren Sie jetzt von der Winteraktion: Storytel -30%

  • Mehr als 600.000 Hörbücher und E-Book
  • Jederzeit kündbar
  • Exklusive Titel und Originals
  • komfortabler Kinder-Modus
Angebot jetzt aktivieren
se-device-image-1200x1200
Cover for Swift 3 Functional Programming

Swift 3 Functional Programming

Sprachen
Englisch
Format
Kategorie

Sachbuch

Bring the power of Swift functional programming to iOS, Web, macOS, watchOS and tvOS application development and build clean, smart, scalable and reliable applications

About This Book

• Written for Swift 3 -Developers Preview version, this is a comprehensive guide that introduces iOS and OS X developers to the all-new world of functional programming that has so far been alien to them

• Learn about first-class functions and how imperative-style patterns can be converted into functional code using some simple techniques

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

Who This Book Is For

The book is for developers with a basic knowledge of Swift programming aiming to incorporate functional programming paradigms in their day-to-day application development

What You Will Learn • First-class, higher-order, and pure functions

• Closures and capturing values

• Custom operators, recursion, and memoization

• Value and reference types in Swift

• Enumerations, algebraic data types, patterns, and pattern matching

• Generics and associated type protocols

• Higher-order functions such as map, flatMap filter, and reduce

• Dealing with optionals, fmap, and apply for multiple functional mapping

• Functional data structures such as Semigroup, Monoid, Binary Search Tree, Linked List, Stack, and Lazy List

• Immutability, copy constructors, and lenses

• Combining FP paradigms with OOP, FRP, and POP in your day-to-day development activities

• Developing a backend application with Swift

• Developing an iOS application with FP, OOP, FRP, and POP paradigms

In Detail

This book is based on Swift 3 Developer preview version and aims at simplifying the functional programming (FP) paradigms making it easily usable, by showing you how to solve many of your day-to-day development problems.

Whether you are new to functional programming and Swift or experienced, this book will strengthen the skills you need to design and develop high-quality, scalable, and efficient applications.

The book starts with functional programming concepts, the basics of Swift 3, and essential concepts such as functions, closures, optionals, enumerations, immutability, and generics in detail with coding examples.

Furthermore, this book introduces more advanced topics such as function composition, monads, functors, applicative functors, memoization, lenses, algebraic data types, functional data structures, functional reactive programming (FRP), protocol-oriented programming (POP) and mixing object-oriented programming (OOP) with functional programming (FP) paradigms.

Finally, this book provides a working code example of a front-end application developed with these techniques and its corresponding back-end application developed with Swift.

Style and approach

This is an easy-to-follow guide 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.

© 2016 Packt Publishing (E-Book): 9781785881619

Erscheinungsdatum

E-Book: 30. Juni 2016

Wähle dein Abo-Modell

  • Über 600.000 Titel

  • Lade Titel herunter mit dem Offline Modus

  • Exklusive Titel und Storytel Originals

  • Sicher für Kinder (Kindermodus)

  • Einfach jederzeit kündbar

Basic

Für alle, die gelegentlich hören und lesen.

7.90 € /Monat

7 Tage kostenlos
-30 % für 3 Monate
  • Jederzeit kündbar

  • Abo-Upgrade jederzeit möglich

Angebot jetzt aktivieren
Am beliebtesten!

Unlimited

Für alle, die unbegrenzt hören und lesen möchten.

18.90 € /Monat

7 Tage kostenlos
  • Jederzeit kündbar

  • Wechsel zu Basic jederzeit möglich

Angebot jetzt aktivieren

Anderen gefällt...

  1. Fourth Wing – Flammengeküsst (Flammengeküsst-Reihe 1)
    Fourth Wing – Flammengeküsst (Flammengeküsst-Reihe 1) Rebecca Yarros
    4.7
  2. Iron Flame – Flammengeküsst (Flammengeküsst-Reihe 2): Die heißersehnte Fortsetzung des Fantasy-Erfolgs »Fourth Wing«
    Iron Flame – Flammengeküsst (Flammengeküsst-Reihe 2): Die heißersehnte Fortsetzung des Fantasy-Erfolgs »Fourth Wing« Rebecca Yarros
    4.7
  3. Rubinrot - Liebe geht durch alle Zeiten - Liebe geht durch alle Zeiten. Die Edelstein-Trilogie, Band 1 (Ungekürzte Lesung)
    Rubinrot - Liebe geht durch alle Zeiten - Liebe geht durch alle Zeiten. Die Edelstein-Trilogie, Band 1 (Ungekürzte Lesung) Kerstin Gier
    4.6
  4. Onyx Storm – Flammengeküsst (Flammengeküsst-Reihe 3): Die heißersehnte Fortsetzung von »Fourth Wing« und »Iron Flame«
    Onyx Storm – Flammengeküsst (Flammengeküsst-Reihe 3): Die heißersehnte Fortsetzung von »Fourth Wing« und »Iron Flame« Rebecca Yarros
    4.3
  5. Not Quite Dead Yet (Ungekürzt)
    Not Quite Dead Yet (Ungekürzt) Holly Jackson
    4.5
  6. Boys of Tommen 5: Taming 7: Die BookTok-Sensation endlich auf Deutsch
    Boys of Tommen 5: Taming 7: Die BookTok-Sensation endlich auf Deutsch Chloe Walsh
    4.8
  7. The Paradise Problem – Wenn das Herz den perfekten Plan durchkreuzt: Nach »The Unhoneymooners« endlich die neue paradiesisch prickelnde RomCom der SPIEGEL-Bestsellerautorin
    The Paradise Problem – Wenn das Herz den perfekten Plan durchkreuzt: Nach »The Unhoneymooners« endlich die neue paradiesisch prickelnde RomCom der SPIEGEL-Bestsellerautorin Christina Lauren
    4.4
  8. The Pumpkin Spice Latte Disaster (Lower Whilby 1): In dieser cosy RomCom treffen Stars Hollow-Vibes auf die Enemies to lover-Trope
    The Pumpkin Spice Latte Disaster (Lower Whilby 1): In dieser cosy RomCom treffen Stars Hollow-Vibes auf die Enemies to lover-Trope Kyra Groh
    4.4
  9. Silent Lies: Der Serbe
    Silent Lies: Der Serbe Neva Altaj
    4.8
  10. Alchemised: Das internationale Phänomen – jetzt auch als Hörbuch
    Alchemised: Das internationale Phänomen – jetzt auch als Hörbuch SenLinYu
    4.3
  11. Just for the Summer
    Just for the Summer Abby Jimenez
    4.5
  12. The Wrong Bride - The Windsors, Teil 1 (Ungekürzt)
    The Wrong Bride - The Windsors, Teil 1 (Ungekürzt) Catharina Maura
    4.3
  13. "Mama, bitte lern Deutsch" - Unser Eingliederungsversuch in eine geschlossene Gesellschaft (Ungekürzte Autorenlesung)
    "Mama, bitte lern Deutsch" - Unser Eingliederungsversuch in eine geschlossene Gesellschaft (Ungekürzte Autorenlesung) Tahsim Durgun
    4.8
  14. Knightsbridge United: Offsided | Britischer Fußball trifft auf High Society | Fake Dating-Sports Romance | Für Fans von Elle Kennedy und Hannah Grace | Starke Protagonistin
    Knightsbridge United: Offsided | Britischer Fußball trifft auf High Society | Fake Dating-Sports Romance | Für Fans von Elle Kennedy und Hannah Grace | Starke Protagonistin Marina Neumeier
    4.5
  15. 22 Bahnen: Lieblingsbuch des unabhängigen Buchhandels 2023
    22 Bahnen: Lieblingsbuch des unabhängigen Buchhandels 2023 Caroline Wahl
    4.1