r/ProgrammerHumor • • 28d ago

Meme declareVars

Post image
2.5k Upvotes

62 comments sorted by

158

u/nafe42 28d ago

const war;

104

u/TheTee15 28d ago

War never change

30

u/GegeAkutamiOfficial 28d ago

It depends, is war a rust const or a js const?

8

u/zeocrash 28d ago

Checks git

Author: John Fallout

1

u/Mc_UsernameTaken 28d ago
#include <stdio.h>

int main(void) {
    const int war = 1;
    int *peace = (int *)(void *)&war;
    *peace = 0;
    return 0;
}```

1

u/Dev_Dobariya_4522 27d ago

What changes is the people affected by war.

26

u/Patrick_Atsushi 28d ago

And make it global…

2

u/WayWayTooMuch 28d ago

And = null;

11

u/Some_Useless_Person 28d ago

define war peace

Problem solved 🤷‍♂️

6

u/zeocrash 28d ago

Party Approved programming

2

u/AbdullahMRiad 28d ago

someone forgot their backslashes

6

u/levosis1 28d ago

Is it a public or internal war?

5

u/nafe42 28d ago

Default public war

2

u/Lumpy-Secretary1138 28d ago

Trump: let war;

2

u/Independent_Image_59 28d ago

Oceania had always been at war with Eurasia

19

u/Vamitana 28d ago

Debugging is just a war of a different type

18

u/Had78 28d ago

Most contemporary wars are not declared as "wars"

10

u/justinf210 28d ago

Monkeys paw curls. "In a shocking turn of events, every nation on earth has started what they describe as 'special military operations'"

4

u/rosuav 28d ago

No no no, only Russia does "special military operations". The US does limited military actions in support of the local people, and it is a complete coincidence that the places that need such support are the ones that have lots of oil.

11

u/nir109 28d ago

Got it, doing wars without declarations

4

u/heesell 28d ago
const war = new War();
war.initiateAttack();

4

u/lily_34 28d ago

Fortunately, the compiler will reject that, since initiateAttack tries to change the state of the war.

6

u/Lucasbasques 28d ago

Ok but they will all be named var1, var2... etc, good luck debugging that

5

u/rinnakan 28d ago

var war=stop

Or if your locale is en_US

var war= oil ? invade && lose : lose

2

u/Loyal-Opposition-USA 28d ago

Bold of you to think anyone declares war.

2

u/resodx 28d ago

Declare bankruptcy, not variables

2

u/kosantosbik 28d ago

Why are there 2 spaces between "not" and "war"? 

5

u/mookanana 28d ago

it's ok the compiler will ignore the blank space, but Taylor Swift will not

1

u/kosantosbik 28d ago

I won't accept either. Changes requested!

1

u/Kadabrium 28d ago

How to center AWS

2

u/LB-- 28d ago

ThinkGeek used to sell this on a T-shirt before they stopped existing.

2

u/conundorum 27d ago
bool war = false;

1

u/HungaroPannon 26d ago

Noo. You declared a war var!

1

u/orfeo34 28d ago

Declare constants please

1

u/Fourstrokeperro 28d ago

Declare bankruptcy not war

1

u/A_Random_Catfish 28d ago

Porque no los dos?

cries in defense contracting

1

u/TerribleFault7929 28d ago

Yep, and then you have that guy at the office you hate

1

u/Patrick_Atsushi 28d ago

Whatever… just don’t make it global okay?

1

u/grumblyoldman 28d ago

Remember: it's important to be strict.

1

u/ActBest217 28d ago

Declare constants, not vars!

1

u/actionerror 28d ago

But also use it after declaring or some might get mad

1

u/narangi_billa 28d ago

declareVarsnotWars

1

u/Kabra___kiiiiiiiid 28d ago

Lead your team to a successful release, not soldiers into battle, eh? I guess it often feels the same, though...

1

u/fabulousIdentity 28d ago

String soundsPolitical;

1

u/fatrobin72 28d ago

While I don't declare wars... I do deploy them...

1

u/DJDevon3 28d ago

It would be nice if undeclared wars threw errors too though.

1

u/Ambivalent-Mammal 28d ago

int variables = !war;

1

u/Dorkits 28d ago

No wars neither vars. Declare $ss.

Ok, sorry.

1

u/minus_minus 28d ago

I! DECLARE! int *n!!!

1

u/paul1126_korea 28d ago

val war = false

1

u/Excellent-Baker1058 28d ago

Meanwhile my colleague: int x, x2, x3, xFinal, xFinalActual, xFinalActualNow

1

u/stupled 27d ago

Some languages let you use variables without declaring them.

1

u/Procrasturbating 27d ago

I declare var!

1

u/ART-ficial-Ignorance 24d ago

I used to have this on a shirt.

1

u/Historical-Wonder551 28d ago

Commit codes, not murder.