Reputation
Next tag badge:
97/100 score
22/20 answers
Badges
3 63 110
Newest
 Enlightened
Impact
~1.1m people reached

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)
Jul
1
awarded  Nice Answer
Jul
1
comment Character or symbol for representing cast opperation
casting is nearly always represented by () with the type inside the brackets, though C++ uses <> with the value to be converted inside (). Its tricky to have a single symbol to call a conversion operator though, if you can determine the type to cast to something like A () B might work, converting B into A's type and copying it into A, otherwise you might use ()= or put require the type to be placed inside the brackets. If you need a single character, how about Theta or Phi.
Jul
1
answered Recommended HTTP status code for “plan limit exceeded” response
Jul
1
awarded  Guru
Jun
30
comment Status transitions with extra information in RESTful interfaces
I'm not sure I understand, are you just asking for semantics of your request? Send both properties at once, in the initial POST, the status in the URI and the additional deliveredTo as request body. I'd POST just the package ID and put all properties to set in the body, but I guess your framework is restricting you.
Jun
30
answered Status transitions with extra information in RESTful interfaces
Jun
30
answered Idiomaticy of macros in C++
Jun
30
comment Is the use of set / get prefix discouraged for methods if they don't actually mutate / access fields
looks like AndroidStudio is making assumptions based on method name. You'll just have to put up with it using that IDE.