551 reputation
26
bio website hackcraft.net
location Dublin, Ireland
age 38
visits member for 2 years, 11 months
seen Nov 19 at 11:45

When not programming I spend much of my free time avoiding the task of writing bios.


Oct
28
comment Is it permissible to use explicit interface implementation to hide members in C#?
One could certainly argue that a better approach would have been to first define an interface for read-only-appropriate members, then another for those that mutate, and .NET4.5 does have something closer to that, but there are arguments for the more complete interface of IList<T> being the one used in both cases too. Whatever way one wants to argue that design decision, the fact is it was done and that is the design decision one has to then work with when implementing.
Oct
28
comment Is it permissible to use explicit interface implementation to hide members in C#?
@Telastyn it fulfils the documented contract, particularly in light of "A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created." See msdn.microsoft.com/en-us/library/0cfatk9t%28v=vs.110%29.aspx
Oct
28
comment Is it permissible to use explicit interface implementation to hide members in C#?
@Telastyn the interface is indeed implemented.
Oct
28
revised Is it permissible to use explicit interface implementation to hide members in C#?
edited body
Oct
28
answered Is it permissible to use explicit interface implementation to hide members in C#?
Oct
3
comment When writing object-oriented code, should I always be following a design pattern?
I'd ask that it's as useful in pointing out anti-patterns in saying what one shouldn't do, or should only do in a limited set of cases. Like the null-object pattern, for example.
Sep
10
revised Why did the creators of the Internet Protocol decide to use IP addresses to identify a particular computer?
deleted 1 character in body
Sep
10
answered Why did the creators of the Internet Protocol decide to use IP addresses to identify a particular computer?
Sep
7
comment Why are the <b> and <i> tags deprecated?
"but should be used differently from what many people where used to before HTML5", but before HTML5 brought them back, they were deprecated.
Aug
30
answered What specifically does expressive power refer to?
Aug
30
comment What specifically does expressive power refer to?
Note that while you've tagged this "programming languages", programming langauges are not the only sort of computer languages whose expressive power might be discussed. Indeed, the page you link to has Web Ontology Language as its first example.
Aug
30
comment What specifically does expressive power refer to?
@marczellm not all programming languages are Turing-complete though, and not all computer langauges are programming languages either, as ontology languages, pattern languages, markup languages and query langauges are all examples of computer languages whose expressiveness one might talk about.
Jun
12
comment How can my team avoid frequent errors after refactoring?
There's probably reams of advice that could add advice here, but it'll all come down to this point. Whatever about the OPs "as it should be" joke showing they know it's a problem in itself, the impact of scripted testing on refactoring is immense: If a pass has become a fail, then the refactoring hasn't worked. If all passes remain passes, then the refactoring might have worked (moving fails to passes would obviously be a plus, but keeping all passes as passes is more important than even a nett gain; a change that breaks one test and fixes five might be an improvement, but not a refactoring)
Jun
9
comment Why is programming sometimes viewed as a second-rate role?
In another context I'd be tempted to ask "how do I know you aren't just a manager?" In the context of interviewing for a management job though, it seems a lot more reasonable. If I'm interviewing someone who does X for a job as Y, I'd want to know they weren't just X for any values of X and Y.
May
14
answered Does C++ compiler remove/optimize useless parentheses?
May
14
comment Does C++ compiler remove/optimize useless parentheses?
IL doesn't work on expressions of this sort, the instructions take a certain number of values from a stack, and return a certain number of values (generally 0 or 1) to the stack. Talking of this sort of thing being optimised at runtime in C# is nonsense.
May
6
revised What does it mean when data is scalar?
added 63 characters in body
May
6
comment What does it mean when data is scalar?
Hmm. I can't delete an accepted answer. I only want to delete it because it's accepted!
May
6
comment What does it mean when data is scalar?
I disagree that it's "just wrong", obviously, though I think Karl Bielefeldt should have the tick. This is a mnemotic that's too long to be a comment, that is the better answer.
May
6
comment What does it mean when data is scalar?
@VBCPP where on a scale containing {1, 2} does {2, 1} sit? Before or after? Now, granted we can enforce an ordering, but there isn't a clear ordering. Bear in mind also, that I'm trying to offer an easy way to think about it (Karl Bielefeldt's answer does a good job at giving a more precise answer IMO, and I wouldn't try to better it, just suppplement). That said, there is an element of context here. A string may or may not be considered scalar depending on context; in SQL it's scalar for a good reason, in C it isn't, also for a good reason.