spbu_kotlin_course 2021.2Kotlin实战模板

Kotlin 项目起步的利器是 spbu_kotlin_course。圣彼得堡国立大学搞的这套模板项目,起码从结构上看,挺靠谱的,适合刚上手 Kotlin 或者想快速开项目的你。

spbu_kotlin_course 的kotlin_template用起来蛮省心,目录清爽,基础配置也比较全。你不用自己慢慢配 Gradle、建项目结构,直接 clone 下来就能跑,响应也快,挺适合练手的。

里面的 Kotlin 用法比较“正宗”:空安全数据类lambda协程这些都有用上,讲究的是写得少但功能全。比如 null 值时,?.操作符能帮你少踩坑,写起来也顺手。

课程本身偏实战风,讲了不少 Kotlin 的套路。像扩展函数顶级属性这种不太好理解的点,也给你配了例子。你看代码就能明白,比看文档轻松多了。

要是你对协程感兴趣,这套模板也用到了,适合上手写点异步求,比如模拟网络加载、IO 操作啥的。协程launchasync用法也挺清楚。

另外,项目模板不是死板的,还能跟其他框架结合。比如你想做个 Web 项目,可以参考Kotlin Vaadin,想写服务也可以用Kotlin 服务模板

吧,如果你刚入门 Kotlin、想找个顺手的项目结构练练手,spbu_kotlin_course还蛮推荐的。记得用最新版 IDEA 打开,支持 Kotlin 的各种特性,跑起来没压力。

zip
spbu_kotlin_course-master.zip 预估大小:39个文件
folder
spbu_kotlin_course-master 文件夹
file
gradlew.bat 3KB
file
gradlew 6KB
folder
config 文件夹
folder
detekt 文件夹
file
detekt.yml 82B
file
gradle.properties 27B
folder
.github 文件夹
folder
workflows 文件夹
file
main.yml 623B
file
LICENSE 11KB
folder
gradle 文件夹
folder
wrapper 文件夹
file
gradle-wrapper.jar 58KB
file
gradle-wrapper.properties 200B
folder
src 文件夹
folder
test 文件夹
folder
kotlin 文件夹
folder
action 文件夹
file
ActionsTest.kt 2KB
file
CommandStorageTest.kt 1KB
folder
homework3 文件夹
file
YamlDeserializationTest.kt 1KB
file
GeneralTest.kt 1KB
file
TestGeneratorTest.kt 1KB
folder
test1 文件夹
file
PriorityQueueTest.kt 1KB
folder
resources 文件夹
folder
action 文件夹
file
ActionList.json 151B
folder
homework3 文件夹
file
GeneratorTest2.kt 127B
file
GeneratorTest1.kt 173B
file
ConfigTest2.yaml 87B
file
ConfigTest1.yaml 122B
folder
generalTest 文件夹
folder
test2 文件夹
file
config.yaml 106B
file
expected.kt 168B
folder
test1 文件夹
file
config.yaml 101B
file
expected.kt 152B
folder
main 文件夹
folder
kotlin 文件夹
file
main.kt 43B
folder
action 文件夹
file
Actions.kt 3KB
file
CommandStorage.kt 2KB
folder
homework3 文件夹
file
TestGenerator.kt 1KB
file
YamlDeserialization.kt 990B
file
demoTask.kt 323B
folder
homework2 文件夹
file
task_2.kt 914B
folder
homework1 文件夹
file
task_3.kt 1KB
file
task_2.kt 643B
folder
test1 文件夹
file
PriorityQueue.kt 1005B
folder
resources 文件夹
folder
homework3 文件夹
file
Config.yaml 122B
folder
homework1 文件夹
folder
ActionList.json 文件夹
file
.gitignore 23B
file
settings.gradle.kts 131B
file
build.gradle.kts 2KB
file
README.md 57B
zip 文件大小:81.21KB