608 reputation
410
bio website code.google.com/p/paradice9
location United Kingdom
age 36
visits member for 3 years, 6 months
seen Apr 8 at 11:25

I am a British software engineer who lives in the Netherlands. I have worked on radio testing of Bluetooth and other wireless communication standards, and currently work in the navigation software industry. I enjoy developing primarily using modern C++, although other languages and dialects occasionally creep in.

I maintain a small terminal server application called Paradice 9, which is used for distributed tabletop roleplaying support.


Nov
9
comment What are some famous one-liner or two-liner programs and equations?
@peterchen - Not so. The exception safety comes from std::swap on basic types being nothrow and as long as member swaps are written to use only swap, not assignment, they too will be nothrow. Hence exceptions are only thrown at the copy, before side-effects. Naturally, swap will be overloaded for your type and only applies swaps to the members, not the whole, so there's no recursion. The technique is called the copy-swap idiom. See en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Copy-and-swap and cpp-next.com/archive/2009/08/want-speed-pass-by-value for more information about it.
Nov
9
comment What are some famous one-liner or two-liner programs and equations?
@tactoth X& X::operator=(X other) { swap(*this, other); return *this; }
Nov
8
comment What are some famous one-liner or two-liner programs and equations?
@tactoth - Swapping is commonly used for implementing strongly exception safe assignment in C++.
Nov
5
comment Doesn't “if (0 == value) …” do more harm than good?
@mocj - I appreciate that, but your argument was that the "brain stutter" as you're reading the Yoda conditional is a good thing. I'm asking the question that, if that is the case, should we aim to write all code so that we cause "brain stutters"? Genuine question.
Nov
5
comment Doesn't “if (0 == value) …” do more harm than good?
@mocj - Therefore, we should all code as obtusely as possible to ensure that people reading our code need to really read our code?
Nov
3
comment Tips for working fast
Evolve from a place where you have no power into a place where you have "No!" power :)
Nov
3
comment Tips for working fast
+1: Less haste, more speed.
Oct
27
revised What is the appeal of Systems Hungarian?
typo
Oct
27
comment What superstitions do programmers have?
It's even funnier if it's a cat instead of a fly.
Oct
27
comment What superstitions do programmers have?
Replace programmers with everyone and everything. This is the Dunning-Kruger effect.
Oct
27
awarded  Editor
Oct
27
revised What is the appeal of Systems Hungarian?
added 668 characters in body
Oct
26
comment What usability issues have you had with VS2010?
Agreed. It's just a niggle that's going to annoy me when porting older code to 2010.
Oct
26
comment Which comments instantly ring alarm bells when a programmer says them?
I'm more on about the hitting-buttons-on-the-ui stuff. You know, like how people hit apply before hitting ok 'just in case'. When a developer does that for his or her own code, alarm bells ring.
Oct
26
answered What is the appeal of Systems Hungarian?
Oct
26
answered Which comments instantly ring alarm bells when a programmer says them?
Oct
26
answered “Overtime is part of the job” true but a bad attitude?
Oct
22
answered What are the most popular revision control systems?
Oct
21
awarded  Commentator
Oct
21
comment What's your favourite quote about programming?
My colleague has a T-shirt that says: "Engineer's motto: If it ain't broke, take it apart and fix it!"