News for hackers. Stuff that matters.
Re:Read this post ‘unless’ you’re not a Ruby developer by lamontcg on Tuesday December 13, 2022 @12:21PM (#33972124)
Use rubocop. Ban the use of `unless` except as a trailing conditional and ban double-negatives. Then the only thing you can do is `foo unless whatever?` and if someone comes along and modifies that to something horrible rubocop will yell at them that it is horrible (and `rubocop -a` will auto-fix it).

Use the tools.

There are no comments on this comment yet.