Reputation
31,921
Next tag badge:
112/100 score
19/20 answers
Badges
5 66 116
Newest
 Electorate
Impact
~1.1m people reached

Jul
5
comment Focus of unit tests on code
@urosjarc the smallest block of code in OOP is the class. Otherwise, why are you grouping code into classes if methods are so unitary? They're not, they're parts of a unit, where each unit is the class. That's why you write OOP code in the form of classes.
Jul
5
reviewed Edit Is testable code better code?
Jul
5
revised Is testable code better code?
Copy edited. Added some context.
Jul
3
awarded  Enlightened
Jul
3
awarded  Nice Answer
Jul
2
awarded  Guru
Jul
2
comment Git branch model critique: always derive from master
I saw that model, in it, develop is the new trunk and master is a "QA" branch. That model still works for you, but feel free to use master as the trunk and create a new 'QA' branch between master and releases.
Jul
2
comment Is testable code better code?
+ - its the architecture of your code that matters. Easier testing is just a happy side-effect.
Jul
2
comment Is testable code better code?
disagree about it being DRY - wrapping GetCurrentTime in a method MyGetCurrentTime is very much repeating the OS call with no benefit except to assist the test tooling. That's just the simplest of examples, they get much worse in reality.
Jul
2
answered Is a number used only once and directly bound to a function parameter a magic number?
Jul
2
comment How much can you detect undefined behaviour using testing
interesting... consider a threaded program - how much can you test to prove the threads do not corrupt each others state as such a bug would never be deterministic?
Jul
2
awarded  design
Jul
2
awarded  Good Answer
Jul
1
awarded  Nice Answer
Jul
1
comment When to use single-line if statements?
I'm not convinced either duplicate link is relevant when you read past their titles.
Jul
1
answered Is testable code better code?
Jul
1
comment How to authenticate against an API?
Though you have to be a pretty advanced 5 year old, how about: roguelynn.com/words/explain-like-im-5-kerberos
Jul
1
answered When to use single-line if statements?
Jul
1
answered Storing exception information as a member variable for query later, bad practice?
Jul
1
comment How valuable is decoupling in proprietary software?
I don't know, there are companies that make a living selling components (eg UI grid controls) and there are many who provide components for free (eg OSS libs like openssl, tinyxml, ffmpeg, log4net, to name a tiny number). You are right that many commercial developers making general software have failed at producing isolated components... but this is because they suck (oh ok, ... are too inexperienced or have no time or inclination to define the interface boundaries properly)