Re: Dynamic Method Creation
Re: Dynamic Method Creation
- Subject: Re: Dynamic Method Creation
- From: Jens Alfke <email@hidden>
- Date: Sat, 15 Sep 2012 16:15:18 -0700
On Sep 14, 2012, at 10:49 PM, Steve Steinitz <email@hidden> wrote:
> No offense but none of your criticisms seem to hold water.
No, I strongly agree with Ken. You’re creating a pile of redundant methods with variable parameters (day of week, start vs end etc.) baked into the method name. This is a red flag calling for refactoring your data model. Instead of one object that babysits the entire set of objects, make those properties of Shifts and have an array of Shifts indexed by day of week.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden