Functional Programming Ideas for the Curious Kotliner

Автор: literator от 26-02-2023, 01:28, Коментариев: 0

Категория: КНИГИ » ПРОГРАММИРОВАНИЕ

Functional Programming Ideas for the Curious KotlinerНазвание: Functional Programming Ideas for the Curious Kotliner
Автор: Alejandro Serrano Mena
Издательство: Leanpub
Год: 2023-01-05
Страниц: 186
Язык: английский
Формат: pdf (true)
Размер: 10.2 MB

Functional programming and Kotlin make such a great couple! In this book we explore ideas from the former that will definitely change the way you look and code in Kotlin.

Kotlin lies in a really interesting intersection of programming styles, with functional programming becoming increasingly popular. Functional style is by no means new, so why not take advantage of the decades of ideas, concepts, and patterns from that community? In this book we explore those ideas with a higher impact on Kotlin code, including how to model data in immutable fashion, describing dependencies using contexts and effects, or treating actions as data.

Welcome, dear reader! As a developer, beginner or experienced, you may have heard about Functional Programming (FP), and how either…
• it makes your code auto-magically better (and maybe saves a cat on its way home), or
• it’s impossible to understand (or should I even say “decipher”?), and only for those with 10 PhDs in abstract categorical programming.

As usual, truth lies in the middle. One of the main goals of FP is to be declarative – roughly, focusing on “what to achieve” rather than “how to achieve” – and this tends to produce code which is shorter and more understandable. Familiarity with functional idioms is a plus when working on such codebases, but the main concepts are easily grasped by developers. Think of the map function which applies a function to each element in a list, often considered a prime example of functional style. Yet Kotliners use it in a daily basis, many without even knowing they are doing FP!

Functional programming is considered one of the four “main” programming paradigms, alongside imperative, object-oriented, and logic programming. The time of purity in programming languages is long time gone now, and it’s pretty common to see languages that mix the best of several paradigms. Kotlin is no exception, taking the good parts from Java – its main predecessor –, adding a bit of functional salt, and a bit of its own pepper. In fact, this book exists because Kotlin is a great vehicle for functional idioms.

Скачать Functional Programming Ideas for the Curious Kotliner




ОТСУТСТВУЕТ ССЫЛКА/ НЕ РАБОЧАЯ ССЫЛКА ЕСТЬ РЕШЕНИЕ, ПИШИМ СЮДА!


Нашел ошибку? Есть жалоба? Жми!
Пожаловаться администрации
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.