Ben Chuanlong Du's Blog

It is never too late to learn.

Install Kotlin

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Ubuntu

Unfortunately, there is no apt-get installation (even no Ubuntu PPA) for Kotlin at this time. There are basically 3 options to install Kotlin on Ubuntu.

  1. Install manually.
  2. Use snap app …

Gradle Kotlin DSL

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

AVOID using the Kotlin DSL for Gradle! The Kotlin DSL for Gradle is not mature and lack of documentation at this time. Stick with Groovy DSL for Gradle.

shadowJar

https://github …

Python Virtual Environment

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. venv is a standard Python library and is the recommended way for managing virtual environments in Python3.

  2. When developing a Python project, it is recommended that you use Poetry to manage …

Dataframe for JVM

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Spark DataFrame

Spark DataFrame is a great implementation of distributed DataFrame, if you don't mind having dependency on Spark. It can be used in a non-distributed way of course. Spark DataFrame …

Exceptions in Java

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. You can suppress warnings of unchecked exceptions by using

    SuppressWarnings("unchecked")
    

    but generally speaking, you cannot suppress warnings of checked exceptions.

  2. You can use more than one catch blocks if necessary …