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

Oct
16
comment When does one hard-code actual data values into the code as opposed to using a DB?
@mcottle fixed data entered into your RDBMS can be stored as a SQL script of insert statements. This can happily be version controlled. too. Frankly, if you need a single local file for config, you should be considering SQLite anyway. A XML config file is always a worse choice than a really simple "ini" file for simple stuff, or a DB for more complex stuff.
Oct
14
awarded  project-management
Oct
13
answered How should I break this user story into tasks
Oct
13
comment How do you solve issue of consistency in concurrent and distributed application (built around Bankers Dilemma)?
The same way - if you cannot lock all participants (and many times you cannot) then you need a reciprocating system such as this. Obviously it depends on your data, systems and access mechanisms. For example- move file, you can move the file to destination and then delete the original - but if you cannot delete the original after copying you can delete the destination. Many file systems do similar - changes go to cache, and a log. If your drive crashes before the cache is flushed the log is used to ensure file consistency by writing the changes or dropping them (eg compare FAT v NTFS).
Oct
13
answered Create fake HTTP server to simulate an API for testing
Oct
13
answered How do you solve issue of consistency in concurrent and distributed application (built around Bankers Dilemma)?
Oct
9
comment Codifying architecture in requirements
If the modules map to hardware modules, then it seems quite reasonable to have these requirements!
Oct
9
comment Codifying architecture in requirements
I'm not sure why the reference to processing power is there then. I suppose you could treat the modules as logical components, not physical ones then. Put the functionality in namespaces regardless of which dll or exe they get built into.
Oct
9
answered Codifying architecture in requirements
Oct
6
awarded  Nice Answer
Oct
6
answered On GitHub, etiquette and pull requests
Oct
6
comment On GitHub, etiquette and pull requests
1. create new github user, fork your own project, make changes, switch to old user, make pull request, switch to new user and see if there's any notification. or... contact github support :)
Oct
6
answered DDD - If an object is saved as a whole to the database, is it per definition an entity, or is it still possible that it is a value object?
Oct
6
comment What should I do in C++ when implementing a container class: storing objects by value or by reference?
don't put raw pointers in containers - especially for a newbie. Stick to shared_ptr or unique_ptr for safety, then the issue becomes one of stack v heap allocation of objects (and yes, prefer stack)
Oct
3
comment Do we need to test 32-bit software in 64-bit Windows?
err. yes, sorry - when a "all CPU" platform was used, the resulting binary worked fine on a 32-bit dev box but the exact same binary failed horribly when put on the 64-bit server. You can spend a lot of time checking the application's configuration data in such cases.
Oct
3
comment Do we need to test 32-bit software in 64-bit Windows?
The biggest issue we had was running with other 32 bit libraries, .NET would simply fail to load them when run on a 64-bit machine.
Oct
3
comment Is there a 'standard' SQL that can replace all the various custom versions?
You can level the same argument against any standard, be it HTML, OpenGL or C. The fact that its difficult to make 1 thing fit every vendor's desire for differentiation doesn't mean its not a good thing to have.
Oct
2
comment When does it make sense to compile my own language to C code first?
@RobertHarvey no, I mean C code. In the OPs case, this is an Intermediate Language halfway between his own high-level language and machine code. I put it in quotes to try and convey this idea that its not IL as used by many people (ie Microsoft's .NET IL for example)
Oct
2
comment When does it make sense to compile my own language to C code first?
@emodendroket Microsoft is using their C++ compiler backend to compile C# IL into machine code themselves now. The OP would be advised to skip the middleman.
Oct
2
answered When does it make sense to compile my own language to C code first?