Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Laziness-Driven Development in iOS - CocoaConf ...

Ellen Shapiro
September 19, 2015

Laziness-Driven Development in iOS - CocoaConf Boston, September 2015

My talk on how Laziness is secretly the best way to code.

Links galore at the end!

Ellen Shapiro

September 19, 2015
Tweet

More Decks by Ellen Shapiro

Other Decks in Technology

Transcript

  1. Laziness-Driven Development in iOS CocoaConf Boston | September 2015 |

    by Ellen Shapiro vokal.io | justhum.com | designatednerd.com | @designatednerd
  2. What is Laziness-Driven Development? » Smart reuse of code »

    Clear, Readable code » Removal of Stringly-typed code » Making smart decisions today to save yourself time and heartache tomorrow
  3. YES

  4. "programs must be written for people to read, and only

    incidentally for machines to execute."
  5. Swift: Extensions MyViewExtension: extension UIView { public func xyz_circleify() {

    layer.cornerRadius = CGRectGetWidth(frame) / 2 clipsToBounds = true } }
  6. Plugins Before Alcatraz » Download project » Build, run, install,

    » Restart Xcode, » Do the hokey pokey and turn yourself about. » Uninstall by hunting down obscure folder and then forgetting what the hell you were doing in there.
  7. Plugins AFTER Alcatraz » Push button, install plugin. » Push

    other button to see plugin page. » Search plugins easily. » Push button, uninstall plugin. !
  8. KIF

  9. KIF

  10. Cat2Cat Asset Catalog To Category Instead of writing: [UIImage imageNamed:@"My

    Image Name"]; you can write: [UIImage ac_My_Image_Name];
  11. in conclusion » Centralize your code, make it easy to

    read, and keep it separated by purpose, so it's easy to fix. » Get rid of stringly-typed code so it's harder to break in the first place. » Use the tools other people have built to enhance your laziness, or build new tools yourself. » Best practices are secretly the lazy way to code.
  12. image credits » Luca Nebuloni, Pasta with finocciona: https:// www.flickr.com/photos/nebulux/10708289086

    » Tom Bech, Eurasian Wolf: https://www.flickr.com/ photos/viatorius/9358589025 » Michael D Beckwith, The Leeds Library: https:// www.flickr.com/photos/118118485@N05/16438065636/