How lsb530/boki-kotlin-practice works
Project Type & Purpose
• Type: Multi-module educational code repository
• Purpose: Provide Kotlin (and Java) practice exercises at Basic and Expert levels, plus coroutine tutorials and JMH benchmarks.
High-Level Components
– Gradle Wrapper & Configuration
• gradlew, gradlew.bat, gradle/wrapper, build.gradle.kts, settings.gradle.kts, gradle.properties
– Sub-modules:
1. jmh-benchmark module
2. main source module
• Java exercises (src/main/java)
• Kotlin exercises (src/main/kotlin)
3. test module (src/test/kotlin)
Break Down the Main Module
A. Java Basic & Expert
– Path: src/main/java
– Packages: basic/lec01…lec17, expert/c_function
B. Kotlin Basic
– Path: src/main/kotlin/basic
– Packages: a_variable_and_type_operator, b_code_control, c_oop, d_fp, e_etc_and_scope
C. Kotlin Coroutine
– Path: src/main/kotlin/coroutine
– Packages: basic, builder, cancel, context, continuation, ex, scope, spread, suspend, util
D. Kotlin Expert
– Path: src/main/kotlin/expert
– Packages: a_generic, b_delegate, c_function, d_dsl, e_reflection, f_extra
Dependencies & Interactions
• The “test module” depends on the “main source module” (to run unit tests on expert delegates).
• There is no runtime interaction between Java and Kotlin code here—they coexist under the same JVM classpath but are separate exercise groups.
Architectural Patterns & Principles
– Multi-module Gradle structure (separation of concerns).
– Layering by skill level: Basic → Expert → Coroutine.
– Code organization by topic/lecture.
– Benchmarking layer (JMH) orthogonal to exercise code.
Essential Elements
– Clear labels for:
• Gradle wrapper/config
• jmh-benchmark module
• main/java exercises
• main/kotlin exercises (basic, coroutine, expert)
• test module