579 reputation
26
bio website hackcraft.net
location Dublin, Ireland
age 38
visits member for 3 years
seen 2 days ago

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


Dec
17
comment How to define “or” logically
@gnat, actually considering "We're looking for long answers that provide some explanation and context." I'm happier with this answer now.
Dec
17
comment How to define “or” logically
@gnat it's close enough that I wouldn't have bothered had I seen that answer, but it does still have something to it not found in any of them, so I'm leaving it.
Dec
16
comment How to define “or” logically
Darn, I somehow didn't see this when scanning the existing answers to see if my answer was covered. A well, have a +1.
Dec
16
answered How to define “or” logically
Dec
16
comment Why do some teachers often consider bad practice things that are not?
Early returns are the split infinitives of computing programming; declaring something bad in one language because it can't be done in another.
Dec
16
comment How to enforce good/better source code control practices?
An approach that's high on branching can give the best of both worlds; if you're doing a large job on a branch and regularly merging the master branch into that branch (so all merges are small) then when you finally merge the branch back into master that merge is trivial, but in the meantime you haven't got an intermediary state on master that is broken or otherwise confusingly incomplete. It's easier with some SCMs than other (depending on how light branching is), but it can work with any of them.
Dec
13
comment Defensive Programming vs Exception Handling?
There's a false dichotomy suggested between "deals directly with the problem" and "lets the exception handler deal with it (and ignores the problem)" since the first is in fact "deals directly with the problem by ignoring it", but the phrasing makes the latter seem to be negligent compared to the former when they're either equally correct in ignoring the problem, or equally wrong.
Dec
5
comment Why are there are no PUT and DELETE methods on HTML forms?
PUT and DELETE are safe to repeat (either you don't care whether something has changed in the meantime, or you use If-Match to make sure it doesn't affect a changed resource).
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.