Hi, I have worked with statically typed languages ...
# gradle
a
Hi, I have worked with statically typed languages before, but have no prior Java / JVM experience. Therefore the hardest part in learning Kotlin for me is actually the Gradle build system, which (IMO) requires extensive JVM knowledge to understand it. Are there any Gradle Kotlin DSL (
.gradle.kts
build files) tutorials available that do not require such a Java / JVM background? I am exploring Kotlin mainly for Data Science purposes.
c
you'll need basic understanding of gradle, there is no way around it. You may get away with maven in Java world, but kotlin support for maven is a bit shaky at the moment. Especially if you're interested in scripting (which from my understanding is frequently needed in data field). I suggest reading at least getting started guide: https://docs.gradle.org/current/userguide/getting_started.html Plus there are some good to know links from that portion of documentation. Also check out Gradle primer (available for both groovy and kotlin dsl APIs), there are links from the Getting Started guide. Overall gradle official reference documentation is quite comprehensive. Regarding samples, head to github, there are a lot of examples available, both official - in gradle repository, - and from broader community. Also there are some useful videos on JetbrainsTV youtube channel, including data-science stuff. Also there are these relevant channels in this slack: #science, #datascience, #scripting, #gradle There may be more, look through the list, I'm only putting the ones I remember of the top of my head. GL/HF as gamers put it 🙂
c
If you’re mainly looking for Kotlin as a scripting language, you might try using kscript instead of Gradle for running your scripts https://github.com/holgerbrandl/kscript
2
The JetBrains team also developed a Kotlin kernel for Jupyter Notebook https://github.com/Kotlin/kotlin-jupyter
3
a
Thanks for all the hints, I will look into these. Concerning kscript and the Jupyter-Kernel, I have both already installed and am trying them out. Thanks again for the quick help. Now off to some reading...
👍 1