Author Archives: acrocontext

Python – HTTP send a JSON object and decoding example

Advertisements

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

https://stackoverflow.com/questions/8481301/covariance-invariance-and-contravariance-explained-in-plain-english

Posted in Java, Programming | Leave a comment

Scala – Higher Kinded Type

https://stackoverflow.com/questions/6246719/what-is-a-higher-kinded-type-in-scala

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: https://fsharpforfunandprofit.com/posts/expressions-vs-statements/

Posted in Functional Programming, Programming | Leave a comment