Other Design Thoughts
Learn about the other design principles that can improve test performance.
We'll cover the following
The MatchSet()
constructor does the work of calculating the score. If the calculated score isn’t consumed by a client, the effort to compute it is a waste. For this reason, avoid doing any real work in constructors.
Change the code to calculate the score when it’s requested:
Get hands-on with 1400+ tech skills courses.