Swift ThoughtsSwift Thoughts

Last week, I attended iOSDevCampDC where I walked away inspired from all the speakers.

The most inspiring talk for me came from @segiddins, who spoke on a topic I think a lot about - how to pay off technical debt.

The four big techniques Sam mentioned were:

  • Slash & Burn - Delete code completely and see what happens. If it was important, re-write it from scratch
  • Quarantine - isolate the bad code and work around it
  • Zero regressions - "the way to make code better is to never let it get worse". Keep new code clean!
  • Boy Scouting - this one is my personal favorite. When you're working in the code and see something bad, just go ahead an fix it. You'd be surprised by how quickly all these little fixes add up!

While we'd all like to think that we'd get to cleaning our bad code "later, when we have time", deep inside we know that later will never come. The key to clean code with low technical debt is tackling the problems head on in the present.


Swift Around the Web




Swift Code

  • AlamofireImage - AlamofireImage is an image component library for Alamofire

  • APNGKit - High performance and delightful way to play with APNG format in iOS.

  • ActiveLabel.swift - UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift

  • TableCellAnimator - Cut-out animation of a table view cell into the next scene. Write up with an example to view by @ctietze here.

  • MusicPlayerTransition - Custom interactive transition like Apple Music iOS App.




Random Cool Stuff