open-menu closeme
Home
Development icon
Apple Dev Android Dev Firebase Software Biz
About icon
Profile Portfolio Résumé
linkedin mastodon github rss
  • Awaiting Kotlin suspend functions in serial, parallel and lazy startup modes

    calendar May 12, 2023 · 4 min read · Kotlin  ·
    Share on: twitter facebook linkedin copy

    Kotlin allows a thread of execution to be suspended until some other asynchronous function completes and returns a result. Suspend functions are most commonly used when a response from an external resource is needed to complete the suspend function. Most often the external resource is a web service API or a connected …


    Read More
  • Filtering Collections in Swift, Kotlin and JavaScript

    calendar May 12, 2023 · 2 min read · Swift Kotlin JavaScript  ·
    Share on: twitter facebook linkedin copy

    Extracting members of a collection that match some filtering predicate is a common pattern in programming. Traditionally we would iterate over all members (e.g. with a for or foreach loop), and save each member matching some condition. Most programming languages now provide some single step filter function to eliminate …


    Read More
  • REPL Tool Reference

    calendar May 11, 2023 · 1 min read · Swift Kotlin JavaScript  ·
    Share on: twitter facebook linkedin copy

    It's helpful to experiment with language syntax in a REPL tool before pasting code into your editor. REPL is an acryonym for Read, Evaluate, Print, Loop. REPL tools are simple interactive programming environments primarily used to validate syntax and algorithms. Swift The main Swift REPL tool is the Playground feature …


    Read More
  • Simple For Loop in Swift, Kotlin and JavaScript

    calendar Apr 8, 2023 · 3 min read · Swift Kotlin JavaScript  ·
    Share on: twitter facebook linkedin copy

    A core feature of all programming languages is the trusty for loop. For loops execute a statement a predefined number of times with some way to exit the loop early. Swift Swift uses range operators to construct simple for loops. 1let start = 0 2let end = 10 3 4for i in start ... end { 5 print(i) // prints 0 through 10 …


    Read More
  • URL Encoding GET parameters in Swift

    calendar Apr 7, 2023 · 2 min read · Swift  ·
    Share on: twitter facebook linkedin copy

    When creating a GET URLRequest in Swift, it's often necessary to URL encode GET string parameters. Many languages include String functions to emit url encoded versions of Strings, but as of this writing Swift does not fully address this problem in the Foundation String class. However, Swift Foundation actually does …


    Read More
  • Async/Await Syntax in Swift, Kotlin and JavaScript

    calendar Apr 6, 2023 · 3 min read · Swift Kotlin JavaScript  ·
    Share on: twitter facebook linkedin copy

    Most modern languages support the ability for asynchronous function calls to be called from synchronous code blocks. This language feature is usually called async/await. This post is a brief syntax scratchpad comparing async/await in different languages. Swift In Swift, an await-able async function is created by adding …


    Read More
  • Creating async/await functions in a Swift Playground

    calendar Apr 6, 2023 · 1 min read · Swift Xcode  ·
    Share on: twitter facebook linkedin copy

    Swift Playgrounds in Xcode are super useful for trying out Swift syntax either for learning, or for refining code before incorporating it into a real project. By default async functions can't be executed in a playground, but it is possible. Here's an example: 1import Foundation 2import _Concurrency 3import …


    Read More
  • ForEach Syntax in Swift, Kotlin and JavaScript

    calendar Apr 3, 2023 · 3 min read · Swift Kotlin JavaScript  ·
    Share on: twitter facebook linkedin copy

    ForEach is a common pattern in programming modern programming languages. Prior to ForEach, the standard approach to iterating over an array of objects was to use a for loop stepping from the first index to the last. ForEach syntax has extra utility in languages that support many types of collections: a list iterated …


    Read More
  • Create an ESP32 BLE peripheral for iOS

    calendar Aug 8, 2021 · 17 min read · Bluetooth iOS ESP32 Arduino  ·
    Share on: twitter facebook linkedin copy

    This post is part one of a series targeted at helping mobile app developers build their own BLE Peripherals using inexpensive ESP32 hardware in less than 100 lines of code. This can help to more fully understand the BLE protocol. If you’re an iOS developer who would like to build their own BLE Peripherals for learning …


    Read More
  • Create an ESP32 BLE peripheral for iOS

    calendar Aug 8, 2021 · 16 min read · Bluetooth iOS ESP32 Arduino  ·
    Share on: twitter facebook linkedin copy

    This post is part two of a series targeted at helping mobile app developers build their own BLE Peripherals using inexpensive ESP32 hardware in less than 100 lines of code. This can help to more fully understand the BLE protocol. If you’re an iOS developer who would like to build their own BLE Peripherals for learning …


    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