Skip to content

schrock {block}

code and science (but mostly code)

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

Category: Uncategorized

Uncategorized

Quick Swift: Swift Optionals and nil

November 12, 2019August 10, 2020 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 Swift: 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, 2019August 10, 2020 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
Uncategorized

More flexible UITableViews

May 14, 2019May 14, 2019 E S

Originally, UITableViews were envisioned to hold homogenous data. Something like this: Every cell was the same type, just with different data backing it. And so the UITableView API was designed with that in mind. In your controller you'd register a cell type, and in the data source you'd set the data on that cell. Easy.… Continue reading More flexible UITableViews

Leave a comment
Uncategorized

Don’t make something “new,” make something better

April 27, 2019 E S

A student recently asked me how to come up with ideas for new products... all the good ideas, it seemed to them, were already taken. I realized from talking to this student that a lot of people looking to be entrepreneurs think you have to come up with something new in order to be successful. But… Continue reading Don’t make something “new,” make something better

Leave a comment
Uncategorized

UITableViews: removing those effin little lines

April 19, 2019April 27, 2019 E S

Those effin little lines are called 'separators' (you can adjust their insets over in the sidebar) and UITableViews add them whenever the list on the screen is too short to fill up all of it. It's annoying. The way you get rid of them is by adding an empty view as the footer of the… Continue reading UITableViews: removing those effin little lines

Leave a comment

Posts navigation

Older posts
Newer posts

Recent Posts

  • Quick Swift: Operators
  • What makes a good network layer
  • Slippers: a library for paging, refreshing, and JSON
  • Quick Swift: Combine (Just the Basics)
  • Coronemoting: Remote work during the coronavirus pandemic

Archives

  • August 2020
  • July 2020
  • April 2020
  • March 2020
  • 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

  • Quick Swift: Operators
  • What makes a good network layer
  • Slippers: a library for paging, refreshing, and JSON
  • Quick Swift: Combine (Just the Basics)
  • Coronemoting: Remote work during the coronavirus pandemic
  • Twitter
  • Github
  • LinkedIn
Blog at WordPress.com.
Cancel