518 reputation
512
bio website udellgames,com
location Southampton, United Kingdom
age 26
visits member for 1 year, 7 months
seen Dec 17 at 9:51

Independent Game Developer, UdellGames

Developer, Tiger Communications plc.

BSc. (hons) Computer Science, University of Southampton


Nov
28
awarded  Good Question
Nov
27
awarded  Notable Question
Nov
27
accepted Should I accept empty collections in my methods that iterate over them?
Nov
27
awarded  Citizen Patrol
Nov
27
comment Should I accept empty collections in my methods that iterate over them?
It does. My comment was a clarification as Andrzej must have been confused (for why else would they go to the effort of specifying namespaced for a language this question does not reference?).
Nov
27
awarded  Commentator
Nov
27
comment Should I accept empty collections in my methods that iterate over them?
This question is tagged [c#]
Nov
26
awarded  Popular Question
Nov
26
awarded  Nice Question
Nov
26
comment Should I accept empty collections in my methods that iterate over them?
@rmayer06 There's no harm explicitly, but it is pointless to call such a method on an empty collection, so I wondered if it would be best at that point to inform the caller via an exception. The answers have persuaded me to not do so.
Nov
26
comment Should I accept empty collections in my methods that iterate over them?
@gnat that's for whether something should return an empty collection. In this case, I'm asking about the specific case of when an empty collection is passed in. While this returns an empty collection, sure, the question more specifically addresses input etiquette as opposed to your linked question's output etiquette.
Nov
26
comment Should I accept empty collections in my methods that iterate over them?
True, I guess I figured they should check what data they were holding first, but the answers so far are convincing that if there's nothing wrong with an empty collection don't throw an exception for it.
Nov
26
asked Should I accept empty collections in my methods that iterate over them?
Oct
14
accepted Is it better to create thread safe subclasses or make the main class thread safe?
Oct
14
asked Is it better to create thread safe subclasses or make the main class thread safe?
Oct
8
comment Why should your code not use 100% CPU?
Would this issue not be related to programming too? Is it not something every programmer should keep in mind if it were an issue?
Oct
8
awarded  Good Question
Oct
7
awarded  Notable Question
Oct
7
comment Why should your code not use 100% CPU?
In this case it's simply a complex process on a large (in-memory) dataset, which takes a few minutes. But it's definitely a good point for other readers.
Oct
7
awarded  Yearling