Skip to content

schrock {block}

code and science (but mostly code)

  • Twitter
  • Github
  • LinkedIn
  • Home
  • About
  • Logo Roll
  • Hire Me!
  • Contact
  • Testimonials

Author: E S

A mobile developer with a taste for everything.
Uncategorized

ReactiveSwift to Combine Cheat Sheet

December 10, 2019 E S

This is a cheat sheet for converting from ReactiveSwift to Combine. The origin of this document is me converting some of my libraries from one to the other, so they're just basic use cases of things I've used. As a result, this sheet by no means exhaustive, but is a good start and includes caveats… Continue reading ReactiveSwift to Combine Cheat Sheet

Leave a comment
Uncategorized

Quick iOS: Generics

December 3, 2019November 8, 2019 E S

Generics are basically placeholders for types. They help you write specific code that can be used with (almost) any type. Suppose you're really tired of the whole if let dance. You want to write a function that will do that for you, so you can save some lines of code. Generics to the rescue! You could… Continue reading Quick iOS: Generics

Leave a comment
Uncategorized

Quick iOS: Protocols

November 19, 2019November 8, 2019 E S

Protocols allow you to define functions and properties that any class or struct which conforms to it must implement. This gives you the ability to rely only upon the things you need, while not putting too many restrictions on the conforming type. Let's look at an example. Consider the following: protocol Fireable { func fire()… Continue reading Quick iOS: Protocols

Leave a comment
Uncategorized

Quick iOS: Swift Optionals and nil

November 12, 2019November 8, 2019 E S

TLDR: calling a method on nil will crash. Variables that can be nil are called optional, and are defined using a question mark. To call a method on an optional variable, unwrap it by using a question mark (optional chaining), an exclamation point (force unwrapping), or an if let or guard let statement (conditional unwrapping).… Continue reading Quick iOS: Swift Optionals and nil

Leave a comment
Uncategorized

iOS App Codebase Best Practices

November 8, 2019 E S

A client recently had me prepare a document containing suggestions on how to bring their app in line with current best practices as they continue to iterate and grow their team. Below I've listed some of those best practices, as I see them, and some suggestions on how to get there on a 'lazy' basis… Continue reading iOS App Codebase Best Practices

Leave a comment
Uncategorized

Mobile Dev Toolbox

October 12, 2019 E S

Want to be a one-person mobile app factory? Then you'll need the tools below! iOS Development Required This one is probably the most annoying if you're not already an Apple user: you'll need a Mac of some sort, first of all because Apple requires it, but secondly because only Macs can run Xcode, which iOS… Continue reading Mobile Dev Toolbox

Leave a comment
Uncategorized

Swift/Kotlin Functional Programming: Tips and Tricks

October 12, 2019October 12, 2019 E S

Here are some of the main advantages I see to doing things in a functional way: Less code – writing simple, small functions allows you to reuse them in many different places by giving you the flexibility to compose and combine them in any way you can think of. This leads to fewer levels of… Continue reading Swift/Kotlin Functional Programming: Tips and Tricks

Leave a comment
Uncategorized

Android Instant Apps – tips and tricks

September 8, 2019September 8, 2019 E S

At I/O a few years ago, Google announced Instant Apps, an innovation that promises to be good for users and app developers alike. Instant Apps allow visitors to your Play Store listing to try before they buy – in one tap they're able to quickly download a demo version of your app and see how… Continue reading Android Instant Apps – tips and tricks

Leave a comment
Uncategorized

Smart Apartment Speaker System Setup

August 6, 2019 E S

Today I'd like to talk about how I've set up my apartment's homegrown, multi-room, auto synced speaker system. When I discovered Sonos a few years ago, I was amazed at it's multi-room sound syncing speakers... I was also disappointed by the cost. So, I set out to build (or, at least, assemble) my own system… Continue reading Smart Apartment Speaker System Setup

Leave a comment
Uncategorized

Alabama’s New Law is a Dangerous Overstep by Big Government

May 18, 2019 E S

  Alabama just passed a forced labor law. According to this law, the state has the right to determine that one person is entitled to the labor of another: a pregnant woman MUST house and feed a fetus – without pay and against her will – under threat of state violence. If that's the case, how… Continue reading Alabama’s New Law is a Dangerous Overstep by Big Government

Leave a comment

Posts navigation

Older posts

Recent Posts

  • ReactiveSwift to Combine Cheat Sheet
  • Quick iOS: Generics
  • Quick iOS: Protocols
  • Quick iOS: Swift Optionals and nil
  • iOS App Codebase Best Practices

Archives

  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • April 2019
  • December 2018
  • November 2018
  • October 2018
  • August 2018
  • October 2017
  • September 2017
  • March 2017
  • September 2016
  • August 2016
  • June 2016
  • July 2015
  • April 2015
  • November 2014
  • October 2014
  • March 2014
  • November 2012

Categories

  • Android Development
  • Arduino
  • Continuous Integration
  • iOS Development
  • Penetration Testing
  • RainbowCube
  • RainbowDuino
  • Raspberry Pi
  • Uncategorized

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Hours & Info

Based in New York, NY
Mon-Fri 8am to 5pm

Recent Posts

  • ReactiveSwift to Combine Cheat Sheet
  • Quick iOS: Generics
  • Quick iOS: Protocols
  • Quick iOS: Swift Optionals and nil
  • iOS App Codebase Best Practices
  • Twitter
  • Github
  • LinkedIn
Blog at WordPress.com.
Cancel