TIL that we can also use walrus operator in Python. To be fair, I didn't learn about it today, but I had an use case to use it today and I remembered. Example: if (my_env := os.getenv("MY_ENV", None)): do_something(my_env) read more →
TIL about chezmoi and how easy it is to handle dotfiles across multiple machines. Their quickstart guide is really good and direct to the point. My dotfiles can be found in: https://github.com/cauabernardino/dotfiles read more →
TIL about C++ initializer lists and how it is (usually) more performant than standard initialization. Example: class Account { private: std::string number; std::string full_name; float balance; public: // Standard initialization ... read more →