dd analysis for concept exercise bird-count#99
Conversation
| comment = | ||
| Comment "elm.bird-count.do_not_use_list" Essential Dict.empty | ||
| in | ||
| describe "solutions that use the List function" <| |
There was a problem hiding this comment.
I don't think I would test all the different uses of List, being as the rule disallows the module completely, and AnyFromExternalModule and similar are already tested, but its not a hill I am going to die on.
There was a problem hiding this comment.
The point of these tests is not to check that the rule works properly, like you said this has been tested a lot by now, the point is to show examples of "wrong" solutions that justify why we have those rules in place.
With these code examples, you can conclude "right, if someone writes a solution like that, they won't learn anything about recursion." Conversely, if you are not able to come up with an reasonable example of a solution breaking a rule, then maybe the rule isn't meaningful.
There was a problem hiding this comment.
We can agree to differ on this, but I do take your point.
Closes #95
Sister PR here.
Another very simple rule, especially since it's the same as
list-ops.This time, Cursor wrote the whole thing, I told it was the same as
list-opsand gave it the example solutions that use List, and boom, I didn't have anything to add. Bluffing.