bluecheese452
Joined 4 years ago
Joined 4 years ago
If I have a function add_nums that takes 2 numbers and adds them, there are like infinite inputs that can be tested.
If I have a function shape_color that can take circle, triangle, square for the shapes and red, blue, for the colors, then there are 6 different states. But what if my function just returns if it is a circle or triangle. It only cares about 2 different color paths when it is a square. Do I test all 6 states or do I test only the 3 code paths?
I think code coverage like many things is a “it depends”.
Your javascript can target those 2 divs, ala doc.getElementById(counter).innerHtml and document.createElement.
Like that kind of works for simple stuff. But it gets more complicated fast. Reactivity is when your counter listens for change in the count and updates itself whenever that count changes.
If he is diving into low level details that is a different story.
Basically all his waking hours will be counted as working.
Me who lived in a country where war hadn’t touched its shores for centuries was unable to achieve that.
It isn’t about building up. The wealth is already here, in far greater quantities than existed in a recently war torn communist country.