15,933 reputation
23677
bio website gregcons.com/kateblog
location Ontario, Canada
age 53
visits member for 4 years, 3 months
seen 13 hours ago

Consultant, developer, mentor, author, speaker. C++ and .NET, Windows 7, Sharepoint, whatever else I like.

My firm is available for online or in person mentoring, code reviews, troubleshooting and in some cases writing code for clients. If you're interested, please email me and mention you are familiar with my SO activities.


Feb
14
answered What's the effect of this assignment (whatever the language)?
Feb
8
comment Naming convention for a method that both sets and gets
I would cache that expensive Bar and add a getBar that returns the cache if possible. That leaves your setFoo sensible while still optimizing perf (and of course, only do this after measuring that the cost of expensivegetBar is really making a difference)
Feb
7
awarded  Guru
Jan
30
comment What is the point of using lists over vectors, in C++?
Right, but believe it or not (and most people don't believe it) the cost you didn't mention, traversing the linked list to find where to insert OUTWEIGHS those copies (especially if the elements are small (or movable, because then they are moves)) and vector is often (or even usually) faster. Believe it or not.
Jan
30
comment What is the point of using lists over vectors, in C++?
no, the vector will copy and that's expensive. But traversing the linked list (to figure out where to insert) is also expensive. The key is indeed to measure
Jan
3
answered How to manage the task of reviewing localized strings by a non-developer?
Jan
2
awarded  Good Answer
Dec
28
awarded  Enlightened
Dec
28
revised Motivation and pitfalls (?) of the auto keyword in C++11
clarified about default int
Dec
27
awarded  Nice Answer
Dec
27
revised Motivation and pitfalls (?) of the auto keyword in C++11
added 916 characters in body
Dec
27
comment Motivation and pitfalls (?) of the auto keyword in C++11
Visual C++ 2012 says error C3530: 'auto' cannot be combined with any other type-specifier to that line
Dec
27
awarded  Custodian
Dec
27
reviewed Leave Open Motivation and pitfalls (?) of the auto keyword in C++11
Dec
27
reviewed Leave Open Quality Assurance activities
Dec
27
answered Motivation and pitfalls (?) of the auto keyword in C++11
Dec
21
awarded  Nice Answer
Dec
9
comment Can I (reasonably) refuse to sign an NDA for pro bono work?
In my universe an NDA is just written confirmation of what I would do anyway: keep things secret that are supposed to be secret. I don't see it as taking on a financial risk. However, if you see things moving from "favour to a friend" territory into "contracts and lawyers" territory, then it might be appropriate to asked to be paid. Not to compensate for the risk of signing an NDA, but to compensate you for the work you're doing.
Dec
8
awarded  Nice Answer
Dec
7
answered I failed FizzBuzz, would you hire me?