Should I create specific classes for JSON Objects or only use the container(Array/Dictionary) for accessing Data?
I’m using Foursquare to get a List of Restaurants nearby inside an iOS app. The Result is stored in an Array which consists of Dictionaries and regarding how deep the Data is, each Dictionary contains also an Array with Dictionaries and so on. The Result should be shown inside a UITableView. Should I create a Class that represents a Restaurant and then create an instance for every Restaurant which I put in an Array and use this as the Data Source for my UITableView or should I use the complete Array I got the first Time.
I think, using an Array with a dedicated Restaurant class would make the handling much easier but maybe there are reasons to not do it this way? Performance maybe?
How to represent association in programs [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago. Could someone help me in implementing association in […]
Return interface or class
Suppose I have a method
What do you call classes without methods?
What do you call classes without methods?
Don’t Use “Static” in C#?
I submitted an application I wrote to some other architects for code review. One of them almost immediately wrote me back and said “Don’t use static
. You can’t write automated tests with static
classes and methods. static
is to be avoided.”
Is there any Common Name for Edit,Save,Delete,Select [closed]
Closed 6 years ago.
Functions returning pointers
C++ noob here. I have a very basic question about a construct I found in the C++ book I am reading.
Why am I seeing so many instantiable classes without state?
I’m seeing a lot of instantiable classes in the C++ and Java world that don’t have any state.
What is meaning of the term “Sans” in a class name?
I was reading code of a java project where I found a class name like “UserSansXml”. This class is dealing with user objects. I wanted to know the meaning of “sans”.
Class Design and Structure Online Web Store
I hope I have asked this in the right forum.