Android Application Development All-in-One For Dummies, 3rd Edition
by Barry Burd, John Paul Mueller
Chapter 6
Functional Programming in Kotlin
IN THIS CHAPTER
Defining and understanding functional programming
Considering the requirements of functional programming
Performing essential tasks in functional programming
Using functional programming for Android development
Early Android applications relied entirely on Java to perform tasks. However, Google has now embraced Kotlin as the right language to use for Android development, and with good reason — it’s often easier than Java. Throughout this book, we compare Kotlin with Java using a mix of examples to show you that Kotlin does make things easier in most cases. You can still use Java, of course, but the one thing about Kotlin that Java can’t replicate is functional programming.
This chapter isn’t about a specific programming language (even though it uses Kotlin to present examples). Instead, it’s about a programming paradigm (which, in this case, is functional programming). A paradigm is a framework that expresses a particular set of assumptions, relies on particular ways of thinking through problems, and uses particular methodologies ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access