Favorite 10-Liner
shared_ptr< widget > get_widget( int id ) { static map< int, weak_ptr< widget > > cache; static mutex m; lock_guard< mutex > holder( m ); auto sp = cache[ id ].lock(); if ( !sp...
View ArticleShould I throw an exception in my destructor?
The following is the work of Marshal Cline @ C++ FAQ. Write a message to a log-file. Or call Aunt Tilda. But do not throw an exception! Here’s why (buckle your seat-belts): The C++ rule is that you...
View ArticleThe Danger of the Concentration of Power
Some thoughts from what I read recently. Quintus Catalus (Consul of 78 BC) once said, in front of a popular gathering in 67 BC, “I admit that Gnaeus Pompeius rightfully deserves all the honors you have...
View Article2015 EOY Goals
I’m setting some goals for myself. For those who wonder why I’m doing this when it’s almost the last month of the year: I don’t believe in new year resolution and I start a goal whenever I think I’m...
View ArticleReview: Lean In
“Leadership is about making others better as a result of your presence and making sure that impact lasts in your absence.” is one of my favorite lines from Lean In. My take on this book is going to be...
View ArticleReview: Starting Point
Hayao Miyazaki is a conflicting person. One second optimistic and uplifting, the next disillusioned and bitter. Miyazaki would at times exclaim the world was heading to a meaningless place before...
View ArticleSo, You Want To Wake Up Early?
A friend of mine has recently asked me for some tips for waking up early. To this friend, and to anyone what wants to adopt a regular schedule, my answer is to simply do two things, of which sleeping...
View ArticleThere Is Meaning In Sadness
I finally got around to watch Inside Out. Moments of the movie reminds me of a very different sort of book, Man’s Search For Meaning by Viktor E. Frankl. In the movie, sadness however depressing it can...
View ArticleReview: The Kindly Ones
I must say the ending left a sour taste in my mouth. The story just stopped. Never mind there was no light at the end of the tunnel. There was not even an end to the tunnel. Did Aue go mad at the end?...
View ArticleReview: SPQR
The Romans too wondered where they came from. To them, a city as mighty as theirs could not possibly have been of an obscure origin. So it was Aeneas, who fled the destruction of Troy, that Romulus...
View Article