Posts tagged with 'til'
Walrus operator in Python
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 →
Handy tool to manage dotfiles - chezmoi
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 →
Initializer lists
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 →