Centrally Distributed from c++ to fixed-income markets, and everything in between

Learning How to Learn Part II

png “Little by little, I will get there” - Anon.

How to get started and avoid the inner procrastination zombie.

Read More

Staying Perfectly Singleton


When do we need a singleton?

This can be a contentious topic.

There are always ways around a singleton, but it does make life easier when used correctly. However, it’s true that global variables are frawned upon, so we must think carefully when embarking upon this single path.

Read More

Pointer to Member Function as Delegates


Over the past few days, I’ve been trying to find a way to store different PMF (pointer to member functions) in a container as delegates. And I wanted to type erase the PMF so I can store it in a container along with other typed PMF delegates. The only thing common tying the delegates together would be its call signature.

Read More

Learning How to Learn Part I

“I don’t know what’s the matter with people: they don’t learn by understanding, they learn by some other way - by rote or something. Their knowledge is so fragile!” – Richard P. Feynman png

Happy Chinese New Year! Two major points about learning in this article:

  • How learning happens
  • How to promote better learning

Learning is like solving a puzzle map. Every time we learn a new concept, we pick up a puzzle piece. And every time we make a connection, we fit that puzzle piece into our map.

It is the ability to recall and tie relevant concepts together, and the ability to derive new solutions under different situations.

Read More

Variadic Event Signals


Probably should’ve posted this before the previous Variadic TMP write-up. Anyhow, a variadic template is a new feature in C++11 that made the old va_args completely obsolete (woot!). The new variadic inherits the “…” (ellipses) operator, which expands a pack of zero or more types or value arguments.

Read More