27,087 reputation
25496
bio website thehungersite.com
location United Kingdom
age 46
visits member for 4 years, 1 month
seen 12 mins ago
experienced software engineer with many years in the industry, mostly c++ for large-scale, high-reliability systems.

May
11
answered Is there any point in preventing developers from having a local copy of the database in their machine?
May
6
answered PHP and Subversion workflow
May
6
answered Why does C provide language 'bindings' where C++ falls short?
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
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
23
answered Is String processing more complex than number processing in programming languages?
Apr
22
answered Can a the kind of load Uber handles be served from just one server?
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.