A

  • A* algorithm , Finding a Clear Path Forward
  • abstraction, best practice for readable code , The Role of Short-Term Memory - Use Abstraction to Make Things Easier to Understand
  • Adams, Douglas , Detecting Mistakes Is Good, but Making Them Impossible to Express Is Better
  • adapter classes, in parallel reworking of code , Migrating from Old Stack Contexts to New Ones
  • allocated memory , Applying the Five-Step Optimization Process , A Concrete Example , A Concrete Example - Making Stack Contexts a Little Smarter
  • Animal Crossing , Pull the Weeds
  • animation smoothing, relying on state for , Dealing with Unavoidable Delay - Dealing with Unavoidable Delay
  • arbitrary-precision integers , Sometimes It’s Better to Simplify the Problem Rather than the Solution
  • architecture limits, reaching , Is It Twice as Good? - Rework Is a Good Opportunity to Fix Small Problems
    • assessing size of change’s impact , A Simple Rule of Thumb - A Simple Rule of Thumb
    • fuzzy benefits, dealing with , Dealing with Fuzzy Benefits
    • gradual evolution versus continual reinvention , Gradual Evolution Versus Continual Reinvention - Gradual Evolution Versus Continual Reinvention
    • ignore, tweak, or refactor choice , Three Paths Forward: Ignore, Tweak, or Refactor
    • rework focus on small problems , Rework Is a Good Opportunity to Fix Small Problems
  • Area struct , It’s Actually Worse than YAGNI
  • arguments
    • collapsing related arguments into one , Enlisting the Compiler’s Aid to Avoid Shooting My Foot
    • mismatched arguments leading to failure , Shooting Myself in the Foot via a Ricochet - Enlisting the Compiler’s Aid to Avoid Shooting My Foot
    • type-safe optional arguments , Making Ordering Mistakes Impossible - Making Ordering Mistakes Impossible
  • arrays
    • JavaScript versus C++ , Arrays
    • solving Easy problems in , Easy Problem, Simple Solution - Easy Problem, Three Complicated Solutions
    • StackVector class , Making Stack Contexts a Little Smarter , Migrating from Old Stack Contexts to New Ones
    • using to avoid mismatched argument failure , Enlisting the Compiler’s Aid to Avoid Shooting My Foot
  • assert macro , Don’t Trust the Caller , Problem-Solving Conventions , Don’t Tell Stories That Aren’t True
  • audio compression codec, and automated testing , Automated Testing Can Be Tricky
  • audit function , Audit State You Can’t Eliminate , Minimizing State
  • auditAll function , Audit State You Can’t Eliminate
  • automated testing, pros and cons of , Don’t Count on Your Users - Automated Testing Can Be Tricky
  • automating
    • not using to skip needed drudgery , The Siren Call of Automation
    • reproduction of problem in debugging , Dealing with Unavoidable Delay
    • testing mathematically , To Automate or Not to Automate - To Automate or Not to Automate , When the Math Changes - When the Math Changes
  • AvoidLozenges struct , Finding a Clear Path Forward
  • awareness callback function , Distributed State and Complexity - Distributed State and Complexity
  • AwarenessEvents interface , Distributed State and Complexity - Capacitated?

B

  • Beck, Kent , Build a Parallel System Instead
  • Bezier curves , Jumping to Conclusions
  • BezierCostFunction struct , Jumping to Conclusions - Jumping to Conclusions
  • binary search as optimization method for memory allocation issue , Applying the Five-Step Optimization Process
  • bit trickery , As Simple as Possible, but No Simpler
  • BitVector class , Common Knowledge Is Free; New Concepts Are Expensive - Common Knowledge Is Free; New Concepts Are Expensive
  • Boolean operations, Python versus C++ , Boolean Operations
  • branch-and-change model to control reworking of code , Rework in Parallel - Bumps in the Road
  • bugs ( see debugging)

C

  • C++ , An Obvious Objection to This Strategy, in Response to Which I Double Down
    • ( see also JavaScript, working with C++; Python, working with C++)
    • chaining set calls trick , Making Ordering Mistakes Impossible - Making Ordering Mistakes Impossible
    • generalized coding challenge , An Obvious Objection to This Strategy, in Response to Which I Double Down
    • language use conventions for teams , Language Usage Conventions
    • templates for type-safe optional arguments , Using Templates Instead of Method Chaining
  • C-style file handling, error returns , Problem-Solving Conventions
  • caller of code, importance of not trusting , Don’t Trust the Caller - Don’t Trust the Caller
  • capacitated versus incapacitated status, containing complexity , Capacitated? - Capacitated?
  • Character class , Audit State You Can’t Eliminate
  • Character struct, debugging chain , Minimizing State - Minimizing State
  • chooseRandomValue function , The First Lesson of Optimization Is Don’t Optimize - The First Lesson of Optimization Is Don’t Optimize , Step 1: Measure and Attribute Processor Time - Applying the Five-Step Optimization Process
  • classes
    • JavaScript versus C++ , Classes - Classes
    • Python versus C++ , Classes - Classes
  • code annoyances, removing , Pull the Weeds - How Code Gets Weedy
  • code evolution , Code That Isn’t Running Doesn’t Work - Step 4: The Chickens Return Home to Roost
  • code reviews , Code Reviews Are Good for Three Reasons - Code Reviews Are Inherently Social
    • bug-finding value of , The True Value of the Code Review
    • to enforce conventions , Effective Teams Think Alike
    • forbidden code review , The Forbidden Code Review
    • importance of shared process in real time , Code Reviews Are Good for Three Reasons , Code Reviews Are About Sharing Knowledge
    • limitations in finding orphaned code , Step 3: Adding Disguises
    • sharing knowledge as benefit of , Code Reviews Are About Sharing Knowledge
    • social characteristic of , Code Reviews Are Inherently Social - Code Reviews Are Inherently Social
    • Sucker Punch process , Code Reviews Are Good for Three Reasons - Code Reviews Are Good for Three Reasons
  • code, working forward from to problem solution ( see working backward from problem)
  • coding style
    • need for team consistency in , Formatting Conventions
    • valuing your own , Conclusion: Making the Rules Your Own - Discuss Amongst Yourselves
  • cognitive load
    • of common knowledge versus new concepts , Common Knowledge Is Free; New Concepts Are Expensive - Common Knowledge Is Free; New Concepts Are Expensive
    • of mixing naming conventions , Don’t Mix and Match Conventions - Don’t Shoot Yourself in the Foot
    • from nested call chain , Where to Draw the Line
    • and reading code , Write Collapsible Code
  • collapsible code , Write Collapsible Code - Putting It All Together
    • abstraction, cost and best use of , The Cost of Abstraction - Use Abstraction to Make Things Easier to Understand
    • collapsing related arguments into one , Enlisting the Compiler’s Aid to Avoid Shooting My Foot
    • improving readability , The Role of Short-Term Memory - Where to Draw the Line
    • localizing complexity , Rethinking the Approach - Rethinking the Approach
    • memory limits and value of , Write Collapsible Code - The Role of Short-Term Memory , The Role of Long-Term Memory - Common Knowledge Is Free; New Concepts Are Expensive
  • color-coding for readability , Telling Good Stories
  • comments
    • avoiding useless , Make Sure There’s a Point to the Story - Make Sure There’s a Point to the Story
    • collapsing code details with , The Role of Short-Term Memory
    • fixing small problems in , Pull the Weeds
    • nonobvious , Telling Good Stories
    • providing space and punctuation for code , Telling Good Stories - Telling Good Stories
    • Python versus C++ , Formatting and Comments - Comments
    • and telling true code stories , Don’t Tell Stories That Aren’t True - Telling Good Stories
    • using asserts instead , Don’t Tell Stories That Aren’t True
  • commit process, automated testing in , Don’t Count on Your Users
  • compiler as assistant in eliminating failure cases , Shooting Myself in the Foot via a Ricochet - Enlisting the Compiler’s Aid to Avoid Shooting My Foot
  • complex data type , Don’t Optimize for Minimal Keystrokes
  • complexity , Localize Complexity - Localized Complexity, Simple Interactions
    • and adding new effects , Things Start to Get Foggy - Things Start to Get Foggy
    • in capacitated versus incapacitated character status , Capacitated? - Capacitated?
    • collapsing implementations in single method , Rethinking the Approach - Rethinking the Approach
    • cost of , The Cost of Complexity
    • and distributed state , Distributed State and Complexity - Distributed State and Complexity
    • hiding internal details , Hiding Internal Details - Hiding Internal Details
    • isolation of , Localize Complexity - Hiding Internal Details
    • objects with failure designed in , A More Complicated Example - A More Complicated Example
    • in pathing code for character movements around obstacles , Finding a Clear Path Forward - Finding a Clear Path Forward
    • programming as continual struggle with , One Rule to Rule Them All
  • Complicated solutions to problems , Code Comes in Four Flavors - Hard Problem, Somewhat Complicated Solution
  • Config struct , Working Backward Instead - Working Forward and Working Backward
  • consistency, importance of
    • in naming conventions , Don’t Mix and Match Conventions - Don’t Make Me Think , Weed Identification
    • in team coding , Formatting Conventions , Effective Teams Think Alike
  • constants, representing , Effective Teams Think Alike
  • constructor-destructor pair, wrapping push-pop in , Coordinated Control of State
  • container classes, writing single consistent version , Don’t Mix and Match Conventions
  • continuous automated testing , Don’t Count on Your Users
  • controlled vocabulary for team , Don’t Shoot Yourself in the Foot - Don’t Shoot Yourself in the Foot , Effective Teams Think Alike
  • conventions , Big Teams Need Strong Conventions - Effective Teams Think Alike
    • code reviews to enforce , Effective Teams Think Alike
    • fixing small problems regularly , Pull the Weeds - Weed Identification
    • formatting , Formatting Conventions
    • language usage , Language Usage Conventions
    • multiphase constructor ordering , A More Complicated Example
    • naming ( see naming conventions)
    • problem solving , Problem-Solving Conventions - Problem-Solving Conventions
  • convertCoordinateSystem function , Enlisting the Compiler’s Aid to Avoid Shooting My Foot
  • convoluted code , Don’t Lose the Plot - Don’t Lose the Plot
  • cosf function , A Simple Example
  • countStepPatterns function , …But No Simpler - …But No Simpler
  • Customer struct , Hiding Internal Details - Hiding Internal Details

D

  • DamageArbiter , Dealing with Unavoidable State - Dealing with Unavoidable State
  • data measurement, before optimization , Step 3: Measure Your Data
  • dead code ( see orphaned code)
  • debug-rendering parameters , A More Complicated Example
  • debugging , Bugs Are Contagious - Keeping Your Code Healthy , Find the Pebble That Started the Avalanche - Dealing with Unavoidable Delay
    • auditing states you can’t eliminate , Audit State You Can’t Eliminate - Audit State You Can’t Eliminate
    • automated testing issues with , Automated Testing Can Be Tricky
    • automating reproduction of problem , Dealing with Unavoidable Delay
    • bug detection optimization , Step 2: Make Sure There’s Not a Bug
    • caller of code, importance of not trusting , Don’t Trust the Caller - Don’t Trust the Caller
    • code as , Don’t Count on Your Users
    • and code reviews , Code Reviews Are Good for Three Reasons , Code Reviews Are Good for Three Reasons
    • contagiousness of bugs , Bugs Are Contagious
    • diagnosis , The Lifecycle of a Bug - Dealing with Unavoidable State
    • drawing wireframes for visualization , A More Complicated Example - A More Complicated Example
    • and early-bound versus late-bound languages , Working Backward Instead
    • facing manual drudgery corrections , There’s Never Just One Bug - There’s Never Just One Bug
    • fixing symptoms versus causes , The Lifecycle of a Bug
    • lifecycle of a bug , The Lifecycle of a Bug - The Lifecycle of a Bug
    • minimizing state , Minimizing State - Minimizing State
    • orphaned code , Code That Isn’t Running Doesn’t Work - The Limits of Testing
    • and parsing complicated code , The Cost of Complexity
    • problem detection sources , Don’t Count on Your Users - Don’t Count on Your Users
    • stateless code for testing , Stateless Code Is Easier to Test - Stateless Code Is Easier to Test , The Limits of Testing , Minimizing State
    • stepping through code in debugger to learn it , The Role of Long-Term Memory
    • unavoidable delays, dealing with , Dealing with Unavoidable Delay - Dealing with Unavoidable Delay
    • unavoidable state, dealing with , Dealing with Unavoidable State - Dealing with Unavoidable State
    • “weeds” versus bugs , Weed Identification
  • declarations and definitions
    • JavaScript versus C++ , Declarations and Definitions - Declarations and Definitions
    • Python versus C++ , Declarations and Definitions - Declarations and Definitions
  • dependencies, cleaning up bug , Bugs Are Contagious
  • disguises, and orphaned code , Step 3: Adding Disguises - Step 3: Adding Disguises
  • distributed state in stealth game , Distributed State and Complexity - Rethinking the Approach
  • Doxygen , Make Sure There’s a Point to the Story
  • duplicate-and-switch model for reworking code , Bumps in the Road
    • ( see also parallel system for reworking code)
  • dynamic programming , …But No Simpler

E

  • early-bound versus late-bound languages , Working Backward Instead - Working Backward Instead
  • Easy problem , Code Comes in Four Flavors , Pull the Weeds - How Code Gets Weedy
  • Easy problem, Complicated solutions , Easy Problem, Three Complicated Solutions - The Four (But Really Three) Kinds of Programmers
  • Easy problem, Simple solution , Easy Problem, Simple Solution
  • edge cases of errors , Problem-Solving Conventions
  • Einstein, Albert , As Simple as Possible, but No Simpler
  • entanglements , Bugs Are Contagious - Don’t Count on Your Users , Don’t Trust the Caller , Don’t Trust the Caller
  • error-handling models , Problem-Solving Conventions - Problem-Solving Conventions
  • evaluateComplexPolynomial function , Don’t Optimize for Minimal Keystrokes - Don’t Optimize for Minimal Keystrokes
  • evaluateKeyPath function , An Annoyance Appears - An Annoyance Appears
  • exception-style error handling , Problem-Solving Conventions
  • executable logfile , Dealing with Unavoidable Delay
  • explanation issue in measuring simplicity , Measuring Simplicity

F

  • failure cases, eliminating , Eliminate Failure Cases - Detecting Mistakes Is Good, but Making Them Impossible to Express Is Better
    • compiler as assistant in , Shooting Myself in the Foot via a Ricochet - Enlisting the Compiler’s Aid to Avoid Shooting My Foot
    • complex objects with failure designed in , A More Complicated Example - A More Complicated Example
    • coordinated control of state , Coordinated Control of State - Coordinated Control of State
    • detecting usage mistakes early , Timing Is Everything
    • functions with failure designed in , A Function That Makes It Easy to Shoot Myself in the Foot
    • making mistakes impossible to express , Detecting Mistakes Is Good, but Making Them Impossible to Express Is Better
    • making mistakes impossible to order , Making Ordering Mistakes Impossible - Making Ordering Mistakes Impossible
    • ricochet, failure via , Shooting Myself in the Foot via a Ricochet - Shooting Myself in the Foot via a Ricochet
    • templates versus method chaining , Using Templates Instead of Method Chaining
  • features, misusing and causing failure cases , Eliminate Failure Cases
  • Fibonacci numbers debugging example , Minimizing State
  • Field struct , And Now for Something Completely Different
  • file boundaries, importance of consistent , Effective Teams Think Alike
  • file size management , Managing File Sizes - Managing File Sizes
  • findAllies function , Step 1: A Simple Beginning , Step 3: Adding Disguises - The Limits of Testing
  • findNearbyEnemies function , Step 1: A Simple Beginning
  • findRecentPurchasers function , Hiding Internal Details - Hiding Internal Details
  • first penguins for flag switch in parallel rework of code , Time to Migrate
  • FixedVector class , Don’t Mix and Match Conventions - Don’t Mix and Match Conventions
  • flavors of code , Code Comes in Four Flavors - Hard Problem, Simple Solution
    • cost of complexity , The Cost of Complexity
    • Easy problem, Complicated solutions , Easy Problem, Three Complicated Solutions - The Cost of Complexity
    • Easy problem, Simple solution , Easy Problem, Simple Solution
    • Hard problem, Complicated solutions , Code Comes in Four Flavors , Hard Problem, Somewhat Complicated Solutions That Don’t Work - Hard Problem, Somewhat Complicated Solution
    • Hard problem, Simple solution , The Four (But Really Three) Kinds of Programmers , Hard Problem, Simple Solution
    • kinds of programmers , The Four (But Really Three) Kinds of Programmers
  • forbidden code review combination , The Forbidden Code Review
  • foreign naming conventions , Don’t Mix and Match Conventions
  • formatting of code , Effective Teams Think Alike , Formatting and Comments - Increment Operators
  • free function , Code Comes in Four Flavors
  • function boundaries, and collapsible code , Where to Draw the Line - Where to Draw the Line
  • function calls, in performance versus running algorithm , The First Lesson of Optimization Is Don’t Optimize
  • functions
    • ease of testing/debugging with pure , Stateless Code Is Easier to Test , Minimizing State , Minimizing State
    • easy ones to get wrong , A Function That Makes It Easy to Shoot Myself in the Foot
    • initialization function to take control from callers , Don’t Trust the Caller - Don’t Trust the Caller
    • overloading , Function Overloading , Function Overloading - Function Overloading
    • renaming challenges in calls , Don’t Shoot Yourself in the Foot - Don’t Shoot Yourself in the Foot
    • three functions needed before generalization , An Obvious Objection to This Strategy, in Response to Which I Double Down - An Obvious Objection to This Strategy, in Response to Which I Double Down
    • try-named , Problem-Solving Conventions - Problem-Solving Conventions
  • futureproofing, avoiding , Is It Twice as Good?

G

  • generalization
    • adapting to unanticipated use cases , It’s Actually Worse than YAGNI - It’s Actually Worse than YAGNI
    • of common problem , Step 2: Generalizing a Common Pattern - Step 2: Generalizing a Common Pattern
    • efficiency of avoiding , An Obvious Objection to This Strategy, in Response to Which I Double Down
    • and limits of architecture , Is It Twice as Good? - Rework Is a Good Opportunity to Fix Small Problems
    • losing context when extending too far , This Is Not What Success Looks Like - This Is Not What Success Looks Like
    • perspective-changing problem leading to , Recognizing the Opportunity
    • rare situations when preferable , Recognizing the Opportunity
    • reining in new programmers , The Story of the Rules
    • Sly Cooper landing scenario to use , Jumping to Conclusions
    • three-examples rule for going to , Generalization Takes Three Examples - This Is Not What Success Looks Like , Recognizing the Opportunity
    • YAGNI , YAGNI - YAGNI
  • getDamageReaction function , Dealing with Unavoidable State - Dealing with Unavoidable State
  • Ghost of Tsushima , The Story of the Rules , Applying the Five-Step Optimization Process , A Simple Rule of Thumb - A Simple Rule of Thumb , Finding a Clear Path Forward - Finding a Clear Path Forward
  • global objects , Working Backward Instead , And Now for Something Completely Different
  • golden section optimization algorithm , Jumping to Conclusions - Jumping to Conclusions
  • GridPoint solution to unobstructed path for character , Finding a Clear Path Forward

H

  • hammers
    • driving screws with , This Is Not What Success Looks Like
    • hammering nails with , There Are No Shortcuts
  • hard limits, respecting in design process , Look for Hard Limits - Look for Hard Limits
  • Hard problem , Code Comes in Four Flavors , The Four (But Really Three) Kinds of Programmers
  • Hard problem, Complicated solutions , Code Comes in Four Flavors , Hard Problem, Somewhat Complicated Solutions That Don’t Work - Hard Problem, Somewhat Complicated Solution
  • Hard problem, Simple solution , The Four (But Really Three) Kinds of Programmers , Hard Problem, Simple Solution
  • hash value bug, fixing manually , There’s Never Just One Bug - There’s Never Just One Bug
  • heap memory allocator , A Concrete Example , A Concrete Example
  • hidden internal details of code, using to simplify , Hiding Internal Details - Hiding Internal Details
  • hostility model, in code evolution example , Step 1: A Simple Beginning - Step 1: A Simple Beginning
  • Hungarian naming standard , Don’t Make Me Think - Don’t Make Me Think

I

  • increment operators , Increment Operators
  • incremental versus new design thinking, balancing , Gradual Evolution Versus Continual Reinvention - Gradual Evolution Versus Continual Reinvention
  • indention, Python versus C++ , Indentation and Split Lines
  • inFamous games , The Story of the Rules , Step 1: A Simple Beginning
  • initialization function, to take control from callers , Don’t Trust the Caller - Don’t Trust the Caller
  • initialize function , Don’t Trust the Caller , Don’t Trust the Caller
  • IntegerType , And Now for Something Completely Different
  • internal auditing to access internal states , Audit State You Can’t Eliminate - Audit State You Can’t Eliminate
  • invulnerability of character, managing by coordinated control of state , Coordinated Control of State - Coordinated Control of State
  • isServerBlocked function , An Example - Working Backward Instead
  • IsVisibleAlly struct , Step 2: Generalizing a Common Pattern

J

  • JavaScript, working with C++ , Reading C++ for JavaScript Programmers - Pointers and References
    • arrays , Arrays
    • classes , Classes
    • declarations and definitions , Declarations and Definitions - Declarations and Definitions
    • function overloading , Function Overloading - Function Overloading
    • pointers and references , Pointers and References - Pointers and References
    • templates , Templates - Templates
    • types , Types - Types
  • Jin Sakai character , Finding a Clear Path Forward
  • journaling filesystem, building from scratch , Code Comes in Four Flavors
  • JSON
    • code example approach to a problem , An Example - Working Backward Instead
    • translating objects to C++ structs , And Now for Something Completely Different
  • junior versus senior code reviewers/reviewees , Code Reviews Are About Sharing Knowledge

K

  • Knuth, Donald , The First Lesson of Optimization Is Don’t Optimize

L

  • language features, consistency in team coding , Effective Teams Think Alike
  • late-bound versus early-bound languages , Working Backward Instead - Working Backward Instead
  • linearizing a function , Hard Problem, Somewhat Complicated Solution
  • lists, Python versus C++ , Lists
  • localization and printf problem , Shooting Myself in the Foot via a Ricochet , Enlisting the Compiler’s Aid to Avoid Shooting My Foot
  • long-term versus short-term memory , Write Collapsible Code , The Role of Long-Term Memory - The Role of Long-Term Memory , Putting It All Together
  • loop-free implementation, counting bits in integer , As Simple as Possible, but No Simpler
  • loops, lack of simplicity in , As Simple as Possible, but No Simpler
  • lozenge shape, moving along , Finding a Clear Path Forward

M

  • malloc function , The Limits of Testing , Code Comes in Four Flavors
  • markCharacterPosition function , A More Complicated Example - Making Ordering Mistakes Impossible
  • math , Do the Math - When the Math Problem Changes Back into a Word Problem
    • handling changes in , When the Math Changes - When the Math Changes
    • looking for hard limits , Look for Hard Limits - Look for Hard Limits
    • pros and cons of automating , To Automate or Not to Automate - To Automate or Not to Automate
  • members, mapping from JSON to C++ , And Now for Something Completely Different
  • memoization when coding counting patterns , …But No Simpler - …But No Simpler
  • memory
    • allocation of computer , Applying the Five-Step Optimization Process , A Concrete Example , Stack Allocation in Practice - Making Stack Contexts a Little Smarter
    • common knowledge versus new concepts , Common Knowledge Is Free; New Concepts Are Expensive - Common Knowledge Is Free; New Concepts Are Expensive
    • limits and value of human , Write Collapsible Code - The Role of Short-Term Memory , The Role of Long-Term Memory - Common Knowledge Is Free; New Concepts Are Expensive
    • long-term versus short-term , Write Collapsible Code , The Role of Long-Term Memory - The Role of Long-Term Memory , Putting It All Together
  • method chaining , Making Ordering Mistakes Impossible - Making Ordering Mistakes Impossible
  • Minecraft , Eliminate Failure Cases
  • minimal keystrokes, avoiding , Don’t Optimize for Minimal Keystrokes - Don’t Optimize for Minimal Keystrokes
  • mixing and matching, avoiding in naming , Don’t Mix and Match Conventions - Don’t Shoot Yourself in the Foot
  • multiphase constructors, ordering conventions , A More Complicated Example

N

  • naming conventions , A Good Name Is the Best Documentation - Don’t Make Me Think
    • changing names when passed into a function , Don’t Shoot Yourself in the Foot - Don’t Shoot Yourself in the Foot
    • controlling vocabulary for team , Don’t Shoot Yourself in the Foot - Don’t Shoot Yourself in the Foot , Effective Teams Think Alike
    • fixing small naming inconsistencies globally , Weed Identification
    • maintaining consistent rules for , Don’t Make Me Think - Don’t Make Me Think
    • and making code readable , Don’t Make Me Think , The Role of Short-Term Memory , Telling Good Stories
    • minimal keystrokes, avoiding , Don’t Optimize for Minimal Keystrokes - Don’t Optimize for Minimal Keystrokes
    • mixing and matching, avoiding , Don’t Mix and Match Conventions - Don’t Shoot Yourself in the Foot
  • nested call chain, cognitive overload from , Where to Draw the Line
  • network protocol design, hard limits example , Look for Hard Limits - Look for Hard Limits
  • number of ideas introduced, and simplicity , Measuring Simplicity
  • Numerical Recipes code , Don’t Optimize for Minimal Keystrokes

O

  • object-oriented design, and localizing complexity , Distributed State and Complexity - Distributed State and Complexity
  • ObjectID struct , Don’t Trust the Caller - Don’t Trust the Caller
  • objects
    • basing errors in , Problem-Solving Conventions - Problem-Solving Conventions
    • defining scopes within , A Concrete Example - A Concrete Example
    • with failure designed in , A More Complicated Example - A More Complicated Example
    • global , Working Backward Instead , And Now for Something Completely Different
    • translating JSON to C++ structs , And Now for Something Completely Different
    • unit testing challenge for stateful , The Limits of Testing
  • optimization , The First Lesson of Optimization Is Don’t Optimize - There Is No Third Lesson of Optimization
    • applying five-step process , Applying the Five-Step Optimization Process - Applying the Five-Step Optimization Process
    • automating as work process , To Automate or Not to Automate
    • avoiding over-optimization , Applying the Five-Step Optimization Process
    • five-step process , Putting the Second Lesson to the Test - Applying the Five-Step Optimization Process
    • golden section optimization algorithm , Jumping to Conclusions - Jumping to Conclusions
    • not optimizing as first choice , The First Lesson of Optimization Is Don’t Optimize - The First Lesson of Optimization
    • performance factor , The First Lesson of Optimization Is Don’t Optimize , Applying the Five-Step Optimization Process - Applying the Five-Step Optimization Process , Interlude: In Which the Previous Chapter Is Criticized - Interlude: In Which the Previous Chapter Is Criticized
  • optimizeViaGoldenSection function , Jumping to Conclusions - Jumping to Conclusions
  • ordering mistakes, making impossible , Making Ordering Mistakes Impossible - Making Ordering Mistakes Impossible
  • Ordinal struct , Sometimes It’s Better to Simplify the Problem Rather than the Solution - Sometimes It’s Better to Simplify the Problem Rather than the Solution
  • orphaned code , Code That Isn’t Running Doesn’t Work - The Limits of Testing
    • adding disguises , Step 3: Adding Disguises - Step 3: Adding Disguises
    • consequences of , Step 3: Adding Disguises - Step 3: Adding Disguises
    • generalizing a common pattern , Step 2: Generalizing a Common Pattern - Step 2: Generalizing a Common Pattern
    • identifying the culprit , Step 4: The Chickens Return Home to Roost - The Limits of Testing
    • testing’s limits , The Limits of Testing - The Limits of Testing
  • overloading of functions , A New Argument - A New Argument

P

  • parallel arrays, to avoid mismatched argument failure , Enlisting the Compiler’s Aid to Avoid Shooting My Foot
  • parallel system for reworking code , Rework in Parallel - Recognizing When Parallel Rework Is a Good Strategy
    • concrete example , A Concrete Example - A Concrete Example
    • migrating from old stack contexts , Migrating from Old Stack Contexts to New Ones - Time to Migrate
    • recognizing when to apply strategy , Recognizing When Parallel Rework Is a Good Strategy
    • smarter stack contexts , Making Stack Contexts a Little Smarter - Making Stack Contexts a Little Smarter
    • stack allocation , Stack Allocation in Practice - Stack Allocation in Practice
    • stack vector use case conflict , A Cloud on the Horizon
    • StackVector migration , Preparing to Migrate StackVector - Time to Migrate
    • versus traditional branching , Build a Parallel System Instead
  • parameter-adjustment config file example , An Example - An Annoyance Appears
  • Params struct , A More Complicated Example
  • Parker, Dorothy , How to Disagree with the Rules
  • PathExtension interface , Finding a Clear Path Forward
  • pathing code for character movements , Finding a Clear Path Forward - Finding a Clear Path Forward
  • PathManager class , Finding a Clear Path Forward
  • penguins, antisocial behavior of , Time to Migrate
  • performance factor, and optimization , The First Lesson of Optimization Is Don’t Optimize , The First Lesson of Optimization Is Don’t Optimize , Applying the Five-Step Optimization Process - Applying the Five-Step Optimization Process , Interlude: In Which the Previous Chapter Is Criticized - Interlude: In Which the Previous Chapter Is Criticized
  • permute string search example , Hard Problem, Somewhat Complicated Solutions That Don’t Work - Hard Problem, Simple Solution
  • Person struct , Step 1: A Simple Beginning - Step 4: The Chickens Return Home to Roost
  • pointers
    • JavaScript versus C++ , Pointers and References - Pointers and References
    • Python versus C++ , Pointers and References - Pointers and References
  • Principle of Least Astonishment , Making Ordering Mistakes Impossible
  • printf function , A Function That Makes It Easy to Shoot Myself in the Foot
  • problems
    • and code annoyances , Pull the Weeds - How Code Gets Weedy
    • conventions for problem solving , Problem-Solving Conventions - Effective Teams Think Alike
    • debugging ( see debugging)
    • focus on overall before details , Sometimes the Bigger Problem Is Easier to Solve - Recognizing the Opportunity
    • JSON approach to , An Example - Working Backward Instead
    • solving within simplicity principle , …But No Simpler - Sometimes It’s Better to Simplify the Problem Rather than the Solution
    • types of , Code Comes in Four Flavors - Hard Problem, Simple Solution
    • working backward from ( see working backward from problem)
  • processor time, measure and attribute , Putting the Second Lesson to the Test
  • processVector versus sort functions , The Role of Long-Term Memory
  • profiling in day-to-day engineering , Interlude: In Which the Previous Chapter Is Criticized , Interlude: In Which the Previous Chapter Is Criticized
  • programmers, kinds of , The Four (But Really Three) Kinds of Programmers
  • prototyping an optimization , Step 4: Plan and Prototype
  • pure functions, ease of testing/debugging with , Stateless Code Is Easier to Test , Minimizing State , Minimizing State
  • push-pop model for invulnerability entanglements , Coordinated Control of State
  • Python, working with C++ , Reading C++ for Python Programmers - Pointers and References
    • classes , Classes - Classes
    • declarations and definitions , Declarations and Definitions - Declarations and Definitions
    • formatting and comments , Formatting and Comments - Increment Operators
    • function overloading , Function Overloading
    • for optimum performance , There Is No Third Lesson of Optimization
    • pointers and references , Pointers and References - Pointers and References
    • templates , Templates - Templates
    • types , Types - Types
    • visibility , Visibility

Q

  • quadratic complexity , Rethinking the Approach
  • qualifiers, using consistent name for , Don’t Make Me Think

R

  • readability
    • and abstraction best practice , The Role of Short-Term Memory - Use Abstraction to Make Things Easier to Understand
    • best use for short- and long-term human memory , Putting It All Together
    • collapsible code , The Role of Short-Term Memory - Where to Draw the Line
    • color-coding for , Telling Good Stories
    • creating space and comment punctuation , Telling Good Stories - Telling Good Stories
    • impact on cognitive load , Write Collapsible Code
    • naming conventions , Don’t Make Me Think , The Role of Short-Term Memory , Telling Good Stories
  • reasoning through longer code , Write Collapsible Code - Write Collapsible Code
  • reduceFunction function , Stateless Code Is Easier to Test
  • refactoring a system , Three Paths Forward: Ignore, Tweak, or Refactor , Rework Is a Good Opportunity to Fix Small Problems
    • ( see also parallel system for reworking code)
  • references
    • JavaScript versus C++ , Pointers and References - Pointers and References
    • Python versus C++ , Pointers and References - Pointers and References
  • Result struct , Problem-Solving Conventions
  • riffle-shuffling cards, simple algorithms , Simple Algorithms - Don’t Lose the Plot
  • RigidBodySimulator struct , Don’t Trust the Caller - Don’t Trust the Caller

S

  • safety issue in fixing small problems , Weed Identification
  • SafeType struct , And Now for Something Completely Different - And Now for Something Completely Different
  • scopes, defining within context object , A Concrete Example - A Concrete Example
  • senior versus junior code reviewers/reviewees , Code Reviews Are About Sharing Knowledge
  • setStatus method , Capacitated?
  • SetType struct , And Now for Something Completely Different
  • Shakespeare, William , A Good Name Is the Best Documentation
  • short-term memory
    • failure in tracking code , This Is What Failure Feels Like - The Role of Short-Term Memory
    • versus long-term , Write Collapsible Code , The Role of Long-Term Memory - The Role of Long-Term Memory , Putting It All Together
  • shorter code, and simplicity , Measuring Simplicity
  • showAuthorRoyalties function , A Function That Makes It Easy to Shoot Myself in the Foot - Shooting Myself in the Foot via a Ricochet
  • shuffleOnce function , Simple Algorithms - Don’t Lose the Plot
  • shuffling cards, simple algorithms , Simple Algorithms - Don’t Lose the Plot
  • Sieve of Eratosthenes , Common Knowledge Is Free; New Concepts Are Expensive - Common Knowledge Is Free; New Concepts Are Expensive
  • SignQuery struct , Generalization Takes Three Examples - YAGNI , It’s Actually Worse than YAGNI , It’s Actually Worse than YAGNI - It’s Actually Worse than YAGNI
  • simplicity , As Simple as Possible, but No Simpler - One Rule to Rule Them All
    • versus convoluted code , Don’t Lose the Plot - Don’t Lose the Plot
    • Easy problem, Simple solution , Easy Problem, Simple Solution
    • as first optimization step , Step 5: Optimize and Repeat , Applying the Five-Step Optimization Process , Interlude: In Which the Previous Chapter Is Criticized
    • Hard problem, Simple solution , The Four (But Really Three) Kinds of Programmers , Hard Problem, Simple Solution
    • hiding internal details of code , Hiding Internal Details - Hiding Internal Details
    • and localizing complexity , Localized Complexity, Simple Interactions
    • measuring , Measuring Simplicity
    • and optimization decision , The First Lesson of Optimization Is Don’t Optimize , The First Lesson of Optimization , Interlude: In Which the Previous Chapter Is Criticized
    • solving the problem within , …But No Simpler - Sometimes It’s Better to Simplify the Problem Rather than the Solution
  • sinf function , A Simple Example
  • Sly Cooper character , The Story of the Rules , Jumping to Conclusions - Jumping to Conclusions
  • social characteristic of code reviews , Code Reviews Are About Sharing Knowledge - Code Reviews Are Inherently Social
  • sort versus processVector functions , The Role of Long-Term Memory
  • sorting characters, stateful versus stateless testing , Stateless Code Is Easier to Test - Stateless Code Is Easier to Test
  • source files , Pull the Weeds , Managing File Sizes - Managing File Sizes
  • split lines, Python versus C++ , Indentation and Split Lines
  • StackAlloc class , A Concrete Example - A Concrete Example , Migrating from Old Stack Contexts to New Ones - Migrating from Old Stack Contexts to New Ones
  • StackContext class , A Concrete Example - A Concrete Example , Making Stack Contexts a Little Smarter - Migrating from Old Stack Contexts to New Ones , Time to Migrate
  • stacks
    • memory allocation , A Concrete Example , Stack Allocation in Practice - Making Stack Contexts a Little Smarter
    • migrating from old contexts to new ones , Migrating from Old Stack Contexts to New Ones - Time to Migrate
    • smarter contexts , Making Stack Contexts a Little Smarter - Making Stack Contexts a Little Smarter
    • StackVector migration , Preparing to Migrate StackVector - Time to Migrate
    • use case conflict , A Cloud on the Horizon
  • StackVector class , Stack Allocation in Practice - A Cloud on the Horizon , Making Stack Contexts a Little Smarter , Preparing to Migrate StackVector - Time to Migrate
  • Standard Template Library (STL) conventions , Don’t Mix and Match Conventions
  • state
    • in animation smoothing , Dealing with Unavoidable Delay - Dealing with Unavoidable Delay
    • auditing states you can’t eliminate , Audit State You Can’t Eliminate - Audit State You Can’t Eliminate
    • coordinated control of , Coordinated Control of State - Coordinated Control of State
    • dealing with unavoidable , Dealing with Unavoidable State - Dealing with Unavoidable State
    • distributing in stealth game , Distributed State and Complexity - Rethinking the Approach
    • minimizing in debugging , Minimizing State - Minimizing State
    • sorting characters , Stateless Code Is Easier to Test - Stateless Code Is Easier to Test
  • stateful objects, unit testing challenge with , The Limits of Testing
  • stateless code for testing , Stateless Code Is Easier to Test - Stateless Code Is Easier to Test , The Limits of Testing , Minimizing State
  • STATUS class, stealth game , Rethinking the Approach - Rethinking the Approach
  • stealth game example, distributing state , Distributed State and Complexity - Rethinking the Approach
  • STL (Standard Template Library) conventions , Don’t Mix and Match Conventions
  • story, code as , Let Your Code Tell Its Own Story - Telling Good Stories
  • strcpy function , The Limits of Testing
  • StructType template , And Now for Something Completely Different , And Now for Something Completely Different - And Now for Something Completely Different
  • structure first, inferring code from it second , And Now for Something Completely Different - Working Forward and Working Backward
  • subjective elements in test evaluation , Automated Testing Can Be Tricky
  • Sucker Punch coding philosophy , The Story of the Rules - The Story of the Rules , How to Disagree with the Rules - How to Disagree with the Rules , One Rule to Rule Them All , Code Reviews Are Good for Three Reasons - Code Reviews Are Good for Three Reasons , Effective Teams Think Alike , Conclusion: Making the Rules Your Own - Discuss Amongst Yourselves
  • sumVector function , Stateless Code Is Easier to Test - Stateless Code Is Easier to Test

T

  • TDD (test-driven development) , How to Disagree with the Rules , Don’t Count on Your Users , Stateless Code Is Easier to Test
  • teams, coding
    • code review benefits for teamwork , Code Reviews Are Inherently Social
    • controlling vocabulary for , Don’t Shoot Yourself in the Foot - Don’t Shoot Yourself in the Foot , Effective Teams Think Alike
    • effective teams thinking alike , Effective Teams Think Alike - Effective Teams Think Alike
    • formatting conventions , Formatting Conventions
    • language use conventions , Language Usage Conventions
    • problem solving conventions , Problem-Solving Conventions - Problem-Solving Conventions
  • templates
    • JavaScript versus C++ , Templates - Templates
    • versus method chaining , Using Templates Instead of Method Chaining
    • Python versus C++ , Templates
    • variadic , And Now for Something Completely Different
  • test-driven development (TDD) , How to Disagree with the Rules , Don’t Count on Your Users , Stateless Code Is Easier to Test
  • testing
    • automated pros and cons , Don’t Count on Your Users - Automated Testing Can Be Tricky
    • automating mathematical , To Automate or Not to Automate - To Automate or Not to Automate , When the Math Changes - When the Math Changes
    • easier as better , Keeping Your Code Healthy
    • orphaned code and limits of , The Limits of Testing - The Limits of Testing
    • pure functions for , Stateless Code Is Easier to Test , Minimizing State , Minimizing State
    • stateless code for , Stateless Code Is Easier to Test - Stateless Code Is Easier to Test , The Limits of Testing , Minimizing State
  • three-separate-functions approach , An Obvious Objection to This Strategy, in Response to Which I Double Down - An Obvious Objection to This Strategy, in Response to Which I Double Down
  • tightrope landing example , Jumping to Conclusions - Jumping to Conclusions
  • time to code
    • dealing with unavoidable delays , Dealing with Unavoidable Delay - Dealing with Unavoidable Delay
    • as measure of simplicity , Measuring Simplicity
  • translatability of code, as simplicity , Measuring Simplicity
  • try-named functions , Problem-Solving Conventions - Problem-Solving Conventions
  • “Twice as good” rule for changing code , A Simple Rule of Thumb - Rework Is a Good Opportunity to Fix Small Problems
  • type safety , And Now for Something Completely Different - And Now for Something Completely Different
  • types
    • JavaScript versus C++ , Types - Types
    • Python versus C++ , Types - Types

U

  • undefined results, and poor design of interface , Don’t Trust the Caller
  • unit tests , The Limits of Testing , Dealing with Unavoidable State
  • usage mistakes, detecting early , Timing Is Everything
  • use cases
    • allowing to lead code rather than anticipating , An Obvious Objection to This Strategy, in Response to Which I Double Down - An Obvious Objection to This Strategy, in Response to Which I Double Down
    • and preventing failure cases , Eliminate Failure Cases - Detecting Mistakes Is Good, but Making Them Impossible to Express Is Better
    • three use cases before generalizing principle , An Obvious Objection to This Strategy, in Response to Which I Double Down

V

  • variables
    • choosing good names for readability , Telling Good Stories
    • Hungarian naming standard , Don’t Make Me Think - Don’t Make Me Think
    • importance of meaningful-length names , Don’t Optimize for Minimal Keystrokes
  • variadic template , And Now for Something Completely Different
  • vector class example of naming inconsistency , Don’t Mix and Match Conventions - Don’t Mix and Match Conventions
  • VectorType , And Now for Something Completely Different
  • video gaming , The Story of the Rules , Conclusion: Making the Rules Your Own - Discuss Amongst Yourselves
  • visibility, Python versus C++ , Visibility

W

  • Weather class , Things Start to Get Foggy - Things Start to Get Foggy
  • “weeding” of code annoyances , Pull the Weeds - How Code Gets Weedy
  • word problem, moving from math back to , When the Math Problem Changes Back into a Word Problem , A New Argument
  • working backward from problem , Work Backward from Your Result, Not Forward from Your Code - Working Forward and Working Backward
    • defining structure and inferring code from it , And Now for Something Completely Different - And Now for Something Completely Different
    • early-bound versus late-bound languages , Working Backward Instead - Working Backward Instead
    • versus problem in terms of solution you want to apply , An Example - An Annoyance Appears
  • working memory ( see short-term memory)

Y

  • YAGNI (You Ain’t Gonna Need It) , YAGNI - YAGNI