C(ooking)#

Software development and cooking. Two worlds apart or is it? Object oriented programming models software after real world objects, and in my opinion, models cooking rather well too. Consider a recipe defined like this (ignoring visibility): class MeatMarinade { MixingBowl mixBowl; MeatMarinade() { mixBowl = new MixingBowl(); //Get a clean bowl } Marinated CreateBasic(M meat,…

Sleep deprivation (anecdotal)

There is not enough time in the world. Between work and family, there is hardly any time left for myself, or more specifically gaming. Of course the actual amount of time available and whether that is “enough” is highly subjective but let’s just leave it at that. End of the time, to fit everything in,…

When “a x b” is not equals “b x a”…

When I first saw this article on how some apparently correct answers were marked wrong, my first thought was “what rubbish is this?”. More recently though, my wife talked about the incident in which a colleague of hers will be switching her kids to private school because her kids was deducted points for not showing…

Beyond the books…

What should we be teaching our kids from beyond the books? I am not referring to the usual classes-for-kids, such as music, sports and such. I think some people may then ask what else is there? If nothing comes to mind in your head, then that is exactly the problem I want to talk about….

Where’s my veggies?

It is a rather curious question that I find asking here in Singapore after eating at the local hawker centres. Where did the vegetables go? Where the “Fishball Noodles” used to come with a few pieces of Chinese cabbage, there is now not a strand of green in the soup. Not are there any more…

Maintaining a PC in 2 climates

Being a resident of both Singapore and US, I need to maintain a home PC in two countries to make my gamer self happy. One in the country I am born in and one where I live in. Isn’t it the same wherever you go? Computer hardware is after all heavily standardized nowadays. Yes and…

On Getting Married

“结婚是爱情的坟墓”. That means “marriage is the grave of love”, which I think is a pretty pessimistic yet realistic view of things. It takes a long time to know a person, to see through all the masks one puts on in his/her daily life. An incomplete view is very detrimental to a good marriage. One month?…

Why Stellaris is great

Released just last month, Stellaris by Paradox is a great 4X game. After two 1000 star “Hard” games, here is why in my book. Scale With 1000 stars available to conquer out of the box and mods available to go to 5000, the only limit in scale is the power of the hardware used to…

“Honesty” in relationships

When we talk about honesty in relationships, it usually refers to what is being said. In this modern age, I think it extends quite a bit further than just that to have a successful relationship. Am I qualified to talk about this? Perhaps. My wife and I had been together since 17 and married for…

The ideal parent?

I have often heard people around me say “I’ll wait till I am ready to have kids”. If that is true, no one will have kids. One thing I can say for certain though, is that I have two and my eldest is now 6 years old but I am just about as clueless about…

C# The little things that bite (I)

Even as an experienced developer, my code can sometimes bite me (hard). Being “experienced” doesn’t spare you from newbie mistakes. You’ll just be laughing at yourself for doing it soon after. “The struct that bites” Consider this… var dict = new Dictionary<int, StructA>(); dict.Add(1, new StructA()); dict[1].SomeProp = SomeNewValue; The bite comes when I expect…

Isopropanol: A safe cleaning chemical

What is relatively non-toxic, does not leave any residue, is environmentally friendly, is an antiseptic, keeps well, cheap, commonly available and can be used as a cleaning agent? My answer? Isopropanol (or isopropyl alcohol, rubbing alcohol). Now I am nowhere near the first to realize this fact and there are many people out there who…