3 ms·
There is a common misconception that secure code has to be by definition less readable and harder to write. The upvotes on the parent comment suggest that even
by adambyrtek 16y ago
There is a common misconception that secure code has to be by definition less readable and harder to write. The upvotes on the parent comment suggest that even HN readers think that way.
I believe that this is a false dichotomy. Good practices and separation of concerns often increase code readability. For example I think the updated version of your code with explicit parameter binding is much more readable than string concatenation.