15,923 reputation
23577
bio website gregcons.com/kateblog
location Ontario, Canada
age 53
visits member for 4 years, 3 months
seen 19 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.


Nov
10
comment Can objects constructed from the same class have unique method definitions?
you mean like how two different instances of a button could do different things when they're clicked, because they're each wired up to a different button handler? Of course, one could always argue they do the same thing - they call their button handler. Anyway if your language supports delegates or function pointers then this is easy - you have some property/field/member variable that holds the delegate or function pointer, and the implementation of the method calls that and away you go.
Sep
4
comment What are the practical uses of Windows Services?
@Kiquenet services are not covered by UAC
Aug
6
comment When using Visual Studio 2012 do you have to use the drag and drop system?
WinForms, WPF, web apps, ...?
Jun
7
comment Do hiring managers have a hard time accepting developers who have a “business look alike” personal app but are NOT entrepreneurs?
can you edit your question to show how you describe this app on your resume? I think your interviewers are responding to that more than to the existence of the app.
May
22
comment What are concrete examples of use cases of linked lists?
@Dennis yes, I know, thanks to move semantics. However this is not true for all languages so the example stands.
Oct
31
comment What is the advantage of a programmers VM apart from portability
.NET executables run on many flavours of windows (8.1, 8, 7, ...) and bitness, and on phone, and perhaps other platforms as well. As a "party trick" I have run them on Unix. A native exe could not do that.
Aug
21
comment How do you evaluate learning C# from videos for a beginner?
to forestall the obvious "hey, how about a link to your courses" comment, I am deliberately not promoting them here. It's not a hard search if you want to find them - my answer is to help the OP evaluate courses and to share some of my thinking on course design, not to get a few more views for myself on the courses I wrote. They're darn good courses and don't need to be shilled for.
Jul
31
comment Why must a constructor's call to the superconstructor be the first call?
You want a link directly to an answer? An answer that says WHY? OK: stackoverflow.com/a/6697760/203458
Jul
6
comment Help with learning the C++ Qt Framework
As you say, C++ is a strongly typed language. Skipping C++ material (books, courses) because you think you know loops, conditionals etc is a bad idea. I have some courses at Pluralsight you might like - they have a free trial. Learn C++ concepts, especially stack semantics, strong typing, and using templates - then learn Qt.
May
30
comment What can I use to keep track of the status of 60 software projects, some of which are obsolete?
FYI if you have 5 developers or less, TFS as a service is free and will be free forever. Takes about 5 min to set up. So OP doesn't need the funds :-)
May
8
comment Etymology of “String”
THis reminds me of the process that turned "train of cars" where train was used like the train of a wedding dress, into just "train" as a form of transportation. The transition from "string of characters" to just "string" is the key
Mar
25
comment Might starting variables/members with an underscore puzzle the compiler?
@KChaloux if you think Microsoft's C++ compiler team, in existence for well over 20 years, established the rules about acceptable identifier names based on the habits of some folks on the C# team, you don't know how Microsoft works :-). Seriously, it's been 21 years since they released their first C++ compiler and these rules go back that far, or further into the original C compiler codebase.
Mar
25
comment Might starting variables/members with an underscore puzzle the compiler?
however in C++ (which this question is tagged) there are rules about the meaning of underscores at the beginning of a variable name that do not apply in C#. Not all C# coding standards and practices can safely be used in C++
Mar
25
comment Might starting variables/members with an underscore puzzle the compiler?
@BartvanIngenSchenau I agree with your reading of the standard but not with your conclusion. Many people find _limit etc to be useful, and I won't consider it an error
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
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.
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
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
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)
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.