Reputation
3,085
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
12 25
Impact
~140k people reached

16h
comment Implementing redundant GIT backup scheme
You can probably use git hooks to push to other remotes after having pushed to e.g. origin
Apr
30
awarded  Popular Question
Apr
9
comment Why does everyone use Git in a centralized manner?
Having a team of 10, it doesn't seem very practical if they all have to pull from each other? Where will the 'final' code be for e.g. a release? What if a collegue has a critical piece but you haven't pulled from him, then he leaves on vacation without internet access? Etc..
Mar
29
comment Is there a better way to debug while avoiding getters/setters?
hunting down every point where the variable is accessed doesn't the debugger allow you to add breakpoints which break execution whenever a memory location (the memory for the variable) is accessed?
Mar
7
comment The trend of the “develop” branch going away
Having worked with a develop branch for a year or two, just to have it merged into master every now and then, I can just say: amen, abandon that thing :]
Mar
2
comment Trust .net compiler after Microsoft updates
stackoverflow.com/a/35731566/128384 covers it pretty well - that being said, you could as well ask 'how can I be sure my applications won't be affected by the next bios/os/... update'? You can't, this is software.
Jan
27
comment How are non-folder files called?
has a misleading name are you sure? Most libraries in any language have separate is_directory/is_file functions and they behave as expected (i.e. is_file returns false for directories)
Dec
15
comment Factories, vectors and smart pointers - Design Question
The answer to almost all pointer problems is std::unique_ptr hear hear!
Dec
12
comment All methods in one file/class versus multiple files/classes
^ this. I just cannot imagine having to work on codebase bigger than a couple of tens of lines without the help of proper search - your friend really urgently needs to learn some new tools
Nov
24
awarded  Popular Question
Nov
22
comment How to avoid violating the SRP in a class to manage caching?
@DocBrown problem is the lack of context to the question. I like this answer beacues it shows a way which I have used time and time again in larger applications and because it's easy to write tests against, I also like my answer because it's only a small change and yields something clear without any overdesigning so as it currently stands, without context pretty much all answers here are good :]
Nov
21
answered How to avoid violating the SRP in a class to manage caching?
Sep
26
awarded  Yearling
Aug
22
comment Why doesn't “object reference not set to an instance of an object” tell us which object?
note: c#6 now has nameof so your snippet could be throw new ArgumentNullException(nameof($argument$)) which has the advantages of not including magic constants, being checked by the compiler, and working better with refactoring tools
Aug
21
awarded  Good Answer
Aug
11
comment How to decide git repo division with workflow considerations?
also see gregoryszorc.com/blog/2014/09/09/on-monolithic-repositories and news.ycombinator.com/item?id=10007654
Jul
13
comment Rust-style error handling in C++
Well, this is more a review of the c++ implementation but thanks anyway. I'm not sure I completely understand point 1. Do you mean using something like std::unique_ptr< E >?
Jul
13
asked Rust-style error handling in C++
Jul
4
comment How to implement a NavigationManager class without using singleton pattern
Not using a singleton but instead passing an instance, possibly using an interface instead of a concrete implementation is (afaik) the way to not having to deal with singletons, yes. Whether or not using a framework to help with that is also the way I dare not say. Definitely not always.
Jul
4
answered How to implement a NavigationManager class without using singleton pattern