Menu

38 recipes have to answer 8 conditions, 28 pairs of them, and one person who has all eight
📰

38 recipes have to answer 8 conditions, 28 pairs of them, and one person who has all eight

DEV Community: node·Daniel Pertu·19 days ago
#XiU2d9mO
#devtonodejs#devto#dev#recipes#recipe
Reading 0:00
15s threshold

Munchable's recipe screens show you only the recipes that suit you. No list of warnings, no "3 of 12 recipes may not be suitable", no greyed-out cards. That is the right design, and it moves the failure mode: a case with nothing behind it is not a list of cautions, it is a blank screen, and a blank screen reads as a broken app rather than as a gap in a library.

So the library's own test file has a comment about it:

Coverage is now load-bearing in a way it was not when the list showed everything and labelled it. The app shows a reader only the recipes that suit them, so a condition with nothing behind it is not a list of cautions, it is an empty screen.

There are 38 recipes, shared by the app and the website ( munchable.app/recipes is the same data the phone reads). There are eight conditions. The test suite asserts coverage over all of it.

8 + 28 + 1

Three assertions, in order of how much they taught me.

Every condition, with a floor. At least five recipes have to suit each of the eight on its own.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.