12,398 reputation
12355
bio website
location
age
visits member for 3 years, 9 months
seen Dec 15 at 15:20

1d
awarded  Nice Answer
Nov
18
awarded  c#
Nov
17
revised Understanding the static keyword
added 170 characters in body
Nov
17
revised Understanding the static keyword
added 170 characters in body
Nov
17
answered Understanding the static keyword
Oct
7
comment Is there an “ask for only what you need” interface principle?
Generic type parameters can be defined with criteria including the implementation of multiple interfaces, but you're right in that expressions requiring a static type typically cannot support specifying more than one. If there is a need that a static type implement both IFoo and IBar, and you control both of those interfaces, it may be a good idea to implement IBaz : IFoo, IBar and require that instead.
Oct
3
comment Should I denote that a method satisfies an interface?
Like I said, there are reasons to ignore or tolerate the smell, just as there are for other smells. A smell by itself isn't a problem, but it might indicate one.
Oct
3
comment FizzBuzz on Large Scale
As opposed to "relative primes", two numbers whose GCF is 1 but which may not themselves be prime. This distinction matters in various areas of programming.
Oct
3
comment Should I denote that a method satisfies an interface?
It's not so much about code folding per se, as it is that if you need that extra level of collapsibility between the functions and the class definition, it's a code smell that the class has too many members. There are reasons to use it (see my previous comment) but IMHO it's not to be widely encouraged.
Oct
2
comment Should I denote that a method satisfies an interface?
The only situation in which I use a region is to effectively mark code "Do Not Touch". Stuff like unsafe code, P/Invoke calls, and certain interface implementations that add a lot of LOC (for instance, IConvertible) are easily collapsed and ignored by junior coders (and by me for that matter, as long as the tests pass).
Oct
2
revised Should I denote that a method satisfies an interface?
added 623 characters in body
Oct
2
answered Should I denote that a method satisfies an interface?
Oct
2
revised What should take precedence: YAGNI or Good Design?
added 4 characters in body
Oct
2
revised FizzBuzz on Large Scale
added 308 characters in body
Oct
2
revised FizzBuzz on Large Scale
added 308 characters in body
Oct
2
answered FizzBuzz on Large Scale
Sep
26
revised Is coupling with strings “looser” than with class methods?
added 172 characters in body
Sep
23
awarded  Nice Answer
Sep
10
awarded  Nice Answer
Aug
27
awarded  Favorite Question