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.

You are viewing a single thread.
View all comments View context
58 points

No fiting. IS always goes at the start of names for booleans you are correct

permalink
report
parent
reply
2 points
*

that works for 2 word names eg is_open or is_file, but in this case is_dialog_file_open is structured like a question, while dialog_file_is_open is structured like a statement

permalink
report
parent
reply
8 points

Doesn’t matter, the point is that, if it starts with “is” then you automatically know it’s a boolean.

permalink
report
parent
reply
3 points

It still works. is_this_thing_some_thingy. Is is just a prefix for if the suffix returns true/false.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 2.9K

    Monthly active users

  • 1K

    Posts

  • 38K

    Comments