iOhYes Retired

iOhYes

A podcast by iOS developers for iOS developers, delivering news, tips, and rants for professional iOS/Mac developers, with something for enterprise and indie developers alike.

Hosted by Darryl Thomas and John Sextro.



← Previous Episode   |   Next Episode →

61: Episode 61 - Not Enough Words

March 27, 2015 at 8:00AM • 1 hour 3 minutes • Wiki Entry

Swift

  • Data
    • value types
      • enums
        • can have initializers, can be extended and can conform to protocols
        • Swift enums do NOT get default integer values
      • structs
        • auto-gen’ed memberwise initializers (not so in classes)
        • No ref counting, since value type
    • reference types
      • classes
        • very similar to structs (but ref type)
        • inheritance
        • Ref count for memory management
    • Swift Diff: dot syntax allows us to directly set sub-properties without intermediate assignment (reduces instance creation and malloc)
    • Rookie Question: What is the key deciding factor between creating a struct vs. class or class vs. struc?



Show Notes & Links Presented by CacheFly

Tweet Shoutouts

The Discussion

Swift

  • Data
    • value types
      • enums
        • can have initializers, can be extended and can conform to protocols
        • Swift enums do NOT get default integer values
      • structs
        • auto-gen’ed memberwise initializers (not so in classes)
        • No ref counting, since value type
    • reference types
      • classes
        • very similar to structs (but ref type)
        • inheritance
        • Ref count for memory management
    • Swift Diff: dot syntax allows us to directly set sub-properties without intermediate assignment (reduces instance creation and malloc)
    • Rookie Question: What is the key deciding factor between creating a struct vs. class or class vs. struc?

Open Source Project of the Week

FastttCamera from IFTTT wrapper around AVFoundation that allows you to build your own powerful custom camera app without all the headaches of using AVFoundation directly. Used to build “Do Camera”.

  • trending on GitHub this month
  • 700 stars
  • 2 contributors

Picks

Darryl

John

Chad

Alternative show title suggestions

  • Value is the value it is
  • “Mmm”
  • Sort of
  • Ok then
  • Compass points
  • Confusing
  • Raw value
  • Out of words
  • Not enough words
  • One gripe
  • There’s so many
  • alt click
  • model layel
  • Dynamism
  • Dynomite