- 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
- Unity 2020 By Example
- SoapUI Cookbook
- JavaScript語(yǔ)言精髓與編程實(shí)踐(第3版)
- C語(yǔ)言程序設(shè)計(jì)實(shí)訓(xùn)教程
- 跟小海龜學(xué)Python
- Linux環(huán)境編程:從應(yīng)用到內(nèi)核
- Mastering Rust
- 零基礎(chǔ)學(xué)Python網(wǎng)絡(luò)爬蟲(chóng)案例實(shí)戰(zhàn)全流程詳解(高級(jí)進(jìn)階篇)
- 小學(xué)生C++創(chuàng)意編程(視頻教學(xué)版)
- Hands-On Full Stack Development with Spring Boot 2.0 and React
- Visual Basic程序設(shè)計(jì)(第三版)
- Visual FoxPro 6.0程序設(shè)計(jì)
- Web編程基礎(chǔ):HTML5、CSS3、JavaScript(第2版)
- 大學(xué)計(jì)算機(jī)應(yīng)用基礎(chǔ)(Windows 7+Office 2010)(IC3)
- Modular Programming with JavaScript