Programming anti patterns Flashcards
Boat anchor
Retaining a part of a system that no longer has any use
Error hiding
Catching an error message before it can be shown to the user and either showing nothing or showing a meaningless message
Magic strings
Including literal strings in code, for comparisons, as event types etc.
Loop switch sequence
Encoding a set of sequential steps using a switch within a loop statement
Soft code
Storing business logic in configuration files rather than source code
Lasagna code
Programs whose structure consists of too many layers
Silver bullet / golden hammer
Assuming that a favorite technical solution can solve a larger process or problem
Programming by permutation
Trying to approach a solution by successively modifying the code to see if it works
Reinventing square wheel
ailing to adopt an existing solution and instead adopting a custom solution which performs much worse than the existing one