Category Archives: Programming

Python – HTTP send a JSON object and decoding example


Posted in Programming, python | Leave a comment

Scala – ~> [Tilde arrow] explanation

“~>” is a place holder for type. Main reason to use “~>” is to make readable on type A goes to type B. This is possible because Scala allow to express in in-fix notation for pre-fix expression. is equivalent to … Continue reading

Posted in Programming, Scala | Leave a comment

Java – Covariance, Contravariance and Invariance

Posted in Java, Programming | Leave a comment

Scala – Higher Kinded Type

Posted in Programming, Scala | Leave a comment

Scala – By Name Parameters

Syntax: => A By Name parameter will be evaluated when called

Posted in Programming, Scala | Leave a comment

Scala – conversion from for-comprehension to map, flatMap

Posted in Programming, Scala | Tagged | 2 Comments

FP – expression vs statement

Expression: by combining value and function, it will generate the value with some possible side-effect Statement: standalone unit of execution without returning anything. Normally it has side effect. More information:

Posted in Functional Programming, Programming | Leave a comment