20,048 reputation
14077
bio website thehungersite.com
location United Kingdom
age 46
visits member for 3 years, 5 months
seen 10 hours ago
experienced software engineer with many years in the industry, mostly c++ for large-scale, high-reliability systems.

12h
answered Having unwanted bits in version control history
Sep
12
answered Test-Driven Design is not Unit Testing
Sep
12
awarded  Enlightened
Sep
12
awarded  Nice Answer
Sep
11
comment Should I use expect or should when writing RSpec specs?
@back2dos I don't think you read the question....
Sep
11
revised Should I use expect or should when writing RSpec specs?
edit title for those who can;t read the summary
Sep
11
answered Is there any logical reason to auto-generate code documentation?
Sep
11
answered How do you make sure a .net client application is not being hacked to bypass authorization claims?
Sep
11
comment How do you make sure a .net client application is not being hacked to bypass authorization claims?
Actually the end user does have access to your source code. All he has to do is drop it into a decompiler and he has pretty much everything you typed. .NET bytecode isn't particularly optimised either, unlike a C++ program, so the decompiled code looks remarkably good. This is a problem with bytecode systems such as .NET and Java.
Sep
10
comment Time Management System on Local PCs
I used to have a time app that tracked the time spent in each application. Its an eye opener to see just how much time is spent in Outlook and Word, and not Visual Studio :( (naturally, I gloss over the time spent in Firefox)
Sep
9
awarded  Necromancer
Sep
9
awarded  Necromancer
Sep
6
comment Intentionally incorrect use of language features, specifically “ref” in C#, as a hint to colleagues
yes, use comments. Comments are good and shows that "self-documenting" code can be a bad thing when attempted like this.
Sep
6
comment Intentionally incorrect use of language features, specifically “ref” in C#, as a hint to colleagues
what if he wanted his method to return 2 lists, how would you suggest changing the signature then? (I ask as its easy to say 'just do x' avoiding the intent of the question), BTW his method returns a bool, I assume that's an important return value in the real code, not the cut-down sample posted here.
Sep
4
comment Is using Git Stash as a workflow an antipattern?
"You must never EVER destroy other peoples history" - so true. I'd be happier with git if it never even allowed this to happen in the first place.
Sep
2
comment What's wrong with comments that explain complex code?
@PatrickCollins nearly everything I read on the web is about doing it right first time. Almost nobody wants to write articles on fixing up messes! Physicists say "given a perfect sphere..." Comp.Scientists say "given a greenfield development..."
Sep
1
answered Separation of concerns between objects
Sep
1
comment What's wrong with comments that explain complex code?
@trysis haha, yes but in a world where the programmers are responsible and not businesspeople, they'll never ship as they're forever gold-plating a constantly refactored codebase in a vain quest for perfection.
Sep
1
answered How 'child proof' should i write code as a solo programmer?
Sep
1
comment Is it possible to modify a native executable and change (dynamic) library it depends on?
You can dump the exports from the dll (use depends.exe or dumpbin) and then re-create a dll with the same library names. You can put whatever code you like in those functions, even if it simply calls the desired function in the new dll.