Profile

Cover photo
Chris Strom
Works at EEE Computes
Lives in Baltimore
1,071 followers|7,281,544 views
AboutPostsPhotos+1's

Stream

Chris Strom

Shared publicly  - 
 
Experimenting with a factory method pattern example in #dartlang  that has no subclasses. That is, all the work is done in a single factory class. Is it still a factory method pattern? 

The DartPad: https://dartpad.dartlang.org/0018524156ade602d043
2
Add a comment...

Chris Strom

Shared publicly  - 
 
If a bridge pattern with a single implementor is still a bridge pattern, then what about a bridge pattern with a single abstraction? You might say that intent matters, but I don't think so in this case...

#dartlang
2
Add a comment...

Chris Strom

Shared publicly  - 
 
A look at the implications of making a factory responsible for creating implementations in the bridge pattern. Bottom line: it works pretty darn nice in #dartlang  ...
2
Add a comment...

Chris Strom

Shared publicly  - 
 
A bridge pattern implementation for switching between HTTP and Websockets communications. In #dartlang , of course!
Design patterns don't tell us how to develop systems. Patterns are names applied to how we already develop. Knowing patterns well won't help us to implement them better in the future—we are already doing that very fine, thank...
1
Add a comment...

Chris Strom

Shared publicly  - 
 
No surprises here (except that I found yet another excuse to use mirrors). Sharing implementors in the #dartlang  version the bridge pattern is pretty darn easy.

The DartPad (yes, with mirrors): https://dartpad.dartlang.org/befac6b199a2cebf1d76
4
James Hurford's profile photo
 
You and your mirrors. You'd think you were vain or something :-P
Add a comment...

Chris Strom

Shared publicly  - 
 
Ah, there's nothing quite like a good degenerate bridge pattern in #dartlang .

And the DartPad to go with it: https://dartpad.dartlang.org/0ca4f1ac6ee8caad731e
4
1
James Hurford's profile photo
Add a comment...
Have him in circles
1,071 people
Ed Schmalzle's profile photo
John Tjanaka's profile photo
Paul Evans's profile photo
Jeremy Raines's profile photo
Aigbondion Gabriel's profile photo
york richter's profile photo
Adam Turoff's profile photo
johnny quispe's profile photo
Ken Morgan's profile photo

Chris Strom

Shared publicly  - 
 
Simple factory method pattern in #dartlang . Adapted from Java adapted from C++. And no mirrors. Yet.

DartPad: https://dartpad.dartlang.org/561d021f19910a79c194
3
Add a comment...

Chris Strom

Shared publicly  - 
 
I don't find any of the names in the bridge pattern to be particularly illustrative :-\
2
Add a comment...

Chris Strom

Shared publicly  - 
 
Do you create a bridge implementation in client code, the abstraction constructor, or somewhere else? #dartlang  
1
Add a comment...

Chris Strom

Shared publicly  - 
 
I can't explain why I though handle body reference counting might be useful in a #dartlang  bridge pattern. If nothing else, I can now explain why it is not necessary :\

DartPad: https://dartpad.dartlang.org/43585b1f6e0f1403fc5a
3
Add a comment...

Chris Strom

Shared publicly  - 
 
Will mixins in #dartlang  serve as a valid implementation of the bridge pattern? 

The DartPad that goes with the answer: https://dartpad.dartlang.org/b0050955ee95746956da
3
Add a comment...

Chris Strom

Shared publicly  - 
 
Getting started with the bridge pattern in #dartlang  is some good clean fun. Almost as much fun as coming up with clear examples of the difference between this and the adapter, but that's for another day. 

For today, the DartPad: https://dartpad.dartlang.org/2b092185cb17ebebecef
5
Add a comment...
People
Have him in circles
1,071 people
Ed Schmalzle's profile photo
John Tjanaka's profile photo
Paul Evans's profile photo
Jeremy Raines's profile photo
Aigbondion Gabriel's profile photo
york richter's profile photo
Adam Turoff's profile photo
johnny quispe's profile photo
Ken Morgan's profile photo
Work
Occupation
Programmer
Employment
  • EEE Computes
    Consultant / Author, present
  • mdlogix
    Programmer
Basic Information
Gender
Male
Other names
eee_c, eee-c
Story
Tagline
Author, programmer, speaker.
Introduction
You could fill a book with what I don't know. Which is rather the point. Author of 3D Game Programming for Kids, Patterns in Polymer,  Dart for Hipsters and The SPDY Book. Co-author of Recipes with Backbone. Big into chains
Bragging rights
Blogged for more days in a row than anyone ever.
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Baltimore
Previously
Connecticut - New York - Indiana - Maryland
Chris Strom's +1's are the things they like, agree with, or want to recommend.
SPDY Book
spdybook.com

Early Access. Beta copies of SPDY Book are now available! Add to Cart. Buying now guarantees you access to the final copy of SPDY Book at no

The new Chromebook, for everyone
chrome.blogspot.com

As a kid growing up in India, I was fascinated with computers and the endless possibilities they presented. I had to wait until college to f

Chrome Experiments - "Code Editor" by Mr.doob
www.chromeexperiments.com

Little online (and offline) code editor for messing around. Needed an editor so I could code on ChromeOS during some days and this did the t

Seth Ladd's Blog: This is this in Dart
blog.sethladd.com

One of the things that's always confused me about JavaScript is the changing definition of this. This post will show how Dart avoids the