Profile cover photo
Profile photo
Chris Strom
1,072 followers -
Author, programmer, speaker.
Author, programmer, speaker.

1,072 followers
About
Chris's posts

Post has shared content
Chugging along with +Compendious Thunks and short (compendious) screencasts! Series 1 is well underway and will include 7 design patterns when finished. It's 100% Dart because Dart is the ideal teaching language :)

The episodes that introduce the patterns are always free. This is the introduction to the Adapter Pattern...

Post has attachment
It's time for something different.

I'm pretty jazzed about a new kind of learning: Compendious Thunks. Screencasts of principles, patterns & wanton code play.

And it's still #dartlang (but don't tell anyone).

I think I'm going to enjoy this :)


Post has attachment
Setting up the chain of responsibility in client code seems like too much of a pain (even in #dartlang ), so tonight I try it in a separate class. I like that very much :)

The DartPad: https://dartpad.dartlang.org/adf7e28a00eba10491e9

Post has attachment
Making the chain of responsibility pattern Dartier on the modern web :)

The Dartier DartPad: https://dartpad.dartlang.org/f5bbc86a28002987741c

Post has attachment
Taking a look at runtime changes and code maintainability when working with the chain of responsibility pattern. Both are nice, especially in #dartlang .

The DartPad to prove it: https://dartpad.dartlang.org/08105c648b253f64a47d

Post has attachment
A cell formatting chain of responsibility implementation in #dartlang .

And the DartPad: https://dartpad.dartlang.org/21f67a92a0269a2aed6b

Post has attachment
The chain of responsibility pattern that every web developer has used at some point. In #dartlang , of course!

The DartPad: https://dartpad.dartlang.org/12bf7fa9c76c6d16fe5f

Post has attachment
Mixins, noSuchMethod, and the chain of responsibility: pick two in #dartlang  because the three together are ugly.

The DartPad to prove the ugly: https://dartpad.dartlang.org/9f9ca7397d88f6cf7e54

Post has attachment
So just how much chain of responsibility code belongs in the handler, the concrete handler, or a  #dartlang  mixin? It depends, of course, but I put it all in the mixin and loved what I saw :)

DartPad: https://dartpad.dartlang.org/7cd84acd86da602301d5

Post has attachment
I don't think I use mixins enough in my #dartlang  code. Happily, the chain of responsibility pattern seems like a great excuse for them :)

The DartPad: https://dartpad.dartlang.org/752e601e8768cb2f26e5
Wait while more posts are being loaded