Programming anti patterns Flashcards

1
Q

Boat anchor

A

Retaining a part of a system that no longer has any use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Error hiding

A

Catching an error message before it can be shown to the user and either showing nothing or showing a meaningless message

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Magic strings

A

Including literal strings in code, for comparisons, as event types etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Loop switch sequence

A

Encoding a set of sequential steps using a switch within a loop statement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Soft code

A

Storing business logic in configuration files rather than source code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Lasagna code

A

Programs whose structure consists of too many layers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Silver bullet / golden hammer

A

Assuming that a favorite technical solution can solve a larger process or problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Programming by permutation

A

Trying to approach a solution by successively modifying the code to see if it works

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Reinventing square wheel

A

ailing to adopt an existing solution and instead adopting a custom solution which performs much worse than the existing one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly