Michael Long
Apr 3, 2022

--

Like the discussion, but just noting that if I saw someone passing "8am-8pm" or some such in a code review I'd call it out for sure. At the very least I'd have them split it out into separate opens and closes variables which then ensures you have both and as such eliminates an entire class of errors.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

Responses (1)