15,614 reputation
13276
bio website gregcons.com/kateblog
location Ontario, Canada
age 53
visits member for 3 years, 10 months
seen Jul 8 at 1:38

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.


Mar
25
comment Might starting variables/members with an underscore puzzle the compiler?
your comments apply to the prefix of two underscores but not to a single underscore
Mar
25
answered Might starting variables/members with an underscore puzzle the compiler?
Mar
22
comment Why does Cem Kaner consider a test not revealing a bug a waste of time?
This answer correctly represents his position, but it's worth pointing out that plenty of people think his position is wrong. Given the choice between a test that demonstrates the most important function in the app works correctly (acceptance testing, if you will) and a test that finds a trivial bug (alignment off by one pixel) in a rarely used corner of the app, I know which I would choose in my limited time. And for the doctor analogy: if I am going FOR A CHECKUP rather than in response to symptoms, confirming heart is good, lungs are good etc etc is a fine outcome. So there.
Mar
17
revised Class of problems solvable by sed or stream editors
edited tags
Mar
6
revised Why do most issue tracking systems have only single status field?
added 1 characters in body
Mar
4
answered Why do most issue tracking systems have only single status field?
Feb
24
comment what to make of a Microsoft Most-Valued-Professional who believes that .NET types are either primitive or complex?
I removed the Microsoft-certifications tag. Being identified as an MVP is not a certification. It's also possible to be an MVP of something other than .NET programming, such as Windows itself, SQL, XBox, native C++, and so on.
Feb
24
revised what to make of a Microsoft Most-Valued-Professional who believes that .NET types are either primitive or complex?
edited tags
Feb
22
revised Why do large websites use different languages for the backend and frontend?
retagged
Feb
16
comment Developed a web site - How to explain in an interview
There is nothing wrong with rehearsing several different answers to this question. One can be about a minute long, one about 5, and the other about 15. After the one minute answer, if the interviewer still looks interested or if they ask for more details, you can use one of your longer answers. But they would probably prefer to have a back-and-forth conversation where they say "how did you handle security?" and you tell them that part, then they say "did you integrate with social media?" and you tell them that part, etc, rather than a 15 minute speech.
Feb
16
answered Developed a web site - How to explain in an interview
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