Enhance notes on algorithms.

This commit is contained in:
Jason Turner
2019-04-18 15:04:29 -06:00
committed by GitHub
parent 54e2a3b7a4
commit 31cef74911

View File

@@ -29,7 +29,13 @@ See http://mortoray.com/2015/06/15/get-rid-of-those-boolean-function-parameters/
## Avoid Raw Loops ## Avoid Raw Loops
Know and understand the existing C++ standard algorithms and put them to use. See [C++ Seasoning](https://www.youtube.com/watch?v=qH6sSOr-yk8) for more details. Know and understand the existing C++ standard algorithms and put them to use.
* See [cppreference](https://en.cppreference.com/w/cpp/algorithm)
* Watch [C++ Seasoning](https://www.youtube.com/watch?v=qH6sSOr-yk8)
Consider a call to `[]` as a potential code smell, indicating that an algorithm was not used where it could have been.
## Never Use `assert` With Side Effects ## Never Use `assert` With Side Effects