Reputation
3,638
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
14 29
Newest
 Yearling
Impact
~151k people reached

6h
comment In Ada, is there a way to make an enumeration type act like a modulus type — to wrap to 0 after the last of it's range?
Be careful when rewriting encryption libraries. Some inefficiencies are intentional in order to mitigate side channel attacks. That being said, the fancy way to improve performance of encryption is to leverage the AES Instruction Set. This tends to provide a 5X or higher performance boost.
8h
answered Scaling websocket client connections (not server) to multiple servers
10h
answered Do methods Merge and Join make sense for a path class?
10h
comment Do methods Merge and Join make sense for a path class?
You've offered one possible motivation for having a Combine method. An alternative motivation is, "The user has provided me with a path which may or may not be an absolute path. Given an initial path, how should the user's path be interpreted?" This is not an unreasonable interpretation; it's useful for things like cd (change directory) style commands. Mind you, not caring about path separators in the initial path is a valid benefit. Note that this is the approach taken by Path.Combine in C#.
Feb
5
comment Should a C++ program catch all exceptions and prevent exceptions from bubbling up past main()?
@Praxeolitic: Actually, this does exist. You'll want to listen for the WM_POWERBROADCAST message. This only works if your computer is battery-powered (if you're using a laptop or a UPS).
Feb
4
revised What are algorithmic paradigms?
Fixed typo
Jan
31
awarded  Yearling
Jan
20
comment Idiomatic way to write JavaScript class that maintains state and tells you when that state has changed
@RobertHarvey: Native javascript (es5+) also directly supports custom properties. However, I would favor Typescript properties, since Typescript properties have tighter syntax. See stackoverflow.com/a/12850536/18192 for an illustration of both.
Jan
9
comment Should I write automated unit tests that fail when the code changes?
I will note that your example bug would be caught if you ensure 100% branch coverage when running your tests. Such tests might not need to be written by hand. Even an automated tool like (C#) Pex (e.g., paste this code into Pex4Fun) would catch this type of bug, though I'm unsure what sort of tools exist for Java.
Dec
29
answered Overriding Equals in an unbrittle way
Dec
29
comment Overriding Equals in an unbrittle way
And future programmers would also have to make sure not to update Equals if there were ever a property added to WorkflowItemSearchCriteria which does should not impact equality.
Dec
28
comment How can I create a client for a service without hiding the parameters needed for each endpoint?
Why not use a code generator to convert the service's WSDL to code, then use that generated code (possibly with a custom wrapper)? Code generators will automatically create the relevant argument structure.
Dec
21
comment When to favor ASP.NET WebForms over MVC
I'm seeing rumblings that System.Web is too difficult to maintain and that feature releases for WebForms will be slower than they were in the past. Microsoft is pretty consistently stating that WebForms support isn't ending any time soon, but don't expect WebForms to offer the latest and greatest features. E.g., Microsoft promotes vNext has having near-realtime code updates, but I don't think you'll get this with WebForms. WebForms won't be dead any time soon...but I'd be hesitant to use it for new projects.
Dec
16
answered What is the most efficient way to store this data?
Dec
16
comment Why use plus equals += for event registration?
Eric Lippert agrees with you. See dishonorable mentions on his Sharp Regrets article.
Dec
11
answered How to encourage client to do some in house QA testing?
Dec
9
comment What does an MSDN subscription offer?
Warning: This post is very out of date. MSDN and Visual Studio pricing has changed significantly since this answer was posted.
Dec
3
revised What is LPCTSTR?
Made it clearer that answer is quoting the MSDN, rather than referencing it.
Nov
30
comment What grammatical tense should I write my specifications in?
@BenL: No, that is wrong. The tense is used for how to provide a correct implementation, not to indicate the status of the implementation. Here, future tense is used to indicate a future application state, not a future implementation state. As an aside, it's worth noting that the approach advocated here is also used by most RFCs. See RFC 2119 for discussion of terms must/required/shall (not), should/recommended (not), and may/optional.
Nov
29
comment Minimizing lock time (multithreaded app)
Is there any risk of two threads simultaneously needing a connector for the same sessionID?