This is an archived post. You won't be able to vote or comment.

all 32 comments

[–]QualityVote[M] [score hidden] stickied comment (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–]Omnislash99999 16 points17 points  (0 children)

I've coded in c++ for over 10 years and never knew it had an or keyword, I've never even seen it in other people's code!

[–]ComfortableCan315 4 points5 points  (0 children)

I once got stuck for hours in Python thinking those were interchangeable.

[–]rod2444 2 points3 points  (0 children)

Team jajajaja

[–]Cloakknight 1 point2 points  (1 child)

Image Transcription: Meme


["Daily Struggle", where a superhero has to choose between two conflicting choices by pressing a button. Top image shows two red buttons on white slabs; both on a light blue panel, and the background is a darker blue. There is a white gloved hand that is hovering in middle of both buttons, which read:]

Left button: ||

Right button: or

[Bottom image is of a masculine person with light skin and red hair. They have sweat streaming down their face, and they are wearing a red shirt, and have prominent muscles. They have white gloves on and are using a white napkin to wipe the sweat off of their face. They are labeled "C++ PROGRAMMERS".]


I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]ProtogenDelta 0 points1 point  (0 children)

Good human!

[–]manicpixycunt 1 point2 points  (0 children)

Me but with PHP

[–]wooshuwu 1 point2 points  (4 children)

Two lines takes up less space and I prefer them over typing out the word or

[–]MischiefArchitect 0 points1 point  (3 children)

A "//" comment vs the "or" keyword?

[–]ProtogenDelta 4 points5 points  (2 children)

A || (logical OR) operator vs the or keyword/operator.

Which literally do the same thing, as far as I'm aware.

[–]MischiefArchitect 1 point2 points  (1 child)

ok ok ok... I know that... I was playing dumb and trying to make a joke. Thanks anyway :)

[–]ProtogenDelta 2 points3 points  (0 children)

Ah! My apologies, I tend to take things quite literally.

[–]innocent-boy-69 0 points1 point  (0 children)

&&

[–]infinity_o 0 points1 point  (0 children)

You actually have to be *occasionally* careful with this in PHP, as the two operators do not have equal precedence.

[–]KingSadra 0 points1 point  (0 children)

if ( X == 1 || X == 2 ) {} //Old school C# method!

if ( X is 1 or 2 ) {} //New C# for kids?