Timeline for Parsing Websites and transferring Data between Objects
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 27, 2014 at 9:48 | vote | accept | Mahir | ||
| Aug 9, 2014 at 8:02 | comment | added | Mahir | Also, to address the concern about the if statement but no else, the properties are all set to nil in init, so it would have been redundant to create an else statement and set everything to nil | |
| Aug 9, 2014 at 8:00 | comment | added | Mahir | Would it be better to pass a HourMeal object or just a dictionary? | |
| Aug 7, 2014 at 11:19 | comment | added | nhgrif | Calling data[0], data[1], and data[2] without first checking the array's count is also just begging for a out of bounds exception. | |
| Aug 7, 2014 at 6:28 | comment | added | Mahir | Would it be better if I instead passed the HourMeal object? | |
| Aug 7, 2014 at 6:27 | comment | added | Mahir | When I want a particular set of hours for a given hall and meal, I pass the parameters to the hour object and it returns an array with the desired opening/closing times. | |
| Aug 7, 2014 at 6:25 | comment | added | Mahir | The Hours object has a dictionary of halls as a property, of type HourHall, which is another custom class. Each hall has a dictionary of meal objects, of type HourMeal. The HourMeal has as properties an opening and closing time | |
| Aug 7, 2014 at 6:23 | comment | added | Mahir | So I have modified my code a little since I posted the question: I decided to store all the hours at once within an Hours object | |
| Aug 7, 2014 at 3:47 | history | answered | bazola | CC BY-SA 3.0 |