Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on OpenFaaS

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

Tutorials

https://blog.alexellis.io/quickstart-openfaas-cli/

https://www.youtube.com/watch?time_continue=6&v=LQa8-JvIeWA&feature=emb_logo

Deploy OpenFaaS with Kubernetes

Deploy OpenFaaS from static YAML, via helm, or via new …

Named Arguments in Kotlin

Function Overload and Named Arguments

  1. Function overload might cause tricky invoking bugs if you change the signature of an overloaded function. You should always be careful when you change the signature of an overloaded function. There is a graceful way of resolving this kind of issues in Kotlin (and similarly in Scala and Python), which is to use named arguments. If you invoke an function with named arguments, it is relatively robust to change of order of arguments and it fails fast if you change the names of arguments.