19,097 reputation
13772
bio website thehungersite.com
location United Kingdom
age 45
visits member for 3 years, 3 months
seen yesterday
experienced software engineer with many years in the industry, mostly c++ for large-scale, high-reliability systems.

Jul
26
comment Deferred execution of Dispose for IDisposable objects
You don't, but you can wrap the class in your own object and call Dispose in the finaliser. After all, isn't that the pattern you use if your object doesn't get Disposed directly or in a using block.
Jul
26
comment What are some version control systems based on different concepts than Git, Mercurial etc?
sure, but it doesn't matter what gets stored, or how it does it. You could use a SQLServer record, or a file, or a heap of files... a diff is still generated and applied. There's plenty of implementation differences, I meant the concepts are fundamentally the same. incidentally, git will have to open 2 versions of the file - or it cannot create the diff that the developer made between checkins. Its probably easier just to store the diff.
Jul
25
comment What are the minimum memory requirments a microprocessors must have to perform any calculation?
no worries abut the question. Loads of people don't understand how computers really work nowadays, which is a pity as they're so simple. (computers, not the people that is ;) ). There are online education materials in this area if you'd like to learn more, or more advanced reference
Jul
25
comment Should temporary code be put under version control and how?
@MattThrower in a bubble quote, coming from the lips of Clippy?
Jul
25
comment How much data should exceptions hold?
@whatsisname fair enough - but those are exceptions to the rule (haha). I'm not necessarily convinced by the file-open case though, return null is better IMHO. Failing to write to an opened file, that is another matter.
Jul
24
comment Web App vs Windows 8.1 Modern App (Metro)
absolutely! You#'ll have to implement costly code to cope with older clients communicating with the newer servers. Which is also a right PitA. Think of the additional testing you'll have to do with each old version too.
Jul
24
comment Should temporary code be put under version control and how?
@randomA not really - git does it that way so you can continue to commit while working in a distributed way (even offline). When you push upstream you still push all individual commits (unless you effectively delete them, something any SCM user should be very wary of!)
Jul
24
comment Is there a way to use RAII techniques in COM?
@Mike not really, I refer to a smart pointer class - a facade rather than a factory. But factory would work too.
Jul
24
comment Should temporary code be put under version control and how?
@Vorac - that's what code reviews and testing is for! I can show you far worse than that - code that doesn't work even though it looked good at first glance. Return 7.. if only they were all so obvious!
Jul
24
comment Is there an official programming format?
The only standard worth anything is the one that matches the code you're maintaining. Consistency with the existing code is the only standard worth a fig.
Jul
23
comment Relation between projects and solutions in VS
I agree NuGet is a "cool new thing", and I am always distrustful of Microsoft "cool new" things, but in this case it appears to be a solution to dependency management (if over-engineered). You can home-grow your own by simply copying dlls into a common directory in a post-build step.
Jul
20
comment Managing unique data correctly in SQL
it is, but this is the answer he's looking for - a unique constraint on the data. I don't consider 1,2,4,5 are solutions worth considering unless you have special reasons.
Jul
20
comment What's so difficult about SVN merges?
Tree conflicts - yes, SVN has difficulty with these, though TBH so do every other SCM. Git has some heuristics to try and figure out if files that have been renamed or moved are the same, but it doesn't (cannot!) always get it right. I think SVN should put some effort into making resolving these conflicts easier to understand.
Jul
16
comment Desktop to Web - How to deal with user-interactive workflows
@OlivierH yes it would - even angluarjs webapps run a large part of the html page as 'static' html, the angular part just connects to back-end data services and displays (and allows updating) of it easily. I'd take a look at Wt as mentioned already, it uses websockets for interactivity by creating the html gui for you - you effectively write a Qt app and the GUI part gets magically converted to HTML instead of desktop.
Jul
15
comment Started wrong with a project, should I start over?
This is the one situation where the full rewrite might be appropriate - if he's basically used the first version as a training tool, then the 2nd version will be the "one he should have written". I think in all other cases, the rewrite is bad advice, but not here. Not for someone who wrote the code not really knowing what he was doing. Mind you, fixing it should be another excellent training opportunity!
Jul
15
comment Desktop to Web - How to deal with user-interactive workflows
hm mmm, sounds like its going to turn into one of "those" enterprise Java applications users know and love. You can write a "single page app" using websockets and angularjs, but my advice is to really consider what the usability will be to make this a success - parroting the existing desktop GUI paradigm will need to be tempered by some practical considerations of web tech and expectiations.
Jul
15
comment How to canonise a road network
I think you're saying what DeerHunter said in his comment...
Jul
12
comment Multiple intranet/internet systems partially working on same data - database strategy
You don't. It was just a suggestion of a split that might be appropriate. In our case, the data was not necessarily able to be joined, in that case we had to query both sets and merge them in the app tier. That's what happens when you have a DB of data, and a 3rd party web service that you have to interrogate for the same person.
Jul
11
comment Multiple intranet/internet systems partially working on same data - database strategy
I mean separate DBs with different schemas and data - eg 1 DB for users, another for your forum, another for jobs.. whatever. I used to work in a place that aggregated data from many sources (credit cards, bank accounts, electoral roll, etc). Each one went into a different schema and was combined into something useful for the user in the app tier. (mind you, these schemas were placed into a single DB server that still performed well enough to serve 250,000 requests per hour). Remember - Stored procedures are your friend, DB performance matters more than developer ease.
Jul
11
comment Do you rotate agile team members?
Ah for the days where a small group of freelance staff wee the only ones who knew how the system worked, protected their positions and isolated status... and held the company to ransom with their exorbitant fees. The good old days, well, for the contractors - not anyone else.