Changes between Version 31 and Version 32 of HowtoGoodProgrammingTechniques
- Timestamp:
- Aug 21, 2025, 2:20:17 PM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowtoGoodProgrammingTechniques
v31 v32 19 19 20 20 21 == Managing State ==22 23 Managing state helps your code know ''what to do'' in various situations. A simple way to do this is to '''use boolean flags liberally'''—they are inexpensive and help your code track its status and decide how to proceed.21 == Managing States == 22 23 Managing states helps your code know ''what to do'' in various situations. A simple way to do this is to '''use boolean flags liberally'''—they are inexpensive and help your code track its status and decide how to proceed. 24 24 25 25 To avoid a bloated codebase with confusing flags, organize them well. For example: … … 115 115 116 116 117 === Remember == 117 === Remember === 118 118 * Be as descriptive as possible. 119 119 * Don't use generic names.