Ben Chuanlong Du's Blog

It is never too late to learn.

Use SnakeYaml in Scala

SnakeYAML

moultingyaml: Scala wrapper for SnakeYAML

Comment

If the input YAML doc has multiple formats, you can first load it as an Object and then use Object.isInstanceOf to check its type and use Object.asInstanceOf[SomeType] to cast it to the right type.

Java Reflection

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

https://www.oracle.com/technetwork/articles/java/javareflection-1536171.html

https://stackoverflow.com/questions/37628/what-is-reflection-and-why-is-it-useful

Install Java 8 in Mac

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

OpenJDK 8 can be installed on Mac using the following commands.

    :::python3
    brew tap AdoptOpenJDK/openjdk
    brew cask install adoptopenjdk8

Other versions are also available. For more details, please refer to …

GUI Frameworks for Java

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

https://stackoverflow.com/questions/7358775/java-gui-frameworks-what-to-choose-swing-swt-awt-swingx-jgoodies-javafx

https://docs.oracle.com/javase/tutorial/uiswing/index.html