- Mastering Android Development with Kotlin
- Milo? Vasi?
- 244字
- 2021-07-02 15:20:51
Why Kotlin?
Before we start our journey, we will answer the question from the chapter title--Why Kotlin? Kotlin is a new programming language developed by JetBrains, the company that developed IntelliJ IDEA. Kotlin is concise and understandable, and it compiles everything to bytecode just like Java. It can also compile to JavaScript or native!
Kotlin comes from professionals of the industry and solves problems programmers are facing every day. It is easy to start and adopt! IntelliJ comes with a Java to Kotlin converter tool. You can convert Java code file by file and everything will still work flawlessly.
It is interoperable and can use any existing Java Framework or library. The interoperability is impeccable and does not require wrappers or adapter layers. Kotlin supports build systems such as Gradle, Maven, Kobalt, Ant, and Griffon with external support.
The most important thing about Kotlin, for us, is that it works perfectly with Android.
Some of the most impressive Kotlin features are as follows:
- Null safety
- Exceptions are unchecked
- Type inference works everywhere
- One-liner functions take one line
- Generated getters and setter out of the box
- We can define functions outside of classes
- Data classes
- Functional programming support
- Extension functions
- Kotlin uses Markdown instead of HTML for API documents! The Dokka tool, a Javadoc alternative, can read Kotlin and Java source code and generate combined docs
- Kotlin has a better generics support than Java
- Reliable and performant concurrent programming
- String patterns
- Named method arguments
- 微服務與事件驅動架構
- Visual Basic 6.0程序設計計算機組裝與維修
- Oracle從新手到高手
- Visual Basic編程:從基礎到實踐(第2版)
- JavaScript Unlocked
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- Mastering Drupal 8 Views
- 軟件項目管理實用教程
- Apache Camel Developer's Cookbook
- Orchestrating Docker
- Apache Solr PHP Integration
- 深入淺出 HTTPS:從原理到實戰
- 高質量程序設計指南:C++/C語言
- 打造流暢的Android App
- Advanced C++