DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Kotlin Multiplatform for Mobile and OTT Cross-Platforms
  • Building a Kotlin Mobile App With the Salesforce SDK: Editing and Creating Data
  • Building a Kotlin Mobile App With the Salesforce SDK
  • 5 Top Programming Languages For Your Android App Development Project

Trending

  • Bad Software Examples: How Much Can Poor Code Hurt You?
  • Demystifying Project Loom: A Guide to Lightweight Threads in Java
  • Auditing Spring Boot Using JPA, Hibernate, and Spring Data JPA
  • Breaking Down Silos: The Importance of Collaboration in Solution Architecture
  1. DZone
  2. Coding
  3. Languages
  4. This Week in Mobile: Getting to Grips With Kotlin and Swift

This Week in Mobile: Getting to Grips With Kotlin and Swift

You can't afford to miss these mobile dev tips on better testing, better debugging, and getting to know Kotlin and Swift better.

James Sugrue user avatar by
James Sugrue
CORE ·
Oct. 06, 17 · Opinion
Like (5)
Save
Tweet
Share
3.07K Views

Join the DZone community and get the full member experience.

Join For Free

The headlines from the mobile world this week belong to Google, with the announcement of Pixel 2 along with Daydream, Pixel Buds, new Google Home devices and a new PixelBook. 

Android 

Kotlin Tips: Singleton, Utility Functions, Group Object Initialization and More ..  is full of good advice on the right way to get started with Kotlin. While, Amused By .. and in Operators in Kotlin highlights some of the more natural ways of coding in everyone’s favorite new language.

If you take test driven development seriously, you’ll want to read Android Architecture Components: Testing Your ViewModel LiveData to get a handle on how to properly test out your ViewModels.

Implementing EventBus with RxJava: RxBus shows how to use the EventBus pattern in your Rx code.

Default methods + lambdas = less code shows how you can use the combination of these two Java 8 features to clean up your Android code, with no limitations on the Android SDK.

Some projects to check out: 

  • ScalingLayout: With Scaling Layout, scale your layout on user interaction.
  • SimpleApiClient: A retrofit extension written in Kotlin. 
  • StatusStories: Status Stories = Snapchat stories, Instagram stories, WhatsApp Statuses, Facebook Messenger Stories.
  • RendererRecyclerViewAdapter: A single adapter with multiple view types for the whole project.

iOS 

Did you know that Xcode 9 is twice the size of Xcode 5? If space is at a premium on your development machine, check out How to Make Xcode Take Up Less Space. 

John Sundell talks about Using Generic Type Constraints in Swift 4, highlight the techniques and patterns that they make possible.

AutoLayout priorities are a little tricky in Swift, but Easier Swift Layout Priorities shows how you can use some operator overloading to make things better.

Managing Different Environments in Your Swift Project With Ease shows how you can use configurations and schemes to split out your development, production and staging setups.

As the article notes, developers spend about 70% of their time debugging, so you should really know your toolset. Debugging Swift Code with LLDB is the article for you.

Some projects to check out: 

  • LifetimeTracker: Find retain cycles/memory leaks sooner. 
  • BulletinBoard: Generate and display Bottom Card Interfaces in iOS.
  • InfoKit: Strongly typed access to the Info.plist for iOS, macOS, and tvOS.
  • Mint: A package manager that installs and runs Swift command line tools.

General 

Mapbox put forth an interesting New Kind of Map in their latest offering. It’s a great way to look at things, and I’m sure you’ll see this pattern appearing in location-based apps soon.

This article on Instacart’s Lead Product Designer on Creating a Design System shows how difficult it can be to create a single reusable design system. If you’re not put off after reading it, then check out Creating a First Product Design System in Sketch.

In the first part of a series on The Ultimate Guide for Mobile Developers Who Want To Design, find out more about design thinking.

mobile app Swift (programming language) Kotlin (programming language)

Opinions expressed by DZone contributors are their own.

Related

  • Kotlin Multiplatform for Mobile and OTT Cross-Platforms
  • Building a Kotlin Mobile App With the Salesforce SDK: Editing and Creating Data
  • Building a Kotlin Mobile App With the Salesforce SDK
  • 5 Top Programming Languages For Your Android App Development Project

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: