Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 41811

This tag is for questions that aren't specific to a programming language or environment.

1 vote

Encapsulating a single property

There exist very close to absolute zero situations where a decent design may legitimately require the use of a global variable. Global variables are as bad as goto, never use either of those. Your si …
Mike Nakis's user avatar
  • 32.7k
0 votes

When is it a good idea to force garbage collection?

I have a usage for garbage disposal which is somewhat unorthodox. There is this misguided practice which is unfortunately very prevalent in the C# world, of implementing object disposal using the ugl …
Mike Nakis's user avatar
  • 32.7k
0 votes

How to design access to different type objects in protocol response

Have you examined this possibility? public abstract class DataObject<T> public byte[] RawData { get;} public abstract object DataAsObject { get;} public abstract T Data { get;} public cla …
Mike Nakis's user avatar
  • 32.7k
233 votes
Accepted

Why do many exception messages not contain useful details?

Exceptions do not contain useful details because the concept of exceptions has not matured yet enough within the software engineering discipline, so many programmers do not understand them fully, and …
Mike Nakis's user avatar
  • 32.7k
16 votes

Is it an overkill to write unit tests for a small code base?

We do unit tests to ensure (*) the correctness of code. (*) to ensure: in a colloquial, not mathematical sense. The question of correctness of code applies regardless of whether you have 5 lines of …
Mike Nakis's user avatar
  • 32.7k