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
  • 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
  • Using Firebase Auth claims with Swift, Kotlin and JavaScript

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

    Firebase Authentication supports built-in and custom user claims that allow us to conditionally expose functionality to users based on authorization groups. This post demonstrates the syntax to add custom claims in a Firebase backend, and read claims from mobile apps. What are Claims? In identity systems, a …


    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
  • Adding an X-Auth-Key to a Firebase Function stored in Google Secret Manager

    calendar Apr 5, 2023 · 7 min read · Backend JavaScript Cloud Function  ·
    Share on: twitter facebook linkedin copy

    Firebase cloud functions can be secured through various mechanisms supplied by Firebase with out-of-the-box features: Functions can easily determine whether the user is being called by a user who has been authenticated by Firebase Auth We can use Firebase App Check to ensure Functions can only be called from specific …


    Read More
  • Sending a Push Notification from a Firebase Function

    calendar Apr 4, 2023 · 6 min read · Backend JavaScript Cloud Function  ·
    Share on: twitter facebook linkedin copy

    An essential part of maintaining user engagement with mobile applications is sending push notifications at the appropriate time. Push notifications come in two flavors: Local push notifications: notifications scheduled by the app itself, based on internal events. For example, a simple timer app could schedule a push …


    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
  • Bridging Javascript and WKWebkit

    calendar Jun 21, 2021 · 7 min read · JavaScript iOS UIKit  ·
    Share on: twitter facebook linkedin copy

    Many mobile applications incorporate remote web pages, either as passive (static) content — or as in this case as integral parts of the UI. Using the WebKit/WKWebView techniques presented here, your native apps can be better integrated with web content and provide a superior experience to end-users. Two-way Integration …


    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