News for hackers. Stuff that matters.
Re:The Strategy Pattern in JavaScript by teej on Tuesday June 21, 2011 @03:15PM (#2679993)
I'm surprised the author didn't mention the use case where I've seen this most often: animation easing. In every JS library I've seen, the strategy pattern was used for easing functions.
Re:The Strategy Pattern in JavaScript by jugglinmike on Tuesday June 21, 2011 @04:22PM (#2680235)
Good point! I don't have much experience with animation libraries, but maybe if I look at some source code I can get a stronger real-world use case for the article...