Design Log - Actor behaviors and the strategy pattern

May 18, 2009 20:25

In which Q attempts to record his design knowledge.

Actors and the use of strategy )

work

Leave a comment

Comments 1

kainasylum May 19 2009, 23:50:00 UTC
Your post makes me realize something: adjectives suck in code constructs.

Adjectives essentially force the coder to accommodate what-if situations by making if-then statements or ugly switch statements that branch on some condition... adjectives are a sign that large nouns need to be broken down into a composition of smaller nouns so that the verbs within each noun can be compartmentalized and separated from non-related verbs for other nouns.

Reply


Leave a comment

Up