• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dynamic Method Creation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Dynamic Method Creation (From: Steve Steinitz <email@hidden>)
 >Re: Dynamic Method Creation (From: Ken Thomases <email@hidden>)
 >Re: Dynamic Method Creation (From: Steve Steinitz <email@hidden>)

  • Prev by Date: Re: Sandboxing not so bad
  • Next by Date: Re: Dynamic Method Creation
  • Previous by thread: Re: Dynamic Method Creation
  • Next by thread: Re: Dynamic Method Creation
  • Index(es):
    • Date
    • Thread