Mike's Psyche

  • Home
  • Portfolio
  • About
    • Privacy Policy

Programming

TIL: URLComponents, URLQueryItem, and URLRequest

Michael 2019-05-07

TIL I always love learning new stuff! Well, at least when it’s new stuff I care about. Today I learned that there’s a better way to construct queries for apisContinue reading

lightsaber.color = .blue

Michael 2019-05-07

Ignite Today’s lecture was designed around learning how to use JSON apis and we made a sample app that did as such. I’ve done this kind of thing before, butContinue reading

typealias shorthand = (String, String) -> (Str)

Michael 2019-05-07

But why shorthand? Me: Largely because closures don’t think for themselves, they do as they’re told. Closures: That is not true! Me: Yes it is! Closures: Okay. Closures are amazing.Continue reading

EXTRA EXTRA: Main Thread Gains Exclusive Rights to UI Elements

Michael 2019-05-07

Read all about it! Have you ever done this? //run a background thread DispatchQueue.global().async { //update the UI self.dataLabel.text = "NEW IMPORTANT INFORMATION!!!" } and ended up with this? =================================================================Continue reading

let subviews = view.subviews.noIMeanALLSubviews()

Michael 2019-05-07

UISearchBar is neat Earlier today I was making my first attempt at using the UISearchBar. It’s quite neat! The TL;DR of it is that it’s basically a UITextField with prebakedContinue reading

Embedding View Controllers

Michael 2019-05-06

Intro Good code delegates responsibility to the objects responsible for that code. It just makes it easier for others to understand and reason about, especially in large projects. However, aContinue reading

Good Code Procedure: URLSession.dataTask

Michael 2019-05-06

In our lesson today, we were provided some template code to assist us in our guided project during our lecture. Included was some netcode for URLSession. I just wanted toContinue reading

struct Post: BlogDelegate

Michael 2019-05-05

A couple days into school, we covered delegates and protocols. I definitely saw some fellow students struggle with the concept. I wish I could say I have a perfect metaphorContinue reading

String.ImproveMyCode(code)

Michael 2019-05-05

Since initially writing this, I was informed that it’s part of a lesson that is in my distant future relating to the Theory of Computation/Hash Tables. As a disclaimer, IContinue reading

guard let firstDay = [LambdaSchoolDays]().first

Michael 2019-05-05

The first day The first day was quite exciting! The only issue I had was that the lecture lasted a bit long. To be fair, they decided to make aContinue reading

Posts navigation

« 1 2 3 4 »
About

MICHAEL REDIG

I love Swift, World of Warcraft, my wife, and my dog. (not necessarily in that order)

Recent Posts
  • 80/20 Rule
  • Touch Visualization During Presentations
  • Protocol Extensions, Defaults, and “Overriding”
  • Poopmaster Pro Released on the App Store!
  • SwiftyBinaryFormatter
Categories
  • App Store
  • Misc
  • Programming
  • Swift
  • Xcode
Meta
  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Recent Comments
  • Ilias on Protocol Extensions, Defaults, and “Overriding”
  • Andrew Ruiz on The Game of Git
  • Taylor Fahey-Lyles on Scoreboard
  • NetworkHandler | Mike's Psyche on Good Code Procedure: URLSession.dataTask
  • Home
  • Portfolio
  • About

Copyright 2025 Mike's Psyche | Designed by CodeGearThemes

Powered by WordPress