9,715 reputation
11853
bio website anang.com
location Oxford, United Kingdom
age 43
visits member for 3 years, 8 months
seen Dec 19 at 2:08

I'm a geek, a role-player and a biker.

I work for Diamond Light Source, developing open source scientific software for the UK national synchrotron facility. In the past I have worked in the robotics, mechatronics and laser micro-machining industries.


May
13
reviewed Approve When is it appropriate to use a bitwise operator in a conditional expression?
May
13
comment Is micro-optimisation important when coding?
I'm note sure how that helps @supercat - whether you are reading the value of x to give it as an operand to the branch or reading x to give it as an operand to the multiply, you are still reading x.
Apr
21
awarded  Nice Answer
Apr
8
awarded  Yearling
Apr
3
comment Why is 80 characters the 'standard' limit for code width?
@mattnz I think that you have that the wrong way around. Dot matrix printers from the 1970's were almost certainly intended to duplicate line printers from the 1950's. 132 column compressed text was certainly intended to allow you to print out text meant for wide printers (11" at 12CPI) on narrow paper (8" at an eye watering 16.5CPI).
Mar
31
comment Why is 80 characters the 'standard' limit for code width?
@abatishchev It isn't about voting down answers you don't like, it's about voting down answers which aren't useful. See the mouse-over text of the voting buttons.
Mar
31
comment Why is 80 characters the 'standard' limit for code width?
As I suggest in my answer @CMike, I do think that it is possible that the punch card width is related to the size of typewriter platens and thus paper sizes (or vice versa).
Mar
31
revised Why is 80 characters the 'standard' limit for code width?
added 19 characters in body
Mar
31
comment Why is 80 characters the 'standard' limit for code width?
Damnit, you're still getting votes quicker than I am. I knew I should have put a pretty picture on my answer rather than going off and doing boring research. *8')
Mar
31
comment New to TDD. Should I avoid private methods now?
In an ideal world, that would be the case @Magnus, but in the real world interfaces often have to maintain backward compatibility, so there are some cases where complex test code can be avoided by judicious use of fragments/partial classes. Anyway, all of this section is filed under 'if you really need to test private methods' having already stated that it is better to design in such a way that this is not necessary. Ultimately your comment is just a restatement of what I've already said in my answer, so I've edited my answer to make that clear.
Mar
31
revised New to TDD. Should I avoid private methods now?
added 273 characters in body
Mar
20
comment Is chartership important for software engineers?
Still no Round Tuit by the way @Karlson. *8')
Mar
4
awarded  Nice Answer
Feb
19
reviewed Approve Doing work in vector's push back
Jan
28
reviewed Approve How should I validate code when there is no one to do code review?
Jan
18
comment Is micro-optimisation important when coding?
@phkahler If I remember correctly, it actually produced a greater than 10x speedup as it was often dealing with sparse matrices. The branch was 1 cycle, the assignment was 1 cycle, the floating point multiply was something like 27 cycles, so the CPU took either 2 or 28 cycles rather than always taking 27 cycles (there was no pipelining on this CPU).
Jan
15
awarded  Good Answer
Jan
14
comment Should public code libraries I have written stay free and open after using them in a contract / commercial product?
Which is why @AndrewRussell the answer of mine, which I reference in my answer, specifically has a section on Dual License Contributor Agreements. Since the original question doesn't mention anyone else contributing back to the project, I didn't feel that was necessary here.
Jan
5
comment Gerrit code review, or Github's fork and pull model?
Thanks for the clarification @likethesky but I have a rather more literal interpretation of 'editing history', and as far as I'm concerned, anything which results in changesets which contain content that you didn't explicitly commit is 'editing history'. I realise though that this is a rather draconian interpretation and one which few others adhere to. *8')
Sep
13
awarded  Necromancer