HN user

joeheyming

27 karma
Posts11
Comments20
View on HN
-2000 Lines of Code 11 years ago

Writing code is like playing jazz. It's not about the notes you are playing, its all about the notes you are not playing

I really like the content, but would like to see it extended to examples an many languages where functions are first class objects and map/reduce are readily available.

Always bet on text 12 years ago

This is why scripting/interpreted languages are vastly faster to produce than compiled programming languages.

I like to think that its not model view controller, but instead model-view-behavior (or the strategy pattern)

Events are a given. Models can fire/handle events, views can fire/handle events. The behavior/strategy pattern is just a bunch of singleton objects that know how to mediate between the view and the model. Sometimes the behavior pattern handles events (as a strategy), but it doesn't fire events (only the model and view can do that).

The model knows how to generate the behavior. The View contains the behavior and asks the behavior questions with the model.

This separates responsibilities nicely in my opinion.