Jan
27
revised What is the difference expected but not desired behavior and a software bug
added 4 characters in body
Jan
26
comment Type checking in factory, bad practice?
Is returning a null builder actually desired? I would have thought that passing in an unknown type to your factory would fall under the category of undefined behaviour and, as such, should result in an exception being thrown.
Jan
25
comment How to ignore compiler warning when using Obsolete attribute on a class used with a Knowntype attribute
@vladimir77, again, the point wasn't to suppress the warnings. It was to keep them as warnings while treating all other warnings as errors.
Jan
25
comment How to delete user data that is referenced by another user?
What do you want the users to experience when they use a playlist with deleted videos? Should they see an error? Should the player automatically skip the deleted video but still display it in the list? Should deleted videos not appear in playlists? Answer these questions and you'll probably find what makes sense to enforce at the database level.
Jan
24
comment For what reasons Java and C# initialize static data on demand?
Not surprisingly, Eric Lippert's blog might be useful for you: ericlippert.com/2013/02/06/static-constructors-part-one
Jan
23
revised Recursive Sudoku solver almost working but getting stack overflow for empty grid
Fixed stack typo, tried to correct bad casing and horrible text-type.
Jan
22
comment Enforcing order for two consecutive statements
evaluating checkB adds negligible overhead. It shouldn't a factor in your decision making at all unless you're developing in a constrained environment. Don't fall into the trap of premature optimization.
Jan
22
comment Is there a standard for use case specifications?
I've never meet two people who agreed on how to document the same thing in UML.
Jan
22
comment Divide the world map into fixed sized blocks
Is this question about mapping the surface of a sphere to a rectangle?
Jan
22
comment Is there a standard for use case specifications?
And the downside of UML is everyone thinks they understand it but nobody is ever in agreement on how to use it.
Jan
22
comment Enforcing order for two consecutive statements
@LightnessRacesinOrbit you'd be surprised. Jr devs can be very creative in they way the f### you over.
Jan
22
comment Enforcing order for two consecutive statements
@LightnessRacesinOrbit what you're saying is only true for large functions, which are already a problem in and of themselves. There's nothing wrong in keeping a result variable throughout the life of a small function.
Jan
22
comment Enforcing order for two consecutive statements
As a side note: having multiple return statements in a function is evil. It makes debugging soooooo much harder.
Jan
22
answered Enforcing order for two consecutive statements
Jan
21
comment How to optimize iterable queries with external arguments
it might not be valuable to @greenoldman's specific case, but it is good general advice. I think you should leave it in.
Jan
21
comment How to optimize iterable queries with external arguments
Just a note about your Sum() example: You can't really optimize this. You will always need to iterate over every item because your collection could contain negative numbers. For example, if you're testing collection.Sum() > 1000 and the values in collection are 2000, -3000, -1, -1 then quitting early after the first item is clearly a bad idea.
Jan
21
reviewed Leave Closed What are the differences between operating systems and computer systems?
Jan
21
reviewed Approve suggested edit on Is the purpose behind code being 'idiomatic' to reduce cognitive overhead?
Jan
19
comment Big O of loop of 0...n with nested loop doing k iterations
@DavidSherret I think gnat's point is, beyond defining what Big-O notation is, this question has little to no value for the community as a whole. And, as noted by gnat, the definition part of this question has already been asked and answered.
Jan
19
comment How to design a complex REST API considering DB performance?
Too long. Didn't read. Can this be spit into 4 actual questions?
1 2 3 4 5