24,759 reputation
14992
bio website thehungersite.com
location United Kingdom
age 46
visits member for 3 years, 11 months
seen 12 hours ago
experienced software engineer with many years in the industry, mostly c++ for large-scale, high-reliability systems.

Sep
25
comment What is “egoless programming”?
@BobMurphy "the more I learn, the more I know how little I know"
Sep
25
comment What is “egoless programming”?
Just because your colleagues are ass-hats doesn't mean you have to be too! The idea is that if we encourage egoless coding, then the next generation might be less of a bunch of prima-domnna dweebs and more professionals.
Sep
24
comment Is Dependency Injection worth it outside of UnitTesting
That comes down to whether you test for behaviour or state. The private methods need to be tested in some way, obviously, but if you're a classical TDD person, you'll test them by testing the class "as a whole", the test tools most people use are focussed on testing each method individually... and my point is the latter are effectively not testing properly as they miss the chance to perform a full test. So I agree with you, while trying to highlight how TDD has been subverted by how some (most?) people do unit testing today.
Sep
23
comment Will a binary include methods that are not called in the source code?
That's right. Smaller binary = better performance, load time, etc. In C++ you famously "only pay for what you use".
Sep
23
answered Will a binary include methods that are not called in the source code?
Sep
23
answered Is Dependency Injection worth it outside of UnitTesting
Sep
20
comment I have to use Visual Studio 2005. What are good alternatives to using LINQ?
@Stephen - you never know what wierd, difficult-to-track-down errors you're going to get with the new version. As someone who's just migrated from VS2002 to 2010, we've had to spend much longer than I anticipated on such issues. With a release round the corner, you stick with what works.
Sep
19
revised Hyperlinked, externalized source code documentation
added 670 characters in body
Sep
19
answered Hyperlinked, externalized source code documentation
Sep
18
comment Do delegates defy OOP
sorry, but you can specify a function prototype in C++ (or C) to strongly type a function pointer. For example
Sep
15
revised Is it a bad practice to modify code strictly for testing purposes
added 218 characters in body
Sep
15
answered Is it a bad practice to modify code strictly for testing purposes
Sep
14
comment Should We Code for Performance or Stability?
Nope, working code that cannot be maintained is preferable - hence all those ancient VB6 or Java programs that enterprises still use. Note that you said "if its maintainable then it can be fixed", which is another way of saying "still doesn't work yet"
Sep
14
answered A question about storing passwords
Sep
14
comment Why does TDD work?
Bridges can be duplicated - or at least, the bridge blueprint you buy from the architect can, roughly, with modifications to suit your exact circumstances. The point is that if you need a bridge you will go to the architect and he will give you a list of only a few types you can have - suspension, box, arch etc, and a limited list of materials to build it out of.
Sep
14
comment Why does TDD work?
Can you know exactly how many lavatories and where they should be placed? The answer is yes - go ask any architect and they'll tell you this information is made up-front and sometimes with clear statistical data to back it up.
Sep
14
answered TFS Branching Advice
Sep
13
comment Until what point should I refactor?
Not necessarily, you have a God object, and afterwards you have 2 god objects. All you've done is reduce the size of a class, the code isn't necessarily better. Obviously you can improve your code using refactoring, but its not a silver bullet to fix everything, you still need to think about what you're doing and more importantly why. Blindly following some rules that tell you to reduce the size of a class is a bad thing to do, as I think you know - worrying over whether 1 class with 10 methods is as bad as 10 classes with 1 method each.
Sep
13
answered Until what point should I refactor?
Sep
12
awarded  Nice Answer