new preference war just dropped
new preference war just dropped
geteilt von: https://lemmit.online/post/3018791
This is an automated archive made by the Lemmit Bot.
The original was posted on /r/ProgrammerHumor by /u/polytopelover on 2024-05-26 21:23:20+00:00.
First one are method name, second one are status name.
Yoda level preference war.
I tend to add is to booleans toreally differentiate between a method name and a status.
That way, it's easier for my dumb brain to spot which is which at a glance.
fite me
In Elixir, we mark statuses by using a question mark at the end of the variable name. Something like this:
I like this better than the
is_
prefixThis is the way.
Command statement = an action
Question statement = a status
Lol mutable state