Reputation
19,702
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 38 77
Impact
~708k people reached

Dec
10
comment Does TCP guarantee packet transmission time?
best effort only, it can't help if the IP layer can't deliver.
Dec
10
comment Is there ever a reason to use an array when lists are available?
@InstructedA in C# it is.
Dec
10
comment Is there ever a reason to use an array when lists are available?
For a hash table you can use an array and when you need to grow the table you need to set the elements to the new positions based on hash%newArray.length anyway.
Dec
10
comment Is there ever a reason to use an array when lists are available?
or until you need to reset the position of all data anyway, like during a rehash of a hashtable.
Dec
10
comment Is there ever a reason to use an array when lists are available?
@Knerd then it's time to create a multidimensional list
Dec
10
comment Is there ever a reason to use an array when lists are available?
@FrustratedWithFormsDesigner they aren't guaranteed to be rectangular
Dec
10
comment Is there ever a reason to use an array when lists are available?
It allows List<T> to not be a built-in type and allows the simpler type T[] (no resizing, only length and data) be the built-in type
Dec
10
comment Is there ever a reason to use an array when lists are available?
To implement List<T>
Dec
10
comment How can I encourage people to read error messages?
Provide a list of most common error messages and the probable cause and fix. Experienced people already know that list by heart.
Dec
9
comment Track a series of choices with a single number
you need a number from 1 to pow(3, 40) = 12,157,665,459,056,928,801 that holds enough information for it. see en.wikipedia.org/wiki/Arithmetic_coding
Dec
8
comment Why using string[] args in all main methods?
cause that's how everyone else does it (except win32 winMain for some reason)
Dec
6
revised Why is the hashCode method usage of HashSet not specified in the API?
added 125 characters in body
Dec
6
answered Why is the hashCode method usage of HashSet not specified in the API?
Dec
6
awarded  Enlightened
Dec
6
awarded  Nice Answer
Dec
6
awarded  Cleanup
Dec
6
revised Choosing a random integer in a range such that it doesn't equal a particular number
rolled back to a previous revision
Dec
5
comment Early destruction of objects in c++
or create a dispose method and make sure that after disposing the destructor still works
Dec
5
comment Choosing a random integer in a range such that it doesn't equal a particular number
@ReignofError no because if RandomIntWithinInclusiveRange(minVal, maxVal-1); selects lastNum+1 then it gets incremented to lastNum+2. That's why I increment the entire range between lastNum and maxVal.
Dec
5
revised Choosing a random integer in a range such that it doesn't equal a particular number
edited body