I have published a post or two about the powers of brevity. But we programmers sometimes take it too far.
Can someone tell me what these integers represent?
case upc(Int, Int, Int, Int)
No? Me either.
This is how associated values are pretty much always done in Swift. But thanks to this post by Marco Eidinger via iOS Dev Weekly, I discovered something new and clarifying: it turns out that you can actually label your enum’s associated values too. People just don’t do it for some reason. 🤷🏻♂️
Can you tell me what the integers represent now?
case upc(numberSystem: Int, manufacturer: Int, product: Int, check: Int)
Isn’t that a little easier to understand?
I run into the assumption sometimes where people mistake brevity for efficiency. Brevity shouldn’t mean sacrificing valuable context for slightly fewer words. Thanks to the Marco Eidinger post for pointing this out explicitly. 👍
I always found the “favorites” feature in Apple Maps to be too general and dissatisfying. I quit using that feature once I had 48 places saved all across the world. 🤷🏻♂️
Before that, I saved specific lists of places in Google Maps, but found their mobile app to be cluttered and confusing. 😖 So I gave up and started using Trello.
Trello is cool for some things like trip planning and small projects, but it did not scale well and didn’t handle lists of places well. So I gave up on that. 😢
I’m happy to have just discovered that you can save your favorite places as “guides” in Apple Maps. Finally, this is genuinely useful!
I just set up my own guide for coffee places open early for when I’m looking to get our early. Quick and easy and right to the point! 🤩. I can immediately see all the places I saved and their hours. Check it out for yourself! (This is my own personal guide, so it’s focused on Austin, TX.)
Of course this guide automatically syncs to my iPad and Mac as well. ✅
Rechecking Goole Maps
Forgive me if I sound like an fanboy, but out of genuine curiosity I went back and I did the same thing in the latest Google maps. It was a bit painful. 😢
Notice how the “main” screen is oddly not a map but more of a picture of a cup of coffee and therefore not useful to me.
And even when I drilled into an actual map view, the places I care about are unlabeled in favor of (1) a notification that HEB has an offer and (2) the Texas Capitol and Congress Ave. Bridge exist. Again, not useful.
I just want to know where a coffee shop is open at 7am! Now that would be useful. 👆