591 reputation
415
bio website
location United States
age
visits member for 3 years, 7 months
seen Feb 18 '13 at 20:10

enter image description here


Jun
1
comment What design pattern do you use to support graceful fallback on old platforms?
I like this one. Is it called the Encapsulate-into-a-function pattern? :p
May
31
comment What design pattern do you use to support graceful fallback on old platforms?
@BryanOakley This happens quite a lot in Objective-C when programming for different iOS versions. Apple often likes to deprecate APIs and replace them with a new APIa that are not backwards compatible.
May
31
comment What design pattern do you use to support graceful fallback on old platforms?
I think you need more than just Strategy Pattern. At a higher level, you need a Factory. This factory takes in a platform version. If the platform version is high enough, return the high platform strategy, else return the low platform strategy.
May
31
asked What design pattern do you use to support graceful fallback on old platforms?
May
17
awarded  Yearling
Apr
12
comment What are the disadvantages of naming things alphabetically?
@vitalik It will be even harder working in a Chinese company where they write kanji vertically.
Apr
8
accepted What are the disadvantages of naming things alphabetically?
Apr
8
comment What are the disadvantages of naming things alphabetically?
So if I worked in a Spanish company, CarHonda would be appropriate because adjectives come after nouns in Spanish.
Apr
8
accepted How can a child state machine relinquish control back to the parent state machine?
Apr
7
asked What are the disadvantages of naming things alphabetically?
Feb
9
asked How can a child state machine relinquish control back to the parent state machine?
Feb
3
accepted How to name a private method in a language which doesn't support privacy?
Jan
26
comment How to name a private method in a language which doesn't support privacy?
Double underscore, you say... What would a single underscore mean?
Jan
26
asked How to name a private method in a language which doesn't support privacy?
Sep
14
awarded  Nice Question
Aug
29
asked Should a function use premature returns or wrap everything in if clauses?
Aug
23
accepted When would polling for events be better than using observer pattern?
Aug
22
awarded  Nice Question
Aug
22
comment When would polling for events be better than using observer pattern?
I think the observer pattern for the engine RPM example can be fixed. You can publish only each 100th event with if (count % 100 == 0) to reduce excessive processing.
Aug
22
asked When would polling for events be better than using observer pattern?