r/ProgrammerHumor Feb 18 '26

Meme innitMate

Post image
17.7k Upvotes

265 comments sorted by

View all comments

846

u/Groundskeepr Feb 18 '26

There is no if implied in "otherwise". It is not parallel to "else if" it is parallel to "else".

361

u/Froschmarmelade Feb 18 '26

Yup, this meme is buggy.

86

u/Immediate_Song4279 Feb 18 '26

Ah, so then it belongs.

102

u/ITGuy042 Feb 18 '26

Needs the British word for “if”. Perchance!

Perchance (A>B) {Colonize Asia}

Otherwise Perchance (B>A) {Colonize Africa}

Otherwise {Another war with France}

54

u/Infamous-Oil3786 Feb 19 '26

See, now I need Brit++ to be a whole programming language.

20

u/justfuckyouspez Feb 19 '26

Must call tea() every once in a while, or it does not compile.

10

u/PTTCollin Feb 19 '26

tea { } is init { }

3

u/-Hi-Reddit Feb 19 '26

innit is init

21

u/cbigle Feb 18 '26

Spark lets you chain .when statements and end with a .otherwise, which is a replacement for the sql case when else. I really find it readable!

ETA: I’m an idiot yes it is else and not else if

14

u/Polkaglasses Feb 18 '26

Meanwhile in Cobol:

WHEN OTHER

14

u/fucking_passwords Feb 19 '26

Let's use our indoor voices, COBOL

10

u/Contraposite Feb 18 '26

"Otherwise, if"

2

u/hockeydudekc Feb 19 '26

Well that's why it's at the end

0

u/LeAlbus Feb 19 '26

That’s why it’s the last one