Hawaii iOS Developer Meetup – Session 22

This week I prepared something different for the meetup. Usually I create a playground with a bunch of code to execute with the group. This time I did some research online and prepared it as a talk for the group.

I also liked talking about anything that was unclear from the previous meetup. I started out the session, after introductions, with a request for any questions or feedback from the last meetup.

Joanne had asked about the code we covered last week regarding reduce. It wasn’t clear that the accumulator was the first parameter and the closure was the second parameter. Ryan and Chae helped to explain.

Then we got into the discussion about Classes vs. Structs vs Enumerations. I love the preparation that I can do before these meetups. I learn so much. We had a nice discussion about the strengths and weaknesses of each data type.

I was happy, through my research, to find the best practices regarding the use of Classes vs. Structs vs. Enumerations.

I am glad to report back that we reached concensus that the way to create data models for your iOS projects is to always start with an Enum, then if undefined cases come up in the program creation, we should switch to using structs. Then and only then, if we need the actor to talk to other objects and control them, we should start using classes.

This week we’ll be covering Foundation. I asked for feedback from the group to prepare for the talk. So far I have gotten requests to compare UIKit and Foundation and another request to cover localization (support languages such as japanese, korean, and spanish).

If you’re interested in attending the next Hawaii iOS Developer Meetup, please RSVP.

Advertisements

Author: David Neely

Professional Software Developer. Technology and Web Coordinator at the University of Hawaii's Manoa Career Center.