1,420 reputation
1321
bio website stackoverflow.com/users/…
location Austin, TX
age 25
visits member for 4 years
seen Dec 24 at 11:24

Sorry, I don't do chat. I'm honestly not sure why it was decided that was a useful feature for a Q&A site. If you have a question that you think I might be able to answer, please post a question to the site so that everyone may benefit.


My primary area of expertise is the Win32 API. I work primarily in C++, C#, and VB.NET (although less in .NET these days). I also know VB 6, the MFC framework, and a little about C. I'm addicted to solving problems and happiest when I'm completely engaged in a challenge.


Fair warning: Brevity is not necessarily my strong suit...


Oct
30
awarded  Good Answer
Aug
30
comment Are C static libraries frowned upon?
Yeah, the "In particular..." part was added. Not sure how that affects its rant status. Of course I'm not advocating cargo cult programming. It's just that proponents of static linking (in my experience) often miss or underestimate the security concerns. Static linking can be very appropriate for one-off utilities, making the app self-contained and therefore distribution much easier. But any app that will be widely deployed or used for production should really link to a shared library. There are no real disadvantages: at this level of app, you already need a deployment process.
Aug
29
comment Are C static libraries frowned upon?
Basile's answer does tell you precisely why he recommends using shared libraries: "Why do you want to link statically your application? It is generally a mistake (because you don't profit from updates to the system dynamic libraries). In particular name service switch facilities from libc wants dynamic libraries." It not a "rant" just because you disagree with it.
Aug
23
comment Why does void in C mean not void?
"Code that dereferences a null pointer won't compile." I think you mean code that dereferences a void pointer won't compile. The compiler doesn't protect you from dereferencing a null pointer; that is a runtime problem.
Aug
14
awarded  Good Question
Aug
3
comment Why are cryptic short identifiers still so common in low-level programming?
"If you cannot get you head around bge.s and think branch-if-greater-or-equal.short will make a difference - you are merely playing with the CLR and do not know it." I don't know about that. I understand x86 assembly pretty well, but every time I write a loop, I have to look up what all the j? instructions mean. Having a more obviously-named instruction would definitely help me. But maybe I'm the exception rather than the rule. I have trouble remembering trivial details.
Jun
26
awarded  Enlightened
Jun
26
awarded  Nice Answer
Jun
17
comment Are error variables an anti-pattern or good design?
Windows returns HRESULT values from C++ functions to maintain C compatibility in its public APIs (and because you start getting into a world of hurt trying to marshal exceptions across boundaries). Don't blindly follow the operating system's model if you're writing an application.
Jun
16
comment Is my work on a developer test being taken advantage of?
RE: Doorknob and "in jokes": meta.stackexchange.com/a/19514
Feb
19
awarded  Notable Question
Dec
29
awarded  Yearling
Aug
23
awarded  Organizer
Aug
2
awarded  Scholar
Aug
2
accepted Why was the percent sign (%) chosen as the format specifier for the printf family of functions?
Jan
24
awarded  Popular Question
Dec
29
awarded  Yearling
Aug
5
awarded  Nice Question
Aug
5
awarded  Student
Aug
5
asked Why was the percent sign (%) chosen as the format specifier for the printf family of functions?