effective c++
[MECpp]Item-16 Remember 80-20 Rule
· β˜• 1 min read

The 80-20 rule states that 80 percent of a program’s resources are used by about 20 percent of the code.


[MECpp]Item-14 Use Exception Specifications Judiciously
· β˜• 3 min read

Exception specifications provide a documentation aid and an enforcement mechanism for constraints on exception usage, but they are only partly checked by compilers and they are easy to violate inadvertently.


[MECpp]Item-13 Catch Exceptions by Reference
· β˜• 2 min read

If catching by reference, we sidestep the questions about object deletion, avoid slicing exception objects, retain the ability to catch standard exceptions, and limit the number of times exception objects being copied.