open-menu closeme
Home
Development icon
Apple Dev Android Dev Firebase Software Biz
About icon
Profile Portfolio Résumé
linkedin mastodon github rss
  • Swift Strings Cheat Sheet

    calendar Jan 31, 2021 · 5 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    Constructing Strings String from Literal 1 let str = "Hello, dog!" 2 let str2 = "Hello, 🐶!" Including Escaped Characters 1 print("Backslash: \") 2 print("Tab: \t") 3 print("LF: \nThis is on the next line") 4 print ("CR\r") 5 print("Single Quote: '") 6 …


    Read More
  • Swift Dictionary Cheat Sheet

    calendar Jan 28, 2021 · 6 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    Dictionary Fundamentals A Dictionary, provided by Foundation, is a type of hash table that stores key/value pairs. Keys must conform to Hashable Access to elements is O(1) Derived from NSDictionary Best used for key/value storage where lookup by key is the primary use case. However, Apple has added a lot of handy …


    Read More
  • Using DispatchGroup in SwiftUI

    calendar Jan 21, 2021 · 10 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    This post covers how to use the Grand Central Dispatch's DispatchGroup object to coordinate separate web requests so that UI updates can be completed at the same time, even when asynchronous requests aren't guaranteed to return in a predictable order. This post is primarily a tutorial of using GCD's DispatchGroup, and …


    Read More
  • Sorting collections of custom types using higher order functions in Swift

    calendar Jan 20, 2021 · 7 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    This post is a cheat sheet for sorting sequences of custom objects using Swift's sort operators. While sorting simple types (String, Int) are covered well in Apple's documentation on the subject and in many other places, I've focused below on sorting custom object types, which is more relevant to my daily work. The …


    Read More
  • Swift high-order map usage with custom types

    calendar Jan 20, 2021 · 8 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    What is Map? Map is a term that has roots in other technologies (such as Hadoop big data processing, which is where I've used it before 🙂). Map means to iterate over a sequence of objects, and perform some operation on each one, returning a new sequence of objects as the final output. The operation performed is …


    Read More
  • Swift high-order reduce usage with custom types

    calendar Jan 20, 2021 · 7 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    What is Reduce? Map is a general term that has roots in other technologies (such as Hadoop big data processing, which is where I've used it before 🙂). Reduce means to iterate over a sequence of objects, and perform some operation on each one, returning some summary value computed from the entire set. Map and Reduce are …


    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»

Categories

APPLE 23 PROGRAMMING 13 FIREBASE 4 ANDROID 3 STRATEGY 2

Series

COMPARATIVE-SYNTAX 4

Tags

SWIFT 16 IOS 12 KOTLIN 10 JAVASCRIPT 9 UIKIT 5 SWIFTUI 4 BACKEND 3 ARDUINO 2 BLUETOOTH 2 CLOUD-FUNCTION 2 ESP32 2 JETPACK-COMPOSE 2 APP-STORE 1 DATA-VIZ 1
All Tags
APP-STORE1 ARDUINO2 BACKEND3 BLUETOOTH2 CLOUD-FUNCTION2 DATA-VIZ1 ESP322 GOOGLE-CLOUD1 IN-APP-PAYMENTS1 IOS12 JAVASCRIPT9 JETPACK-COMPOSE2 KOTLIN10 MACOS1 SWIFT16 SWIFTUI4 UIKI1 UIKIT5 XCODE1
[A~Z][0~9]

Recent Posts

  • Awaiting Kotlin suspend functions in serial, parallel and lazy startup modes
  • Filtering Collections in Swift, Kotlin and JavaScript
  • REPL Tool Reference
  • Android Jetpack Compose View Model Eventing Architecture
  • Using Firebase Auth claims with Swift, Kotlin and JavaScript
  • Simple For Loop in Swift, Kotlin and JavaScript
  • URL Encoding GET parameters in Swift
  • Async/Await Syntax in Swift, Kotlin and JavaScript

Copyright  Rob Kerr. All Rights Reserved

to-top