Friday, March 27, 2015

How much code coverage do you really need?


http://software-development-thoughts.blogspot.ca/2011/04/how-much-code-coverage-do-you-really.html

Two quotes from Uncle Bob
“Two things. Repeatability and cost. Manual tests are horrifically expensive compared to automated tests.”

“Manual tests aren't tests; they are trials. And since there are humans involved, they are suspect."

Tuesday, March 24, 2015

Last line effect

We expose the “last line effect,” the phenomenon that the last line or statement in a micro-clone is much more likely to contain an error than the previous lines or statements. We do this by analyzing 208 open source projects and reporting on 202 faulty micro-clones.


x += o t h e r . x ;
y += o t h e r . y ;
z += o t h e r . y ;

http://www.st.ewi.tudelft.nl/~mbeller/publications/2015_beller_zaidman_karpov_the_last_line_effect_preprint.pdf

Thursday, March 19, 2015

About Command Idempotency

Definition from Gregor (New ACID)
“In the world of distributed systems, idempotency translates to the fact that an operation can be invoked repeatedly without changing the result.”

http://www.eaipatterns.com/ramblings/68_acid.html
http://codebetter.com/gregyoung/2010/08/12/idempotency-vs-distibuted-transactions/

Idempotency Patterns
http://blog.jonathanoliver.com/idempotency-patterns/