3 ms·
Well, you're not only making it easier for your colleagues in marketing to be able to make a code change (hey, it happens more than you might think!) but you're
by veidr 8y ago
Well, you're not only making it easier for your colleagues in marketing to be able to make a code change (hey, it happens more than you might think!) but you're also making it easier for your future self to come back to the code base without having to remember as much.
Most important, though, you are structuring the code in a way that provides better actionable understanding of the intent not only to the humans that work on it, but also your intrepid robot buddies, the Swift compiler / static analyzer. Who happen to be extremely helpful allies in this particular language.
In Swift, I would recommend using dedicated types like AccessToken and RefreshToken, instead of plain strings, 100% of the time.