Skip to content

Commit 7a29259

Browse files
committed
Add note on avoiding boolean parameters
1 parent bbbb6e5 commit 7a29259

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

05-Considering_Maintainability.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ namespace my_project {
2121
}
2222
```
2323
24+
## Consider Avoiding Boolean Parameters
2425
26+
They do not provide any additional meaning while reading the code. You can either create a separate function that has a more meaningful name, or pass an enumeration that makes the meaning more clear.
27+
28+
See http://mortoray.com/2015/06/15/get-rid-of-those-boolean-function-parameters/ for more information.
2529
2630
## Avoid Raw Loops
2731

0 commit comments

Comments
 (0)