25,926 reputation
25193
bio website thehungersite.com
location United Kingdom
age 46
visits member for 4 years
seen 4 hours ago
experienced software engineer with many years in the industry, mostly c++ for large-scale, high-reliability systems.

Apr
29
comment What options does a disciplined developer have when joining a team of undisciplined developers as a regular member, not a lead?
@ScottNimrod sure, which is my point but your question equates bad with undisciplined, and lack of improvement with bad (developers)!. I would say a heavy refactoring of your question is in order!
Apr
29
comment What options does a disciplined developer have when joining a team of undisciplined developers as a regular member, not a lead?
@ScottNimrod "continual improvement of practice" is not necessarily anything bad. Try going to a bank's COBOL dev and saying "why are you stuck in the mud and not refactoring and updating this old code". Bad dev means writing poor quality, unmaintainable code. If they are writing good quality code, then I'd rather have them than any number of 'continually improving' developers.
Apr
29
comment Is workflow a decent solution for Business Development
I just wanted to reaffirm what @Telastyn said - workflow is not a good idea, it looks great when you have a small system, but when it grows it grows in complexity exponentially, you end up requiring more staff to manage and configure the system than you would have needed just to write it in the old-fashioned way.
Apr
28
comment Factory for creating a singleton instance
@liortal ahhh, you should have said in the tags at least. I think you'll have to fudge your code to suit whatever test tool you're using. Or you could change your dev/test platform to Windows and run integration tests on your current one :-)
Apr
28
comment Factory for creating a singleton instance
@liortal Fakes is a great tool, it solves the problem of having to fudge your code just to make the testing framework happy. It basically hacks the binary with a replacement class or function so you build your code as normal, and then use it to swap out the normal function with your test one. A bit like a hacker replacing game protection routines. It an even be used with built-in statics like DateTime!
Apr
28
comment Factory for creating a singleton instance
Alternatively, keep the singletons and mock them out at runtime using a tool like Fakes
Apr
28
comment Company wants to write custom project management tool, rather than use third party product
@GregJackson I think the root is that this dev thinks he is (or should be) the company director. As a dev, management tells me what to do and I do it - its their money and as long as I get paid, I'm happy to work for them. His quote: Thus, as far I'm concerned, the devs have a very big role in deciding how a company should manage projects and what tools are used....
Apr
28
comment Translation algorithm - combinations to indices
If you have no way of calculating a particular row in the table from your cards then you'll just have to loop through them all.
Apr
28
comment Translation algorithm - combinations to indices
If you generate the list of all combinations, you now have a hash table. Given a set of cards, generate the same hash and do a lookup. The trick is a repeatable way of generating the hash number from a set of cards.
Apr
27
comment Formal justification for use of third-party libraries
Ask then why they are using a 3rd party Operating System and not writing their own in-house . A library is not fundamentally different except in size.
Apr
27
comment Static console object or dependency injection?
Oh well, must be because of the "never use singletons" dogma. I like the stream aspect to your answer, but you don't say quite how to tie that to his problem so its useable without injecting one everywhere or using a singleton to hold it.
Apr
27
comment Static console object or dependency injection?
I can guess why downvoted, you say " do not use singleton" followed by "use a singleton" when debugging. Its not a good answer given that the first part is very dogmatic, and the second part contradictory. Singletons have their place, and I don't see much distinction between a singleton used for debugging and a singleton used for other reasons - any issues having singleton in the code doesn't change based on its use.
Apr
21
comment Multi platform password storage with retrieval for applications with authorization?
ah, cross platform.. keepass might not suit you completely, but there is KeepassX which is a Linux port of it. I don't use Mac so I can't advise on differences. There are others - such as Gpasswordman which is available on all 3 main platforms, and Apache licenced.
Apr
21
comment Draw a Call Graph
doxygen - will generate call/caller graphs, I'm not sure how much support it has for python. I know you can document python code for it.
Apr
21
comment Excel worksheet population and fomatting is slow
I found that updating an Excel document using OLEDB was superslow with the document open (where you could see it happening), but with the document closed it was quite quick. That may not help, but its possible you could create a temp sheet and then merge it in afterwards.
Apr
21
comment provability of while loop vs for loop
@VincentAdvocaat I'd say that with a while loop you expect the condition variable to be tampered with in some way, whereas a for loop you expect it to be changed only in the step part of the for loop construct itself. This principle of least astonishment is more important than many realise in programming.
Apr
21
comment Does using a database server make sense if the application only does things locally?
@DocBrown IIRC MS SQLServer Compact gives you this as it comes as a dll, though LocalDB is probably the better choice - it doesn't require installation as a service though does require admin rights.
Apr
20
comment Extended usage of an exception
@Cerad so how does it know what all the valid methods are which is what the OP is intending to put in the exception object.
Apr
20
comment Multi platform password storage with retrieval for applications with authorization?
You can get the source code for keepass, modify it to suit your needs - keychain on Mac is basically the same thing - a secure place to write your passwords.
Apr
17
comment Transforming XML to JSON in C++
yes it is.. but you asked "which one do I choose". If you've already chosen xslt... get on with it! :)