Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on JSON

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

Shortcomes of JSON

It is suggested that you avoid using the JSON format! TOML and YAML are better text-based alternatives. If readability is not a concern, a binary serialization format is …

Questions About Java

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

  1. is possible to define abstract static method? i.e., the method doesn't depend on any instance variables but subclasses have different implementations

  2. for a void method, we can also make it …

Async Framework for JVM-based Languages

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

RxJava

RxJava is a reactive extensions for the JVM – a library for composing asynchronous and event-based programs using observable sequences for the Java VM.

Date and Time in Java and Scala

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

Use Joda time if you are using JDK <= 7 and java.time if you are using JDK8 and above.

If you do prefer Scala libraries (when working in Scala), https://github …

Operators in Different Programming Languages

Python Bash C/C++ Java Julia
and and -a && && &&
or or -o || || ||
not not ! ! ! !
bit and & & & & &
bit or | | | | |
bit not ~ ~ ~ ~ ~
bit xor ^ ^ ^ ^ ^
vector and
vector or
vector not
equals == -eq == == ==
not equal != -ne != != !=
greater than > -gt > > >
less than < -lt < < <
greater than or equal to >= -ge >= >= >=
less than or equal to …

Visual Studio Code for Java Development

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

Java Development in Visual Studio Code

https://code.visualstudio.com/docs/languages/java

https://www.youtube.com/watch?v=RJIfsSmU9zk

https://iseif.dev/2019/06/05/vscode-as-java-ide/

https://github.com/redhat-developer …