270 reputation
14
bio website kizzx2.com
location Hong Kong, Hong Kong
age
visits member for 4 years
seen Sep 29 at 11:33

Feb
18
answered Is is acceptable to create mediocre code now in preparation for new language features?
Nov
22
comment What are QUICK interview questions for the Microsoft stack development jobs?
So what would be the answer to the last question?
Oct
13
comment If I immerse myself in Dvorak, will I forget QWERTY?
US vs. UK is really trivial compared to Qwerty vs. Dvorak
Feb
5
comment std::shared_ptr as a last resort?
@BenVoigt: I agree with your first sentence, though I agree with @NicolBolas in "real life". Perhaps its a difference in domain, or unless you can confidently say "reference counting is always harmful", there are often cases you want to do reference counting. (One can get philosophical and impractical discussing this. That's not the point. Suffice to say, large proportional of Firefox and Windows (XPCOM/COM respectively) rely on refcount as a fundamental concept). When you do need it, you're better off using shared_ptr than inventing your own, and that's exactly it's purpose.
Feb
5
comment std::shared_ptr as a last resort?
Every time you hand roll a reference counting scheme by thinking "explicitly about object life times", you're essentially reinventing shared_ptr and exposing implementation detail. Sure your hand rolled scheme is faster and without all the junk -- typical argument of malloc vs. vector
Jan
13
answered Are there good techniques or tests for naming types?
Jan
12
comment Is it bad interview practice to have candidates write a linked-list implementation?
@c0da The "general" C linked list largely deviates from definitions of what most people mean by "generic" linked list -- it is simply a specific linked list for void *. Semantically, it is also quite different from most linked list because it is heterogeneous by nature and cannot be safely passed around without the user having to check every element's type in paranoia. If we go farther than that we're basically tasked to implement strong typing on top of a weakly typed language.
Dec
27
comment What are the consequences of having unnecessary references and usings?
@ReiMiyasaka For example, if I don't have using System.Drawing but I type Col. The advantage of the all inclusive IntelliSense is that I still get the completion Color. After I complete it, I can press Ctrl+. (the "quick fix" key) to "Add using System.Drawing) automatically. (Disclaimer: I am only speculating because I am stuck at MSVS2005 where IntelliSense is not all-inclusive, but the Ctrl+. quick fix is there).
Dec
26
comment What are the consequences of having unnecessary references and usings?
@ReiMiyasaka so that you get IntelliSense for whatever you want and then do Ctrl+. to quick fix "Add namespace XYZ"
Oct
17
comment Should a development machine be inside a VM?
Just curious -- does your team have people leaving/coming in so often that you care about setting up new machine? If so I suspect stabilizing the team would give you much more productivity gain. (Setting up the human is actually the bottleneck, as opposed to the machine, I guess)
Oct
11
comment How to convince a teammate, who sees oneself as senior, to learn SVN conceptual basics?
Introduce him to git. "Hey look at the next generation of SCM". After learning git concepts he'll have no trouble understanding SVN. This may sound less offensive since he (likely) doesn't already use git.
Oct
8
awarded  Yearling
May
26
comment How to apologize when you have broken the nightly build
Why are they so mad? They must using some ancient source control like CVS with people never tagging or even writing commit message at all (my company).
May
24
comment How do you tell if advice from a senior developer is bad?
As a junior developer this type of dictatorship would drive me crazy. I down-voted, sorry.
May
19
comment How much of original code is left in modern software products?
Firefox is full of decade old code, seriously.
May
15
comment What are some fun (and very easy) C++ programs for a 10 year old kid to write?
-1 Given the FizzBuzz statistics, it's too harsh to expect your 10-year old to really grasp all this. If he is that clever hacker, he would have learned it himself (thus not needing a tutor) and may teach you something, though :P
May
7
comment Extremely trivial C++ phone interview question
I guess a competent C++ programmer could answer the toupper question, even if he doesn't know: "I don't remember, but I believe no. It's just not the STL style. If there's a toupper, it would be an <algorithm> so I could plug in an ANSI string or std::string()'s begin() and end(), or also supply my own string class with iterators. That's pretty much the whole point of thins generic programming thingie. Therefore the answer is no, std::string shouldn't have an toupper function."
Apr
15
comment Most underestimated programming tool
Maybe it's just me, but if "half of the devs" don't know what about debug symbols" is not an exaggeration, it's quite daunting.
Feb
26
awarded  Commentator
Feb
26
comment Harmful temptations in programming
There is a guy from my team who loves to get his ego boost by re-ordering everyone's code to something like this. I hate him.