Software Dev

We All Hate Error Handling. Here Are Some Tips.

Error handling makes everything more complicated. Ugh! What do you do if a network call times out (pretty common)? Or you’re trying to save an image and there is no disk space (less common but can happen)? Or that thing that’s never supposed to happen happens (occasionally happens)?

I mean, you have to do something, right? Ugh. πŸ€¦πŸ»β€β™‚οΈ

Here are some tips. Thanks to Swift By Sundell for giving this topic some attention.

πŸ‘‰ Propagating user-facing errors in Swift

Via iOS Dev Weekly.

You

Maslow’s Pyramid

A while back, I posted a link to the Artist’s Hierarchy of Needs. The idea seemed useful, although it was not a hierarchy per se, but more of just a list. πŸ€·πŸ»β€β™‚οΈ

I think the idea of the artist’s hierarchy was inspired Maslow’s hierarchy of needs, which is more of a real hierarchy. So it’s kind of cool to see this post.

πŸ‘‰ SELF CARE PART 2: CREATIVE HIERARCHY OF NEEDS

Basically it says that you need take good care of yourself before you can aspire to your “ultimate self-actualization”. I guess that’s super obvious, but still it makes for a cool idea and a good visual. πŸ˜†

Picture

And the Creatively, LLC blog looks great overall beyond this post. I like their motto, “Create Your Best Life”. Via Fresh Ink Austin

Software Dev

Scroll Views in Interface Builder

There are a couple of tricks to getting your scroll view working in an Xcode storyboard. The great fluffy.es blog carefully walks you through it. πŸ‘

πŸ‘‰ How to use scroll view in Interface Builder / Storyboard (Xcode 11)

This site also has some really helpful notes on intrinsic size. And a great series on Making Sense of Auto Layout. Who knew? This guy is good. He’s giving Ray Wenderlich a run for his money. 😲

constraint explanation
Me · You

The 50/50 Rule and Why I Blog

My blog’s current tag line is “This is not a blog.”

Originally, this site was intended as a way to keep track of links to interesting or useful things, like glorified bookmarks. But since then, it has evolved to serve another purpose: to make me think and communicate about stuff.

See, as I was bookmarking stuff, I found myself adding little bits about why I liked the link or context about how I found it. Over time, I found that when I would link to an article, I would sometimes want to add a summary about the article to help me process it and remember it better.

A better way to learn, process, retain and remember information is to learn half the time, and share half the time.

If I take two seconds to effortlessly save a bookmark, then the information is saved and soon forgotten. If I add even a quick post about it, giving it a title and some context or a summary, then that post is now a part of me. And as a bonus, I get to share it with other people.

So I was happy to see this article, which makes me think I am not wasting my time.

πŸ‘‰ The 50/50 Rule (How to Retain And Remember 90% of Everything You Learn)

It basically says that if you make yourself talk about something, then you come to understand it or appreciate it better. Spend half you time learning and half your time explaining what you learned.

According to the article, I would be serving myself better by writing out my notes by hand. It seems people type too fast for their brain to absorb what they’re doing. And simply by writing that, I now remember that fact. But I’m typing this anyways because you can’t tag, search, and share your paper notebook. πŸ€·πŸ»β€β™‚οΈ

And yes, this article is so meta.

Me · Software Dev

WordPress API

The recent discovery of the YNAB API has me visualizing some sort of personal client where I can manage my budget and do everything else in my life from one place. Maybe a command-line tool on my Mac terminal? πŸ˜†πŸ€“ Why not write and edit blog posts from there too? I mean, it’s possible. I might do it just because it’s so nerdy.

πŸ‘‰ WordPress REST API Handbook

Wait, what if I used the WordPress API to write a blog post about the WordPress API. πŸ€―πŸ˜†

Software Dev

The Many Offline Options for iOS Apps – Device Blogs – Medium

Offline mode is no longer just an extra feature you could choose to add to your app β€” it’s something many users expect. I’ve often seen developers force their favorite offline solution on a problem…
β€” Read on medium.com/device-blogs/the-many-offline-options-for-ios-apps-2922c9b3bff3

Summary

Runs through Caches vs. Databases and when each is a better fit. Basically, databases are better for a finite set of data that you can save “all” of, perhaps a game of personal database. Caches are better for something that is too big / complex / dynamic to save “all” of, e.g. social media, web, etc.

Also covers the idea of using a queue (or EveneBus) for offline tasks and mixing strategies.