Last week we saw the introduction of Android O, so there are already some articles available about the new features. For iOS developers, this week marked the release of iOS 10.3, Xcode 8.3 and Swift 3.1
Like most Swift developers, you’ve probably gravitated towards using guards a lot, but you should know the different use cases for guard and for if statements. Here are some tips on When to Use guard vs if in Swift.
Bob Lee’s Swift Retention Cycle in Closures and Delegates will give you a better understanding of [weak self] and weak var. You should know this stuff!
Detecting the First Launch of an iOS Application talks about the right way and the wrong way to get around this. While most of us would use UserDefaults, this can be tricky when it comes to testing.
Some projects to check out:
- Transition: Easy interactive interruptible custom ViewController transitions.
- FengNiao: A command line tool for cleaning unused resources in Xcode.
- SwiftySound: Swifty Sound is a simple library that lets you play sounds with a single line of code.
- SwiftPlate: Easily generate cross-platform Swift framework projects from the command line.
In Android O, the big changes are around notifications. To get you on track with these changes, check out Joe Birch’s Exploring Android O: Notification Channels and read this hands-on review of Android O from Ars Technica.
You want to get every last bit of performance from your app, so take heed of this App Optimization with ArrayMap & SparseArray. If you’ve found your code is littered with HashMaps, perhaps this can give you a boost.
Uber engineering has explained the process behind Rewriting Uber’s Ride App with Deep Scope Hierarchies.
Here’s a nice piece on Device to Device Push Notifications using Cloud Functions for Firebase. It’s worth reading just to understand how to take advantage of cloud functions.
Ever wanted Android Studio to do particular actions when you save a file? Here’s how to do just that by creating a macro to organize imports and apply any code formatting rules.
Some projects to check out:
- BlockCanaryEx: make performance bottleneck detection easily when app blocked.
- android-tips-tricks: A cheat sheet with tips and tricks for Android development.
- fastjson: A fast JSON parser/generator for Java.
- android-PictureInPicture: Google sample for basic usage of Picture-in-Picture mode for handheld devices.
We don’t all have the comfort of starting out with a fresh project. For most of us, we’ll be working with legacy code. Here are some tips on How to Rescue a Codebase.
StackOverflow recently published the results of their latest survey. For some fast analysis of the results, check out What I Learned From Stack Overflow’s Massive Survey of 64,000 Developers.
If you’re a designer looking to up your game, check out Back to Basics: Four Simple Ways to Improve Yourself as a Designer.