Changes between Version 31 and Version 32 of HowtoGoodProgrammingTechniques


Ignore:
Timestamp:
Aug 21, 2025, 2:20:17 PM (3 weeks ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowtoGoodProgrammingTechniques

    v31 v32  
    1919
    2020
    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
     23Managing 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.
    2424
    2525To avoid a bloated codebase with confusing flags, organize them well. For example:
     
    115115
    116116
    117 === Remember ==
     117=== Remember ===
    118118* Be as descriptive as possible.
    119119* Don't use generic names.