Quote:
Originally Posted by frasnow
I would recommend you try to design your software without limiting the number of matches. Why not make the number of matches a setting? Programmers are always making the mistake of saying "we'll never run-out of ______." You might be too young to remember Y2K, but I recommend reading about it.
|
This.
Write your code to be flexible to the number of matches. I've lost track of the number of times I programmed in a "magic number" hard limit to something and had that cause unpredictable results somewhere down the road because it was exceeded.
It's also exactly like creating CAD models; draw them robustly using reference planes, axis' and robust sketch relations and dimensions, and the CAD model is very resilient to iterative change. Try to cut corners by doing things "quicker", and you'll spend more time in the long run fixing sloppy work than just doing it right the first time.