Skip to content

Instantly share code, notes, and snippets.

View doronkatz's full-sized avatar
💭
Working on a Tesla SDK for iOS

Doron Katz doronkatz

💭
Working on a Tesla SDK for iOS
View GitHub Profile
@pteasima
pteasima / Auth+Combine.swift
Last active February 6, 2021 13:52
Firebase + Combine extensions
import FirebaseAuth
import Combine
extension PublishersNamespace where Base: FirebaseAuth.Auth {
var currentUser: AnyPublisher<User?, Never> {
let userSubject = PassthroughSubject<User?, Never>()
let handle = base.addStateDidChangeListener { auth, user in
userSubject.send(user)
}
@rbobbins
rbobbins / protocols.md
Last active May 15, 2022 21:08
Notes from "Protocol-Oriented Programming in Swift"

PS: If you liked this talk or like this concept, let's chat about iOS development at Stitch Fix! #shamelessplug

Protocol-Oriented Programming in Swift

Speaker: David Abrahams. (Tech lead for Swift standard library)

  • "Crusty" is an old-school programmer who doesn't trust IDE's, debuggers, programming fads. He's cynical, grumpy.

  • OOP has been around since the 1970's. It's not actually new.

  • Classes are Awesome

    • Encapsulation
    • Access control