Comment¶
HashTable is a trait without a factory method and thus cannot be instantiated. HashMap and HashSet are subclasses that you should use.
https://stackoverflow.com/questions/3648870/scala-using-hashmap-with-a-default-value
The Source Class in Scala IO
Assert in Java
- Avoid using
assertin Java production code as assertion is not turned on by default. Throw exception instead (since assert is just a syntax sugar of throwing exceptions).
The most important thing to remember about assertions is that they can be disabled, so never assume they'll be executed.
Therefore keep the followings things in mind when using assertions:
MutableList in Kotlin
MutableList vs ArrayList¶
MutableList is ArrayList in Kotlin currently.
Create an Empty MutableList¶
Below is the most idiomatical way to create an empty mutable list in Kotlin.
Python Virtual Environment
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
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 …