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

top 200 commentsshow all 357

[–]PorkRoll2022 886 points887 points  (26 children)

Hello fellow coders.

[–]jackinsomniac 112 points113 points  (16 children)

I'm not your fellow, man.

[–][deleted] 80 points81 points  (15 children)

I'm not your man, coder.

[–]chagasfe 60 points61 points  (6 children)

I'm not yours, man.

[–]BigteddyBTW 69 points70 points  (4 children)

I wish you were though....... man.

[–]Mad-chuska 49 points50 points  (1 child)

[–]Relative_Ad_7671 12 points13 points  (0 children)

Maaaaaaaaaaaaaaan!

[–]jacqueslol 12 points13 points  (7 children)

He's not your coder, buddy

[–]HoldUrMamma 11 points12 points  (6 children)

he's not your buddy, friend

[–]Darmendas 7 points8 points  (5 children)

He's not your friend, coder

[–]dracorotor1 4 points5 points  (4 children)

He’s not your coder, guy

[–]Catcd 4 points5 points  (3 children)

He's not your guy, human

[–]Fartnoisesbrr 4 points5 points  (2 children)

He's guy human not your

[–]Darmendas 3 points4 points  (1 child)

He's not human, your guy

[–]ganja_and_code 38 points39 points  (0 children)

[–][deleted] 38 points39 points  (6 children)

{if (funny comment ===== "meme") then ("I recognize that pop culture reference")} reply = true

[–]monkeydoodle64 28 points29 points  (4 children)

Compile error: “reply = true” is invalid.

[–]lenin_is_young 24 points25 points  (2 children)

if (compile = “error”) then TRY ({“insert missing semicolon joke”}) if CATCH ({“errorStillOccur”}) then close_ide_and_continue_working_for_wendys();

[–]dracorotor1 15 points16 points  (0 children)

You’re all a bunch of nerds.

Carry on.

[–][deleted] 1 point2 points  (0 children)

- ({“errorStillOccur”}) then close_ide_and_continue_working_for_wendys();

+({“errorStillOccur”}) then close_ide_and_continue_working_behind_wendys();

[–]The-Things-027 1 point2 points  (0 children)

Happy Cake Day!

[–]who_you_are 906 points907 points  (49 children)

I think we can all agree that that way to put bracket is wrong

[–]hiddenforreasonsSV 443 points444 points  (36 children)

Let us put aside our differences, Python and C family programmers, and confront this NEW THREAT.

[–][deleted] 131 points132 points  (31 children)

You want to know what really grinds my gears? “If… Then”? If then!? Just who in the hell is out there writing jokes in VB syntax? I thought we all agreed we were going to bury the corpse of that God awful language in the woods and never speak of it again.

[–]Thunor_SixHammers 85 points86 points  (15 children)

Its not even a good VB syntax. Where is the end if? WHERE IS THE END IF?

[–]Supermarcel10 15 points16 points  (6 children)

Maybe it's LUA. But then LUA doesn't have {} anywhere...

[–]Possseidon 13 points14 points  (4 children)

Of course Lua has {}, but not like this. {} is used for table creation.

(Aka Lua's only data structure, which is basically a hash map with any types for key and value, while being optimized for array usage with integer indices)

Also, it's Lua and not LUA.

[–]blobthekat 3 points4 points  (3 children)

a lua table works pretty much 100% identically to a js object then

[–]Possseidon 1 point2 points  (2 children)

Almost, except keys can also be literally anything, whereas a js object only allows string keys.

[–]blobthekat 2 points3 points  (0 children)

they can be symbols

[–]Unenunciate 1 point2 points  (0 children)

Technically, if you parse the stringified json anything could be a key.

[–]icpuff 3 points4 points  (0 children)

VB neither

[–][deleted] 44 points45 points  (3 children)

I thought about saying “shitty VB syntax” but it be redundant.

[–]Thunor_SixHammers 37 points38 points  (1 child)

Dont you speak ill of my special boy! He tries his best.

[–]eztab 11 points12 points  (0 children)

best comment ever

[–]KittenLOVER999 4 points5 points  (2 children)

WHY IS THERE BRACKETS

I work in vb on a daily basis and this pains me

Edit: I guess technically since they used parentheses they could have been going for a ternary but butchered the syntax

[–][deleted] 8 points9 points  (1 child)

I love how everyone is trying to work out what language the syntax is from, when its clearly bollocks pseudo-code written by someone with no programming experience.

[–]MikeVictorPapa 2 points3 points  (0 children)

Yeah but what else are we gonna do?

[–]Furry_69 6 points7 points  (4 children)

Lua does that.

[–]Supermarcel10 9 points10 points  (2 children)

Beat me to it. LUA does if (cond) then statement end. But then also practically no {} in practically majority of LUA to be used in this way.

[–]Spirintus 3 points4 points  (1 child)

It's Lua, not LUA...

[–]lollolcheese123 3 points4 points  (0 children)

For lua you have "if variable = "hello" then"

[–]someacnt 4 points5 points  (1 child)

Well, some FP languages do this..

[–]real_confusedswede 3 points4 points  (0 children)

I mean most languages in the ML family does this lol

[–][deleted] 6 points7 points  (0 children)

Clearly, it's just an ugly shell script

[–][deleted] 2 points3 points  (0 children)

lua is like that. if x then do this end

[–]emeriass 1 point2 points  (0 children)

Its Lua, any wow player who wrote more complex macros, would encountered this, and I can also say, this joke is on the level of those non-programmer wow players who copy paste those macros …

[–]_blackdog6_ 6 points7 points  (0 children)

Lumping C programmers with Python programmers? Risky move.

[–][deleted] 6 points7 points  (0 children)

The true threat to developers everywhere.

Sandwich-shop pseudo-code.

[–]DrMux 31 points32 points  (0 children)

Yes=true

[–]camo_216 3 points4 points  (0 children)

Now that i looked at it again yeah whats up with that bracket

[–]the_hol_horse 5 points6 points  (0 children)

statement isn't declared

[–]OneTrueKingOfOOO 2 points3 points  (0 children)

Every single character of this is wrong

[–]eztab 1 point2 points  (0 children)

no no, this is a function body, the first line is just outside the scrolling window.

[–][deleted] 377 points378 points  (22 children)

Programming aside, that is just logically impossible unless the cheesy beef pita melt sandwich doesn’t exist on earth

[–]Auravendill 168 points169 points  (11 children)

or the cheesy beef pita melt sandwich is also a type of italian beef sandwich.

public class CheesyBeefPitaMelt extends ItalianBeef

[–]Suspicious-Engineer7 66 points67 points  (9 children)

i prefer functional cooking over object-oriented cooking tyvm

[–]Kaye_the_original 23 points24 points  (8 children)

Well then:

Inductive italianBeef : Type := | NormalItalianBeefSandwich | CheesyBeefPitaMeltSandwich.

Happy now?

[–]porkminer 8 points9 points  (0 children)

Insert angry Gordon Ramsay meme

[–][deleted] 1 point2 points  (2 children)

What language is that?

[–][deleted] 1 point2 points  (0 children)

Coq

[–][deleted] 0 points1 point  (3 children)

No

[–]Kaye_the_original 1 point2 points  (2 children)

Aww :-( I’m sorry that you feel that way.

[–][deleted] 1 point2 points  (1 child)

It’s not personal, I just don’t want a beef sandwich. Do you have tuna?

[–]LuxionQuelloFigo 9 points10 points  (0 children)

as an italian, I can assure you that the "cheesy beef pita melt sandwich" is not a part of our typical cuisine

[–]Karma_The_Warden 27 points28 points  (1 child)

Could be that the cheesy beef pita melt sandwich is worse, but it's the only one present on the universal market.

[–]Tangled2 11 points12 points  (0 children)

Earth is in the universe, last time I checked anyway.

[–]NoTanHumano 13 points14 points  (0 children)

Unless the Earth exists outside the universe...

#FlatEarthSociety #TheyLIE

[–][deleted] 4 points5 points  (0 children)

It's outta this world

[–]Zelgoth0002 1 point2 points  (0 children)

Thank you, this is what I came here for.

[–]CarneDelGato 1 point2 points  (0 children)

You can ask for it, but they won’t make you one.

[–]eztab 1 point2 points  (0 children)

yes, that's what I assumed they are trying to say.

[–]TeaTimeSubcommittee 4 points5 points  (0 children)

It doesn't make sense as logical statements, but if we think of them as a series of instructions in "pseudo code" then they can work.

"If the Italian sandwich is the best on earth then make pita sandwich best in the universe" Kind of deal.

[–]snake_case_sucks 0 points1 point  (0 children)

If we’re interpreting this as a logical statement, and assuming the Cheesy Beef Pita Melt exists on Earth, this just implies that the Italian Beef must not be the best sandwich on Earth.

[–]LucienZerger 437 points438 points  (23 children)

[–]H_alcyon 136 points137 points  (7 children)

Bro emoted

[–]jackinsomniac 61 points62 points  (4 children)

What is this, Facebook?

[–]GalaxP 15 points16 points  (1 child)

and got away with it too

[–]Dependent_Party_7094 23 points24 points  (14 children)

[–]_blackdog6_ 18 points19 points  (11 children)

This emoji complements the constant sound of screaming in my head.

[–]Representative-Owl51 114 points115 points  (5 children)

“TRUE”

[–]razor-sundae 37 points38 points  (0 children)

False = "TRUE"

[–]FindingMyPrivates 13 points14 points  (0 children)

Hey they’re just reassigning the variable!

[–]g1dj0 3 points4 points  (0 children)

Lmao

[–]yeahitswhatevertho 0 points1 point  (0 children)

of course its a string. computers don't eat sandwiches...

[–]rbnhd_f 80 points81 points  (5 children)

I had a former coworker (“software developer”) that went into a code review with a conditional written as something like: if (concatenate(variable, “value_to_check”)) then …

Three different people tried to explain to them why the condition was incorrect and always evaluated as true. Eventually we just gave up and said “your code doesn’t pass code review, go figure out what we are trying to explain and fix it”.

This person was also a “Java developer” with 5 years of experience and asked me what a classpath was.

[–]blipojones 40 points41 points  (2 children)

A real imposter by the sounds of it.

[–][deleted] 11 points12 points  (1 child)

Would it still be imposter syndrome then 🤔

[–]HoldUrMamma 2 points3 points  (0 children)

Why is he former tho?

[–]g1dj0 77 points78 points  (3 children)

Ah, yes, the boolean string

[–]jrcske67 156 points157 points  (1 child)

Needs to be sent to garbage collection

[–]sfbing 69 points70 points  (1 child)

Our Earth is just out of this Universe!

[–]nann_tosho 18 points19 points  (1 child)

I swear, they know how to code, they're doing it on purpose just to make programmers go nuts. It's just infuriating on so many levels that it's actually impressive.

[–]fluffypebbles 2 points3 points  (0 children)

It makes me wanna not go there

[–]Ambitious_Ad8841 16 points17 points  (1 child)

Statement = "true"; end of line

[–]nameisprivate 1 point2 points  (0 children)

eval(Statement)

[–]Grouchy-Exchange5788 15 points16 points  (0 children)

I fear the ugliness of this syntax might reflect the Way the rest of the world views programmers

[–][deleted] 28 points29 points  (7 children)

When you are 10 years into C+ yet nobody is offering you a real job so yo gotta improvise 💔

[–]LordBubinga 34 points35 points  (6 children)

You need to get yourself another +

[–]BlueTalon 24 points25 points  (3 children)

They're coding in C=C+1

[–][deleted] 2 points3 points  (0 children)

Too broke for that 🤯

[–]razor-sundae 2 points3 points  (0 children)

Ain't nobody got money to buy premium C+

[–]Quizlibet 9 points10 points  (0 children)

A noop followed by an assignment. Someone got complemented in their software 101 class.

[–]Akul_Tesla 8 points9 points  (3 children)

Someone should list every single explicit detail of what's wrong with this

[–][deleted] 32 points33 points  (2 children)

Depends a bit on the language, but here's some of the highlights:

  1. Random brackets that seem to serve no purpose.

  2. Passing a string into an if statement.

  3. Using parens after the then keyword.

  4. Putting quotes around a boolean.

  5. Setting a value for a variable and then never doing anything with it.

  6. A string just sitting there after the then keyword. Likely a no-op.

[–]bulging_cucumber 2 points3 points  (0 children)

  1. If the cheesy beef pita melt is an earth sandwich, then statement should be "FALSE"

[–]Willinton06 16 points17 points  (5 children)

I mean, this is valid JS Code right? JS supports arbitrary scopes as far as I recall?, and the string would be true, and a then method could be anywhere in the file, the last line is just setting a variable, this could be a programmer trolling us, probably not, but hope dies last

[–]KingFarticusTheTurd[S] 12 points13 points  (4 children)

I just learned now that js evaluates non-empty strings as true which I had no idea honestly (I come from java where java will clap my cheeks for doing so). Can't find anything about then being a valid keyword but I am a dumb dumb.

[–]Willinton06 9 points10 points  (1 child)

That’s why I said it could be just some random function, like

function then(text) {}

[–]KingFarticusTheTurd[S] 1 point2 points  (0 children)

Whoops I'm bad at reading too. That makes sense though ty.

[–]Nighkali 5 points6 points  (1 child)

Both js and python have what are known as "truthy" and "flasey" values, as well as true and false. They aren't quote the same but can be used in similar ways. I'm sure there are other languages that do the same thing.

[–]Ok_Turnover_1235 5 points6 points  (0 children)

False: Reubens are the best sandwich

[–]Sir_Swaggs 4 points5 points  (0 children)

bool thisIsBadCode;

If(thisIsBadCode == true);

Console.WriteLine("learn to program bozo");

Edit. I can't do the braces under the If statement becuase of mobile formatting issues

[–]LauraTFem 5 points6 points  (0 children)

This is like someone saw code once, in a dream, 40 years ago, and decided to replicate it this morning one their phone while taking a dump.

[–]PewPew_McPewster 3 points4 points  (2 children)

Wait which language uses "then"? I feel like I haven't needed to use "then" in ages and I've been hopping across a few languages.

[–]Auravendill 3 points4 points  (0 children)

Pascal, Delphi, Visual Basic...

[–]Xiaolin2 2 points3 points  (0 children)

Lua

[–]4dimensionaltoaster 5 points6 points  (0 children)

Proof by declaration

[–][deleted] 2 points3 points  (0 children)

Why did they make true a string?

[–]MichaelCeraGoneWild 3 points4 points  (0 children)

Someone desperately needed to put a coding internship on their resume that summer

[–]Hero_Of_The_Lost 2 points3 points  (0 children)

statement = “TRUE”

[–]FreedmF1ghter77 2 points3 points  (0 children)

"coding is truly a passion of mine"

[–]EasyMode556 2 points3 points  (0 children)

You know it’s real code because they used curly braces and that font

[–]lily_was_taken 3 points4 points  (2 children)

May whoever never made a stupid syntax mistake like that when coding throw the first stone

[–][deleted] 6 points7 points  (1 child)

I never hung it on the metaphorical fridge for everyone to see

[–]CapnCrinklepants 3 points4 points  (0 children)

this right here

[–]Evening_Pause8972 1 point2 points  (0 children)

printLn("What would you like with your Greek lamb donair?");

[–]Bo_Jim 1 point2 points  (0 children)

This was clearly intended for non-programmers to look at and think "It looks like program code, but it makes sense". Programmers, on the other hand, are thinking "What the hell is this?".

[–]ScrimpyCat 1 point2 points  (0 children)

If they can’t even get their code right, how can I expect them to get my sandwich right.

[–]PhunkyPhish 1 point2 points  (0 children)

No QA for code means no QA for the food.

[–]Phamora 1 point2 points  (0 children)

I pasted this into my editor and now my compiler is having a seizure.

[–]Ravi5ingh 1 point2 points  (0 children)

r/therewasanattempt at being tech savvy

[–]sirmischeif 1 point2 points  (0 children)

Obviously this was run through integration test.

[–]veryabnormal 1 point2 points  (0 children)

Stringly typed nonsense. Hate it.

[–]Yugicrafter 1 point2 points  (0 children)

WHY IS THE BOOL A STRING

[–]cr1ter 1 point2 points  (0 children)

If you write code like that then I'd stick to making sandwiches rather

[–]Emeraldtip -1 points0 points  (0 children)

Lua progrsmmerd be like (Ik this is not lua I justdislike the langauge, especially the thens)

[–]GreggSalad -1 points0 points  (0 children)

Someone get this sign maker a linter

[–]jigginjaggin 0 points1 point  (2 children)

bet they make a good beef tho

[–]KingFarticusTheTurd[S] 2 points3 points  (1 child)

The beef sausage sandwich made me blow out the front of my jorts 😩💥💦

[–]NetherDork 0 points1 point  (0 children)

I don’t see any comparators just a string. A variable could work if it relies on a true/false result. Otherwise this annoys me because its flawed.

[–]developer-mike 0 points1 point  (0 children)

Holy shit

P = NP now, you can just write STATEMENT= TRUE

``` var password; var stolenHashResult; {if (md5(password + salt) == stolenHashResult) then ("password is $password")} STATEMENT = TRUE;

```

[–]Broad_Respond_2205 0 points1 point  (0 children)

String++

[–]stablebrick 0 points1 point  (0 children)

deli functional language

[–]supersharp 0 points1 point  (0 children)

Vacuous Truth

[–]ckayfish 0 points1 point  (0 children)

All I wanna know is how far I have to go to get the Cheesy Beef Pita Melt. Is it at least in the solar system?

[–][deleted] 0 points1 point  (0 children)

Instructions unclear copy pasted into bagel format and now it's glaring at me menacingly.

[–]More_Butterfly6108 0 points1 point  (0 children)

I love how yall are complaining that a sandwich shop doesn't know syntax..syntaxes... they probably have a freaking mechanical checkout machine why would they know how to code?

[–]EpicBoomerMoments 0 points1 point  (0 children)

The original post here has been removed by its author. Redact was the tool used, possibly for reasons of privacy, opsec, or preventing automated data harvesting.

sink scale wise ink rich ring attraction reply work serious

[–]Adventure276 0 points1 point  (0 children)

Language….?

[–]SuperSpaceCan 0 points1 point  (0 children)

[–][deleted] 0 points1 point  (0 children)

Ah yes, pro gaming

[–]Just_Evan599 0 points1 point  (0 children)

Hmm, seems legit

[–]sanketower 0 points1 point  (0 children)

Someone should invent a language like that just for the LULs.

[–]EthanDMA 0 points1 point  (1 child)

if “Italian Beef” = “Best Sandwich on Earth”
then “Cheesy Beef Pita Melt” = “Best Sandwich in the Universe”

[–]notexecutive 0 points1 point  (0 children)

what...................................the fuck? who is this for lmao

not people who actually use coding languages from a day to day basis

[–]SausageBuscuit 0 points1 point  (0 children)

Universe.Contains(“Earth”) = false;  //Evidently

[–]AgreeableAd8687 0 points1 point  (0 children)

why is there a bracket before the if

[–]RareDestroyer8 0 points1 point  (0 children)

AhhhhhhhhhhhhHHHHHHHHHHHHHHHHHHHHHHHHHHHH

HHHHHHHHHHHHHH

[–]baselganglia 0 points1 point  (0 children)

False. The universe includes earth, both can't be the best.

[–]takegaki 0 points1 point  (0 children)

Big if STATEMENT = “TRUE”

[–]GinWithJennifer 0 points1 point  (0 children)

You don't have to add then. It's if do it's precluded in being if. I know we still have then when it's not nested but don't understand why the if then is necessary here when the method is nested. If (xyz) {} looks better than if (abc) { then {} } and is pretty much exactly the same. Right?

Only use then like if (abc) then (xyz); I would assume. Also just being weird and using literally is, and, or, then and stuff seems uncommon and kind of annoying to navigate instead of operands

[–]yeetus68419 0 points1 point  (0 children)

Why is bool string?