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?
2 Dimensional Arrays in C++
I started learning arrays in C++ and came over a little side note in the book talking about 2D arrays in breif.
Is there a way to add unique items to an array without doing a ton of comparisons?
Please bare with me, I want this to be as language agnostic as possible becuase of the languages I am working with (One of which is a language called PowerOn). However, most languanges support for loops and arrays.
C simple arrays and pointers question
So here’s the confusion, let’s say I declare an array of characters
Java Dynamic Binding
I am having trouble understanding the OOP Polymorphic principl of Dynamic Binding ( Late Binding ) in Java. I looked for question pertaining to java, and wasn’t sure if a overall answer to how dynamic binding works would pertain to Java Dynamic Binding, I wrote this question.
Generating Deep Arrays: Shallow to Deep, Deep to Shallow or Bad idea?
I’m working on an array structure that will be used as the data source for a report template in a web app.
Should the 12-String be in its own class and why?
This question is regarding a homework project in my first Java programming class (online program).
How to efficiently store IP addresses? [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 11 years ago. Background I have a requirement where I need […]
Visualization of N>2-D array? [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 11 years ago. I have an array of dimension 5. But, […]
Is initializing a char[] with a string literal bad practice?
I was reading a thread titled “strlen vs sizeof” on CodeGuru, and one of the replies states that “it’s anyways [sic] bad practice to initialie [sic] a char
array with a string literal.”