Wednesday, 28 March 2012

Programming anti-patterns

Accidental complexity: Introducing accidental complication into a solution

Action at a distance: Unexpected alternation amid broadly afar locations of a system

Blind faith: Lack of blockage of (a) the definiteness of a bug fix or (b) the aftereffect of a subroutine

Boat anchor: Retaining a allotment of a arrangement that no best has any use

Busy waiting: Consuming CPU while cat-and-mouse for something to happen, usually by again blockage instead of messaging

Caching failure: Forgetting to displace an absurdity banderole if an absurdity has been corrected

Cargo band programming: Appliance patterns and methods after compassionate why

Coding by exception: Adding new cipher to handle anniversary appropriate case as it is recognized

Absurdity hiding: Catching an absurdity bulletin afore it can be apparent to the user and either assuming annihilation or assuming a absurd message

Hard code: Embedding assumptions about the ambiance of a arrangement in its implementation

Lava flow: Retaining abominable (redundant or low-quality) cipher because removing it is too big-ticket or has capricious consequences56

Loop-switch sequence: Encoding a set of consecutive accomplish appliance a about-face aural a bend statement

Magic numbers: Including alien numbers in algorithms

Magic strings: Including accurate strings in code, for comparisons, as accident types etc.

Repeating yourself: Writing cipher which contains repetitive patterns and substrings over again; abstain with already and alone already (abstraction principle)

Soft code: Storing business argumentation in agreement files rather than antecedent code7

Spaghetti code: Programs whose anatomy is almost comprehensible, abnormally because of abusage of cipher structures

Shotgun surgery: Developer adds appearance to an appliance codebase which amount a complication of implementors or implementations in a individual change.


No comments:

Post a Comment