Reputation
2,739
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
2 8 19
Newest
 Enthusiast
Impact
~83k people reached

Sep
29
comment Ethics, Clients, and legal repercussions
But if you buy the source code, you usually get access to the source code (surprise surprise). Compare this with "reverse engineering obfuscated code" as in the OP. While it may happen in same cases that a company has the rights to an application without source code, but that's relatively rare.
Sep
24
awarded  Autobiographer
Sep
22
comment Where and how to mention Stackoverflow participation in the résumé?
One problem with those tiny urls is that they hide your username.
Sep
22
comment Why does SortedDictionary not implement IReadOnlyDictionary?
I guess they simply forgot to add it, or considered it too much work for too little gain.
Sep
21
comment FizzBuzz - really?
What did they use instead of the remainder operator? x - (x/y)*y?
Sep
17
comment Should I worry about performance, even if there is no loss of convenience?
My experience is that incremental updates are very error prone and hard to debug. I only use them when recomputing is too costly.
Sep
13
comment Function only returns unchanged parameter, useless?
For example in C# I often use .OrderBy(x => x)
Sep
9
comment Why is the use of conjunctions in method names a bad naming convention?
I wouldn't use a suffix for the throwing variant, but I would use one for the null returning variant. Could be Try..., ...OrNull, ...OrDefault. @EricLippert That's not the only convention in .net. Consider Single vs. SingleOrDefault, which is very close to the OrNull the OP suggested.
Aug
29
comment Why don't compilers inline everything?
RAM is slow. And CPU cache is only a few MB.
Aug
27
comment What optimizations can be done for soft real-time code in C#?
@Doval The GC of the compact framework used by XNA running on the xbox is much worse than the GC used in the normal framework. There were significant changes to the GC in .net 4.0 related to background collection which should benefit latency. With background collection the expensive Gen2 collection can run in the background while your application continues working. It can even run Gen0/Gen1 collections while the Gen2 collections is in progress.
Aug
27
comment What optimizations can be done for soft real-time code in C#?
In my experience object pools are useful for recycling large arrays (such as buffers). For small objects the runtime tends to do well without manual pooling.
Aug
27
comment What optimizations can be done for soft real-time code in C#?
1) Did you actually notice problems? Thanks the to background GC, your threads should only stop briefly for certain parts of the GC, but many other parts can run in parallel without interference. 2) How many milliseconds are we talking about here?
Aug
26
comment Are there any downsides to replacing js confirm boxes with “mark record as deleted”?
1) Both a flag and moving it are forms of soft deletion, since the data is still available. A flag is the conventional implementation. 2) I'm talking about reusing a value on a field which has a unique index (usually not the primary index) once the record occupying it has been deleted.
Aug
26
comment Are there any downsides to replacing js confirm boxes with “mark record as deleted”?
A unique index is the biggest pitfall with softdelete I encountered so far.
Aug
26
comment Are there any downsides to replacing js confirm boxes with “mark record as deleted”?
I'd update the application to use soft delete even if you decide to keep the question.
Aug
21
comment Passing functions into other functions as parameters, bad practice?
@ZevSpitz I know, I have a pretty functional programming style. But the OP's example of passing callbacks to a function which run on completion of an asynchronous operation is one that I wouldn't use in .net since Tasks are nicer to use.
Aug
20
comment Why does Linq to Entity Sum return null when the result set is empty?
I wonder if it's a bug in the specification (also known as broken-by-design), or if that was just a bug in the code (i.e. this wasn't designed at all).
Aug
20
comment Passing functions into other functions as parameters, bad practice?
The main reason for avoiding callbacks is that your language or library already supports a better alternative. For example in .net there is the Task class which you'd return from the asynchronous method.
Aug
18
comment When is type testing OK?
1) If the type you're checking for is an interface 2) If there is a limited amount of subtypes.
Aug
18
comment In the days of modern computing, in 'typical business apps' - why does performance matter?
Another example: If processing one element takes 30 CPU cycles or 10ns (which is quite cheap), the algorithm will already take a full second if you only have 10000 elements. 10000 elements isn't much in many contexts.