open-menu closeme
Home
Development icon
Apple Dev Android Dev Firebase Software Biz
About icon
Profile Portfolio Résumé
linkedin mastodon github rss
  • 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
  • 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
  • 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
  • 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

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