How do you mock a Sealed class? * Cinema Guy 17:14 Add Comment Edit Question Mocking sealed classes can be quite a pain. I currently favor an Adapter pattern to handle this, but something about just keeps ... Read More
Split a string ignoring quoted sections * Cinema Guy 11:04 Add Comment Edit Question Given a string like this: a,"string, with",various,"values, and some",quoted What is a good al... Read More
How do you handle huge if-conditions? * Cinema Guy 09:45 Add Comment Edit Question It's something that's bugged me in every language I've used, I have an if statement but the conditional part has so man... Read More
Geographically Distributed Development * Cinema Guy 05:49 Add Comment Edit Question My company is using me as a sort of guinea pig for having developers on both sides of the US. The main office is located in Denver,... Read More
C# logic order and compiler behavior * Cinema Guy 13:30 Add Comment Edit Question In C#, (and feel free to answer for other languages), what order does the runtime evaluate a logic statement? Example: DataTa... Read More
HTTP: Generating ETag Header * Cinema Guy 01:45 Add Comment Edit Question How do I generate an ETag HTTP header for a resource file? Answer An etag is an arbitrary string that the server sends to the cli... Read More
How to know when to send a 304 Not Modified response * Cinema Guy 00:54 Add Comment Edit Question I'm writing a resource handling method where I control access to various files, and I'd like to be able to make use of the ... Read More
Territory Map Generation * Cinema Guy 17:48 Add Comment Edit Question Is there a trivial, or at least moderately straight-forward way to generate territory maps (e.g. Risk)? I have looked in the pas... Read More