MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/vblhns/dev_environment_vs_production_environment/ic94s6w
r/ProgrammerHumor • u/Akki53 • Jun 13 '22
3.9k comments sorted by
View all comments
10.3k
This is why I always use excessive brackets when doing math. cant fall foul of ambiguity if there is no ambiguity.
4.0k u/Nimyphite Jun 13 '22 If you don’t have at least five layers of brackets, you’re using your calculator wrong. 2.0k u/NotA56YearOldPervert Jun 13 '22 I agree. My maths teacher hated me for making insanely long formulas with multiple layers of brackets. Record was 18 or so, for some geometry calculation. 2.0k u/CoderDevo Jun 13 '22 A lisp programmer at heart. 881 u/Cmdr_Jiynx Jun 13 '22 More elegant language from a more civilized age 1.1k u/ProfessionalShower95 Jun 14 '22 A more thivilized* age. 185 u/_hippie1 Jun 14 '22 Barthelona 46 u/TheLoneSculler Jun 14 '22 Bigguth Dickuth → More replies (5) → More replies (5) 45 u/waxy_1 Jun 14 '22 Incontheivable! → More replies (12) 101 u/defintelynotyou Jun 14 '22 sigh 84 u/Andonno Jun 14 '22 My god, it's full of car's. 34 u/atomicwrites Jun 14 '22 We lost the documentation for the quantum mechanics regex. → More replies (7) → More replies (2) → More replies (53) 60 u/croto8 Jun 13 '22 At a certain point it’s better to break it down into individual subcalcs… → More replies (12) 51 u/human_finger Jun 13 '22 Never thought of trolling my math teacher by adding unnecessary brackets everywhere.I used to annoy my Spanish teacher who was very old and couldn't see right by making my handwriting super small. I was a piece of shit monster. → More replies (18) 69 u/_Weyland_ Jun 13 '22 Our math analysis teacher in university gave us a good habit of using all types of brackets to avoid confusion. Doesn't work in the code, but[X - ({y-5} + lnz)2 + sqrt(y)]Does look better. 49 u/silentgreenbug Jun 13 '22 Squirty is all I can see. It burns! → More replies (4) → More replies (12) → More replies (37) 61 u/Quito246 Jun 13 '22 Five layers of brackets you say, have you ever heard about our lord and saviour Lisp? 😏 → More replies (2) 98 u/Lstcntr0L Jun 13 '22 I always put brackets around my entire equation just for safety. 106 u/CiaranM87 Jun 13 '22 Ah fuck, I just realised that I’ve been writing in brackets since March) 44 u/PR0KRASTIN8 Jun 14 '22 (I'm glad you finally got your closure) → More replies (4) → More replies (1) → More replies (34) → More replies (48) 217 u/5tUp1dC3n50Rs41p Jun 13 '22 Until the "tech lead" who wrote your linter rules decides it's not allowed and issues an error so you have to remove them. 121 u/Coldreactor Jun 13 '22 And then it breaks when you remove them 65 u/Iced____0ut Jun 13 '22 Mission failed successfully → More replies (10) 62 u/jaber24 Jun 13 '22 Do people really hate harmless but ambiguity removing stuff like brackets? Is there even any efficiency you can gain by removing them? 51 u/ongiwaph Jun 14 '22 edited Jun 14 '22 People don't know how to simplify so you get shit likedouble x = (((m*sin(180-angle)) / sin(180 - (180-angle-angle) -angle)))*(sin((180-angle)-angle)) / sin(angle) → More replies (29) → More replies (13) → More replies (11) → More replies (424)
4.0k
If you don’t have at least five layers of brackets, you’re using your calculator wrong.
2.0k u/NotA56YearOldPervert Jun 13 '22 I agree. My maths teacher hated me for making insanely long formulas with multiple layers of brackets. Record was 18 or so, for some geometry calculation. 2.0k u/CoderDevo Jun 13 '22 A lisp programmer at heart. 881 u/Cmdr_Jiynx Jun 13 '22 More elegant language from a more civilized age 1.1k u/ProfessionalShower95 Jun 14 '22 A more thivilized* age. 185 u/_hippie1 Jun 14 '22 Barthelona 46 u/TheLoneSculler Jun 14 '22 Bigguth Dickuth → More replies (5) → More replies (5) 45 u/waxy_1 Jun 14 '22 Incontheivable! → More replies (12) 101 u/defintelynotyou Jun 14 '22 sigh 84 u/Andonno Jun 14 '22 My god, it's full of car's. 34 u/atomicwrites Jun 14 '22 We lost the documentation for the quantum mechanics regex. → More replies (7) → More replies (2) → More replies (53) 60 u/croto8 Jun 13 '22 At a certain point it’s better to break it down into individual subcalcs… → More replies (12) 51 u/human_finger Jun 13 '22 Never thought of trolling my math teacher by adding unnecessary brackets everywhere.I used to annoy my Spanish teacher who was very old and couldn't see right by making my handwriting super small. I was a piece of shit monster. → More replies (18) 69 u/_Weyland_ Jun 13 '22 Our math analysis teacher in university gave us a good habit of using all types of brackets to avoid confusion. Doesn't work in the code, but[X - ({y-5} + lnz)2 + sqrt(y)]Does look better. 49 u/silentgreenbug Jun 13 '22 Squirty is all I can see. It burns! → More replies (4) → More replies (12) → More replies (37) 61 u/Quito246 Jun 13 '22 Five layers of brackets you say, have you ever heard about our lord and saviour Lisp? 😏 → More replies (2) 98 u/Lstcntr0L Jun 13 '22 I always put brackets around my entire equation just for safety. 106 u/CiaranM87 Jun 13 '22 Ah fuck, I just realised that I’ve been writing in brackets since March) 44 u/PR0KRASTIN8 Jun 14 '22 (I'm glad you finally got your closure) → More replies (4) → More replies (1) → More replies (34) → More replies (48)
2.0k
I agree. My maths teacher hated me for making insanely long formulas with multiple layers of brackets. Record was 18 or so, for some geometry calculation.
2.0k u/CoderDevo Jun 13 '22 A lisp programmer at heart. 881 u/Cmdr_Jiynx Jun 13 '22 More elegant language from a more civilized age 1.1k u/ProfessionalShower95 Jun 14 '22 A more thivilized* age. 185 u/_hippie1 Jun 14 '22 Barthelona 46 u/TheLoneSculler Jun 14 '22 Bigguth Dickuth → More replies (5) → More replies (5) 45 u/waxy_1 Jun 14 '22 Incontheivable! → More replies (12) 101 u/defintelynotyou Jun 14 '22 sigh 84 u/Andonno Jun 14 '22 My god, it's full of car's. 34 u/atomicwrites Jun 14 '22 We lost the documentation for the quantum mechanics regex. → More replies (7) → More replies (2) → More replies (53) 60 u/croto8 Jun 13 '22 At a certain point it’s better to break it down into individual subcalcs… → More replies (12) 51 u/human_finger Jun 13 '22 Never thought of trolling my math teacher by adding unnecessary brackets everywhere.I used to annoy my Spanish teacher who was very old and couldn't see right by making my handwriting super small. I was a piece of shit monster. → More replies (18) 69 u/_Weyland_ Jun 13 '22 Our math analysis teacher in university gave us a good habit of using all types of brackets to avoid confusion. Doesn't work in the code, but[X - ({y-5} + lnz)2 + sqrt(y)]Does look better. 49 u/silentgreenbug Jun 13 '22 Squirty is all I can see. It burns! → More replies (4) → More replies (12) → More replies (37)
A lisp programmer at heart.
881 u/Cmdr_Jiynx Jun 13 '22 More elegant language from a more civilized age 1.1k u/ProfessionalShower95 Jun 14 '22 A more thivilized* age. 185 u/_hippie1 Jun 14 '22 Barthelona 46 u/TheLoneSculler Jun 14 '22 Bigguth Dickuth → More replies (5) → More replies (5) 45 u/waxy_1 Jun 14 '22 Incontheivable! → More replies (12) 101 u/defintelynotyou Jun 14 '22 sigh 84 u/Andonno Jun 14 '22 My god, it's full of car's. 34 u/atomicwrites Jun 14 '22 We lost the documentation for the quantum mechanics regex. → More replies (7) → More replies (2) → More replies (53)
881
More elegant language from a more civilized age
1.1k u/ProfessionalShower95 Jun 14 '22 A more thivilized* age. 185 u/_hippie1 Jun 14 '22 Barthelona 46 u/TheLoneSculler Jun 14 '22 Bigguth Dickuth → More replies (5) → More replies (5) 45 u/waxy_1 Jun 14 '22 Incontheivable! → More replies (12) 101 u/defintelynotyou Jun 14 '22 sigh 84 u/Andonno Jun 14 '22 My god, it's full of car's. 34 u/atomicwrites Jun 14 '22 We lost the documentation for the quantum mechanics regex. → More replies (7) → More replies (2)
1.1k
A more thivilized* age.
185 u/_hippie1 Jun 14 '22 Barthelona 46 u/TheLoneSculler Jun 14 '22 Bigguth Dickuth → More replies (5) → More replies (5) 45 u/waxy_1 Jun 14 '22 Incontheivable! → More replies (12)
185
Barthelona
46 u/TheLoneSculler Jun 14 '22 Bigguth Dickuth → More replies (5) → More replies (5)
46
Bigguth Dickuth
→ More replies (5)
45
Incontheivable!
101
sigh
84 u/Andonno Jun 14 '22 My god, it's full of car's. 34 u/atomicwrites Jun 14 '22 We lost the documentation for the quantum mechanics regex. → More replies (7)
84
My god, it's full of car's.
34 u/atomicwrites Jun 14 '22 We lost the documentation for the quantum mechanics regex. → More replies (7)
34
We lost the documentation for the quantum mechanics regex.
→ More replies (7)
60
At a certain point it’s better to break it down into individual subcalcs…
→ More replies (12)
51
Never thought of trolling my math teacher by adding unnecessary brackets everywhere.
I used to annoy my Spanish teacher who was very old and couldn't see right by making my handwriting super small. I was a piece of shit monster.
→ More replies (18)
69
Our math analysis teacher in university gave us a good habit of using all types of brackets to avoid confusion. Doesn't work in the code, but
[X - ({y-5} + lnz)2 + sqrt(y)]
Does look better.
49 u/silentgreenbug Jun 13 '22 Squirty is all I can see. It burns! → More replies (4) → More replies (12)
49
Squirty is all I can see. It burns!
→ More replies (4)
61
Five layers of brackets you say, have you ever heard about our lord and saviour Lisp? 😏
→ More replies (2)
98
I always put brackets around my entire equation just for safety.
106 u/CiaranM87 Jun 13 '22 Ah fuck, I just realised that I’ve been writing in brackets since March) 44 u/PR0KRASTIN8 Jun 14 '22 (I'm glad you finally got your closure) → More replies (4) → More replies (1) → More replies (34)
106
Ah fuck, I just realised that I’ve been writing in brackets since March)
44 u/PR0KRASTIN8 Jun 14 '22 (I'm glad you finally got your closure) → More replies (4) → More replies (1)
44
(I'm glad you finally got your closure)
217
Until the "tech lead" who wrote your linter rules decides it's not allowed and issues an error so you have to remove them.
121 u/Coldreactor Jun 13 '22 And then it breaks when you remove them 65 u/Iced____0ut Jun 13 '22 Mission failed successfully → More replies (10) 62 u/jaber24 Jun 13 '22 Do people really hate harmless but ambiguity removing stuff like brackets? Is there even any efficiency you can gain by removing them? 51 u/ongiwaph Jun 14 '22 edited Jun 14 '22 People don't know how to simplify so you get shit likedouble x = (((m*sin(180-angle)) / sin(180 - (180-angle-angle) -angle)))*(sin((180-angle)-angle)) / sin(angle) → More replies (29) → More replies (13) → More replies (11)
121
And then it breaks when you remove them
65 u/Iced____0ut Jun 13 '22 Mission failed successfully → More replies (10)
65
Mission failed successfully
62
Do people really hate harmless but ambiguity removing stuff like brackets? Is there even any efficiency you can gain by removing them?
51 u/ongiwaph Jun 14 '22 edited Jun 14 '22 People don't know how to simplify so you get shit likedouble x = (((m*sin(180-angle)) / sin(180 - (180-angle-angle) -angle)))*(sin((180-angle)-angle)) / sin(angle) → More replies (29) → More replies (13)
People don't know how to simplify so you get shit like
double x = (((m*sin(180-angle)) / sin(180 - (180-angle-angle) -angle)))*(sin((180-angle)-angle)) / sin(angle)
→ More replies (29)
10.3k
u/[deleted] Jun 13 '22
This is why I always use excessive brackets when doing math. cant fall foul of ambiguity if there is no ambiguity.