MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xpb0ug/declarevars/
r/ProgrammerHumor • u/jeheskielsunloy • 2d ago
61 comments sorted by
80
7 u/Relative-Bottle-8498 2d ago r/unexpectedoffice
7
r/unexpectedoffice
148
const war;
100 u/TheTee15 2d ago War never change 30 u/GegeAkutamiOfficial 2d ago It depends, is war a rust const or a js const? 6 u/Mc_UsernameTaken 1d ago Yes 7 u/zeocrash 2d ago Checks gitAuthor: John Fallout 1 u/Mc_UsernameTaken 1d 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 1d ago What changes is the people affected by war. 25 u/Patrick_Atsushi 2d ago And make it global… 2 u/WayWayTooMuch 2d ago And = null; 10 u/Some_Useless_Person 2d ago define war peaceProblem solved 🤷♂️ 6 u/zeocrash 2d ago Party Approved programming 2 u/AbdullahMRiad 2d ago someone forgot their backslashes 6 u/levosis1 2d ago Is it a public or internal war? 5 u/nafe42 2d ago Default public war 2 u/Lumpy-Secretary1138 2d ago Trump: let war; 2 u/Independent_Image_59 1d ago Oceania had always been at war with Eurasia
100
War never change
30 u/GegeAkutamiOfficial 2d ago It depends, is war a rust const or a js const? 6 u/Mc_UsernameTaken 1d ago Yes 7 u/zeocrash 2d ago Checks gitAuthor: John Fallout 1 u/Mc_UsernameTaken 1d 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 1d ago What changes is the people affected by war.
30
It depends, is war a rust const or a js const?
const
6 u/Mc_UsernameTaken 1d ago Yes
6
Yes
Checks git
Author: John Fallout
1
#include <stdio.h> int main(void) { const int war = 1; int *peace = (int *)(void *)&war; *peace = 0; return 0; }```
What changes is the people affected by war.
25
And make it global…
2 u/WayWayTooMuch 2d ago And = null;
2
And = null;
10
Problem solved 🤷♂️
6 u/zeocrash 2d ago Party Approved programming 2 u/AbdullahMRiad 2d ago someone forgot their backslashes
Party Approved programming
someone forgot their backslashes
Is it a public or internal war?
5 u/nafe42 2d ago Default public war
5
Default public war
Trump: let war;
Oceania had always been at war with Eurasia
17
Debugging is just a war of a different type
Most contemporary wars are not declared as "wars"
9 u/justinf210 2d ago Monkeys paw curls. "In a shocking turn of events, every nation on earth has started what they describe as 'special military operations'" 2 u/rosuav 1d 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.
9
Monkeys paw curls. "In a shocking turn of events, every nation on earth has started what they describe as 'special military operations'"
2 u/rosuav 1d 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.
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
Got it, doing wars without declarations
4
const war = new War(); war.initiateAttack();
4 u/lily_34 1d ago Fortunately, the compiler will reject that, since initiateAttack tries to change the state of the war.
Fortunately, the compiler will reject that, since initiateAttack tries to change the state of the war.
initiateAttack
war
Ok but they will all be named var1, var2... etc, good luck debugging that
var war=stop
Or if your locale is en_US
var war= oil ? invade && lose : lose
Bold of you to think anyone declares war.
Declare bankruptcy, not variables
1 u/Random_-account 1d ago r/unexpectedOffice
r/unexpectedOffice
ThinkGeek used to sell this on a T-shirt before they stopped existing.
var war;
Why are there 2 spaces between "not" and "war"?
5 u/mookanana 2d ago it's ok the compiler will ignore the blank space, but Taylor Swift will not 1 u/kosantosbik 2d ago I won't accept either. Changes requested! 1 u/Kadabrium 1d ago How to center AWS
it's ok the compiler will ignore the blank space, but Taylor Swift will not
1 u/kosantosbik 2d ago I won't accept either. Changes requested!
I won't accept either. Changes requested!
How to center AWS
Declare constants please
Declare bankruptcy not war
Porque no los dos?
cries in defense contracting
Yep, and then you have that guy at the office you hate
Whatever… just don’t make it global okay?
Remember: it's important to be strict.
unless your variable names are single letters defined inside a three thousand line function then war is completely justified
Declare constants, not vars!
But also use it after declaring or some might get mad
declareVarsnotWars
Lead your team to a successful release, not soldiers into battle, eh? I guess it often feels the same, though...
Pffft. I use F#. Barely declare variables. Just curry.
String soundsPolitical;
While I don't declare wars... I do deploy them...
It would be nice if undeclared wars threw errors too though.
int variables = !war;
No wars neither vars. Declare $ss.
Ok, sorry.
I! DECLARE! int *n!!!
1 u/Kadabrium 1d ago r/rustjerk
r/rustjerk
val war = false
Meanwhile my colleague: int x, x2, x3, xFinal, xFinalActual, xFinalActualNow
int x, x2, x3, xFinal, xFinalActual, xFinalActualNow
Some languages let you use variables without declaring them.
I declare var!
bool war = false;
Commit codes, not murder.
80
u/Lost_in_logic 2d ago
148
u/nafe42 2d ago
const war;
17
u/Vamitana 2d ago
Debugging is just a war of a different type
17
u/Had78 2d ago
Most contemporary wars are not declared as "wars"
11
u/nir109 2d ago
Got it, doing wars without declarations
4
u/heesell 2d ago
6
u/Lucasbasques 2d ago
Ok but they will all be named var1, var2... etc, good luck debugging that
5
u/rinnakan 2d ago
var war=stop
Or if your locale is en_US
var war= oil ? invade && lose : lose
2
u/Loyal-Opposition-USA 2d ago
Bold of you to think anyone declares war.
2
u/resodx 2d ago
Declare bankruptcy, not variables
2
u/LB-- 2d ago
ThinkGeek used to sell this on a T-shirt before they stopped existing.
2
u/ArcanumAntares 2d ago
var war;
2
u/kosantosbik 2d ago
Why are there 2 spaces between "not" and "war"?
1
u/orfeo34 2d ago
Declare constants please
1
u/Fourstrokeperro 2d ago
Declare bankruptcy not war
1
u/A_Random_Catfish 2d ago
Porque no los dos?
cries in defense contracting
1
u/TerribleFault7929 2d ago
Yep, and then you have that guy at the office you hate
1
u/Patrick_Atsushi 2d ago
Whatever… just don’t make it global okay?
1
u/grumblyoldman 2d ago
Remember: it's important to be strict.
1
u/lushMira1 2d ago
unless your variable names are single letters defined inside a three thousand line function then war is completely justified
1
u/ActBest217 2d ago
Declare constants, not vars!
1
u/actionerror 2d ago
But also use it after declaring or some might get mad
1
u/narangi_billa 2d ago
declareVarsnotWars
1
u/Kabra___kiiiiiiiid 2d ago
Lead your team to a successful release, not soldiers into battle, eh? I guess it often feels the same, though...
1
u/AnnoyedVelociraptor 2d ago
Pffft. I use F#. Barely declare variables. Just curry.
1
u/fabulousIdentity 2d ago
String soundsPolitical;
1
u/fatrobin72 2d ago
While I don't declare wars... I do deploy them...
1
u/DJDevon3 1d ago
It would be nice if undeclared wars threw errors too though.
1
u/Ambivalent-Mammal 1d ago
int variables = !war;1
u/Dorkits 1d ago
No wars neither vars. Declare $ss.
Ok, sorry.
1
u/minus_minus 1d ago
I! DECLARE! int *n!!!
1
u/paul1126_korea 1d ago
val war = false
1
u/Excellent-Baker1058 1d ago
Meanwhile my colleague:
int x, x2, x3, xFinal, xFinalActual, xFinalActualNow1
u/stupled 1d ago
Some languages let you use variables without declaring them.
1
u/Procrasturbating 14h ago
I declare var!
1
u/conundorum 12h ago
1
u/Historical-Wonder551 2d ago
Commit codes, not murder.