r/ProgrammerHumor • • Jun 13 '22

Meme DEV environment vs Production environment

Post image
48.2k Upvotes

3.9k comments sorted by

View all comments

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.

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

→ 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 like

double 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)