Kotlin for Android Developers


II. Is this book for you?



tải về 1.04 Mb.
Chế độ xem pdf
trang8/79
Chuyển đổi dữ liệu01.11.2023
Kích1.04 Mb.
#55505
1   ...   4   5   6   7   8   9   10   11   ...   79
kotlin-for-android-developers-Ve2A1vRFHnmqGFAn

II. Is this book for you?
This book was written to be useful to Android developers who are interested in learning Kotlin
language.
This book is for you if you are in some of the following situations:
• You have some basic knowledge about Android Development and the Android SDK.
• You want to learn how to develop Android apps using Kotlin by following an example.
• You need a guide on how to solve many of the common challenges an Android developer finds
every day, by using a cleaner and more expressive language.
On the other hand, this book may not be for you. This is what you won’t find in it:
• This is not a Kotlin Bible. I’ll explain all language basics, and even more complex ideas when
they come out during the process, just when we need them. So you will learn by example and
not the other way round.
• I will not explain how to develop an Android app. You won’t need a deep knowledge of the
platform, but you will need some basics, such as some knowledge of Android Studio, Gradle,
Java programming and Android SDK. You may even learn some new Android things in the
process!
• This is not a guide to learn functional programming. Of course, I’ll explain what you need, as
Java 7 is not functional at all, but I won’t dive deep in functional topics.
2


III. About the author
Antonio Leiva is an Android Engineer who spends time learning about new ways to get the most
out of Android and then writes about it. He writes a blog at
antonioleiva.com¹
about many different
topics related to Android development.
Antonio started as a consultant in CRM technologies, but after some time, looking for his real
passion, he discovered the Android world. After getting some experience on such an awesome
platform, he started a new adventure at a mobile company, where he led several projects for
important Spanish companies.
He now works as an Android Engineer at
Plex²
, where he also plays an important role in the design
and UX of the Android applications.
You can find Antonio on Twitter as
@lime_cl³
or Google+ as
+AntonioLeivaGordillo⁴
.
¹
http://antonioleiva.com
²
http://plex.tv
³
https://twitter.com/lime_cl

http://plus.google.com/+AntonioLeivaGordillo‘
3


1 Introduction
You’ve decided that Java 7 is obsolete and you deserve a more modern language. Congratulations!
As you may know, even with Java 8 out there, which includes many of the improvements we
would expect from a modern language, we Android developers are still obliged to use Java 7. This is
part because of legal issues. But even without this limitation, if new Android devices today started
shipping a virtual machine able to run Java 8, we could’t start using it until current Android devices
are so obsolete that almost nobody uses them. So I’m afraid we won’t see this moment soon.
But not everything is lost. Thanks to the use of the Java Virtual Machine (JVM), we can write Android
apps using any language that can be compiled to generate bytecode, which JVM is able to understand.
As you can imagine, there are a lot of options out there, such as Groovy, Scala, Clojure and, of course,
Kotlin. In practice, only some of them can be considered real alternatives.
There are pros and cons on any of these languages, and I suggest you to take a look to some of them
if you are not really sure which language you should use.

tải về 1.04 Mb.

Chia sẻ với bạn bè của bạn:
1   ...   4   5   6   7   8   9   10   11   ...   79




Cơ sở dữ liệu được bảo vệ bởi bản quyền ©hocday.com 2024
được sử dụng cho việc quản lý

    Quê hương