4 ms·
This code he calls good: DictionaryPresenter.new(PostCategorizationPolicy, Post.all).as_dictionary Well, it smells like typical java overengineering. Why
by xentronium 15y ago
This code he calls good:
DictionaryPresenter.new(PostCategorizationPolicy, Post.all).as_dictionary
Well, it smells like typical java overengineering. Why stop at that, let's go full way to:
DictionaryPresenterFactory.new(PostCategorizationPolicyStrategy, Post.collect(CollectionStrategy::All)).present