Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COIn my case, would you just recommend a singleton class? Basically I have a list of 10 channels. For each channel I need to store three things: now, next and later. So something like two embedded NSDictionaries in a singleton class would do it? Please note I am also talking about good design. Good design is as important as functionality to me.
      singulars
    2. COSingletons are controversial see this article http://www.ibm.com/developerworks/webservices/library/co-single/index.html they do have their place but they break a lot of good practices such as the single responsibility principle, is so much as they are responsible for the functionality they provide to your app as well as managing the fact that there is only one instance, they also make testing hard. There are some more elaborate ways of better engineering things using a factory to manage singleton-ness. A whole book could be dedicated to this subject, id recommend reading about it..
      singulars
    3. COpersonally it sounds like the only thing that differentiates now, next and later is the time at which you look at that data, although this makes assumptions on how you request the data and how it is returned. Why not model a channel as an object it is responsible for knowing its programmes and then have some operations for determining which is now, next or later, you may need a channelManager class which contains the channels objects you will also probably find that it helps to model a request as an object and build some code around that for making requests and processing responses. up to you
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload