课程大纲
介绍
- 为什么 Kotlin 是更好的 Java
设置工具
- 使用命令行工具
- 安装 Kotlin 的 JDK
- 安装和设置 IDE:IntelliJ
- 安装插件
Basic Kotlin 入门 Programming
- 学习 Kotlin 架构
- 在 Kotlin 中创建变量
- 了解 Kotlin 中的不同数据类型
- 在 Kotlin 中使用字符串
- 理解 Kotlin 中的不可变性
- 实现表达式、语句和赋值
- 在 Kotlin 中使用可为 null 的变量以确保 null 安全
- 使用“if”语句处理条件程序流
- 使用“when”语句处理选项
- 探索 Kotlin 的条件语句高级功能
- 在 Kotlin 中使用数组和列表
- 在 Kotlin 中实现循环构造
- 在 Kotlin 中创建、声明和使用函数
- 使用参数并返回值
- 使用扩展函数
- 使用内联函数
- 使用高阶函数
使用 Kotlin 的面向对象 Programming
- 使用对象进行编程概述
- 创建类
- 向类添加方法
- 定义基本构造函数
- 使用命名参数和默认值
- 使用开放类允许继承
- 使用抽象类
- 创建和使用接口
- 处理覆盖
- 创建数据类
- 使用单例和伴随对象
- 使用枚举
- 将类分组到包中
- 使用导入
- 实现信息隐藏
- 使用 getter 和 setter
- 实现可见性修饰符
- 了解泛型
- 实现通用堆栈
- 使用泛型函数
探索 Kotlin 与 Java 的互通性
- 使用 Kotlin 中的 Java
- 使用 Java 中的 Kotlin
探索 Kotlin 的高级功能
- 了解运算符重载
- 使用批注
- 使用反射
- 实现 DSL 构造
- 实现解构
将 Kotlin 用于功能 Programming
动手实践:将 Android 应用程序从 Java 转换为 Kotlin
- 使用 Android Studio
- 使用 Kotlin 开始一个新项目
- 将现有 Java 代码转换为 Kotlin
- 将 Android API 与 Kotlin 配合使用
故障 排除
总结和结论
要求
- Java 编程经验
- 有Android开发的基本经验或熟悉
观众
- 对 Kotlin 感兴趣的 Android 开发者
- 对 Kotlin 感兴趣的 Java 程序员
客户评论 (3)
Alex is a very friendly, personable guy. He made everyone feel comfortable working through together and volunteering to give slutions.
Kai Bergman - Red Embedded Consulting Sp. z o.o.
课程 - Kotlin for Beginners
It was concise, well organised, had nice balance of tasks and lectures and everything was on point.
Alexander Illarionov - C.T.Co SIA
课程 - Advanced Kotlin Programming
Great content, excellent exercises. Covered a lot of information. Friendly to new Kotlin programmers but also a lot to still learn for those of us already using Kotlin. Highly recommend this course. The pace of the course was perfect, not too slow, not too fast. Alternating between instruction and exercises helped cement the knowledge from each section.