Posts

Showing posts with the label SwiftUI hacks

How WhatsApp Made Key Transparency Work (And Why It Matters)

Image
How WhatsApp's Key Transparency Changed the Game for Encrypted Messaging Okay so let's talk about something actually important for once - how WhatsApp made their encryption more trustworthy without making us jump through hoops. You know how every messaging app claims to be "secure" these days? Well WhatsApp actually put their money where their mouth is with this Key Transparency thing. Let me explain why this matters more than you might think. Visual from their tech docs - looks complicated but trust me it's cool The Big Problem Nobody Talks About So we all know WhatsApp uses end-to-end encryption. Great. But here's the sketchy part nobody mentions - how do you REALLY know you're talking to who you think you are? Like, what if: Some hacker swapped the encryption keys without you knowing? There's a middleman reading your messages right now? The app itself got compromised somehow? Scary stuff right? That's where Key Trans...

Advertisement

How they Supercharged SwiftUI Development at DoorDash (And How You Can Too)

Image
Alright, let's talk about something that used to drive our mobile team crazy - waiting ages just to see if our SwiftUI changes looked right. I mean, who's got time for that? We sure didn't. So we built this PreviewSnapshots thing that cut our dev time in half. No joke. Before/after using PreviewSnapshots - night and day difference The Pain of Regular SwiftUI Previews Man, where do I even start? The default SwiftUI previews are great and all, but try using them in a big project like ours. Here's what sucked: Slow as molasses:  Waiting 30+ seconds just to see a button change Fragile:  Break if you look at them wrong Limited:  Hard to test different states and configurations Inconsistent:  Would work on Mark's machine but not Sarah's (classic) We were wasting hours every week just waiting for previews to load. That's when we said "enough is enough" and built PreviewSnapshots. What Makes PreviewSnapshots Different It's not rocket science, just smar...

Advertisement