Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

This Week in Mobile: Unit Testing and Creating Frameworks

DZone's Guide to

This Week in Mobile: Unit Testing and Creating Frameworks

Among the topics of the week are creating reusable frameworks, the importance of unit testing, and how to make it easier on Android using dependency injection.

· Mobile Zone
Free Resource

Download this comprehensive Mobile Testing Reference Guide to help prioritize which mobile devices and OSs to test against, brought to you in partnership with Sauce Labs.

The big news of the week is the release of the much anticipated iPhone X. If you’re still on the fence or waiting for delivery, why not check out Steven Levy’s First First Impression of the iPhone X

iOS 

Getting Started With Reusable Frameworks for iOS Development gives you a guide to the basics of getting starting creating your own framework.

Take a look at this Dependency Injection with the Cake Pattern, with a pattern that originates from Scala, the concept being that injection happens via the protocol, not the implementation class.

Reusable View Class Using Protocol & MVVM  shows you how to create views that can be re-used across your application.

Taking all the Google and Firebase functionality available, here’s how you can go about Adding Computer Vision to Your iOS App.

John Sundell takes use through Using Tokens to Handle Async Swift Code. It’s a neat concept where each operation is assigned a token which allows you to control it. 

Some projects to check out: 

  • BiometricAuthentication: Using Apple FaceID or TouchID authentication in your app. 
  • Difference: Simple way to identify what’s different between two instances. 
  • CFNotify: A customizable framework to create draggable views.
  • Mandoline: An iOS picker to server all your picking needs. 

Android 

If you’ve been wondering what exactly is different in the new Android Developer 8.1 Developer Preview, check out these Random Musings that give a detailed explanation of what’s different in the API. 

Although recent announcements made you believe that Kotlin was where it was at for Android development, here is one option on why Kotlin is Still Not Top Citizen of Android Studio 3.0.

That’s not to say Kotlin isn’t cool anymore. Read this piece on why Kotlin is Dope and So Are Its Custom Property Delegates.

If you’re looking to make unit testing easier to achieve, you’ll need to consider dependency injection. Here’s How I Learned to Love Unit Testing With Toothpick.

Some projects to check out: 

  • RapidView: Android UI and light app development framework. 
  • SVGAPlayer-Android: Similar to Lottie. Render After Effects/ Animate CC natively on Android, iOS and Web.
  • CameraKit-Android: One of the hardest Android APIs made into a high level and easy to use library that solves all of your problems. 

General 

Here’s an interesting take on The Seven Kinds of Data Visualisation People.

I’m a believer in Malcom Gladwell’s 10,000 Hour rule, but apparently, there might be something better: Forget the 10,000-Hour Rule; Edison, Bezos & Zuckerberg Follow the 10,000-Experiment Rule.

If you’re looking to improve your craft as a developer, it’s worth reading What Writers Can Teach Programmers

If you’re on the fence about adding unit tests, read My Honest Opinion About Unit Testing.

Analysts agree that a mix of emulators/simulators and real devices are necessary to optimize your mobile app testing - learn more in this white paper, brought to you in partnership with Sauce Labs.

Topics:
swift ,android ,ios ,kotlin ,java ,mobile ,mobile app development

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}