4 ms·
> think of the piece of software's entire input domain, carve it up into a set of equivalence classes, and then determine what the expected behavior should be f
by pjc50 8y ago
> think of the piece of software's entire input domain, carve it up into a set of equivalence classes, and then determine what the expected behavior should be for a piece of input from each of those classes
This is an extremely good way of putting it. Doing some of this at the requirements stage if possible can be very helpful too, because you can detect nonsensical or conflicting requirements before you even write any code.
- TeMPOraL 8y agoSeconded. I haven't seen it summarized so well before, and the sentence you quoted is the very one that made me favourite that comment.
- specialist 8y agoMetaphorically, this is functional style programming, mapping inputs to outputs, minimize state and side effects. His conclusion is the money quote for me: "...your job is finding ways to simplify that input space as much as possible." I do this. Instinctively? I feel more or less alone in this practice. My prime motivator is to do less work. Less is more. Concision is a virtue. Blah, blah, blah. The trouble with my strategy is that simple is hard. Much harder than kanban themed JIRA mediated velocity maximizing slapdashery. Also harder to measure. So compared to my peers, it looks like I'm moving in slow motion. To illustrate, someone who fixes the same code pathway multiple times is scored higher than someone (like me) who fixes it (mostly) right the first time. The tortoise vs the hare. -- "If I Had More Time, I Would Have Written a Shorter Letter" -- Blaise Pascal https://quoteinvestigator.com/2012/04/28/shorter-letter/ "-2000 Lines of Code" http://www.folklore.org/StoryView.py?story=Negative_2000_Lines_Of_Code.txt http://www.folklore.org/StoryView.py?story=Negative_2000_Lin... -- Aside: I was a QA/Test manager for a while. I really cared about this stuff, back in the day. Now it seems no one cares.
- bunderbunder 8y agoI'm rather fond of a book, Specification by Example by Gojko Adzic, that's partially a manifesto for, and partially a guide to, doing this.
- chrisweekly 8y agoThanks for the rec! Just bought for $5 (kindle ed).
- shady-lady 8y agowhat site? i can only see manning for $36. not on amazons.
- kbenson 8y agoHere[1] it is on Amazon, which is cheaper, and seems to have used copies for ~$18, but I can't find anything for $5. Maybe it was a typo? 1: https://www.amazon.com/Specification-Example-Successful-Deliver-Software/dp/1617290084 https://www.amazon.com/Specification-Example-Successful-Deli...
- berti 8y agoI'm guessing this one (with a slightly different title: Bridging the Communication Gap: Specification by Example and Agile Acceptance Testing) http://a.co/d/6tGlrUc http://a.co/d/6tGlrUc
- chrisweekly 8y agoYes, that's the $4.99 one I found. http://a.co/7gJYjIx http://a.co/7gJYjIx
- specialist 8y agoThanks for the pro tip. Already reading... I've been working on a notion tentatively called "example driven development". Use specifications to generate code. Kinda like compiling swagger docs to implement an HTTP server. My first such effort was using the BA developed HL7 interface documents (swagger for HL7) to code generate our implementations. Worked great.