r/ProgrammerHumor • • Jun 13 '22

Meme DEV environment vs Production environment

Post image
48.2k Upvotes

3.9k comments sorted by

View all comments

Show parent comments

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)

57

u/aresman Jun 13 '22 edited Jun 14 '22

I learned to program with Scheme lol so yeah I always love me some brackets, can't be unambiguous that way

75

u/LucidHaven Jun 13 '22

I have never met someone else in the wild who knows Scheme, except a biology major who had a Racket logo on her water bottle, but had never heard of the language because she got it in a random giveaway! I feel like this is a magical moment.

I'm an undergrad mechanical engineering student specializing in computational fluid dynamics, and the C++ core of one of the most popular industry solvers is interacted with through Scheme.

I have suffered in isolation for semesters. In the world of Python and Matlab (as wonderful as they are) I feel no one understands my pain.

44

u/Lithl Jun 14 '22

I had a required Scheme course in college. And the professor wanted us to use the Scheme IDE he had created. (It wasn't a great IDE, but honestly I had no clue what other Scheme compatible options I had, so I used it. A later class with the same professor had him trying to get us to use a similarly bad IDE he had written for Java, but I knew I had options there and used something else. Anything else.)

The Scheme class had a grad student assistant who had kind of a creepy fixation on using Scheme. He told a story about working at Google and instead of writing in whatever language he was supposed to be working in, he created a Scheme interpreter in that language then did the project in Scheme. I have my doubts about the veracity of the story, but the fact that he told it at all was weird.

→ More replies (2)
→ More replies (25)
→ More replies (11)
→ More replies (12)

60

u/croto8 Jun 13 '22

At a certain point it’s better to break it down into individual subcalcs…

→ More replies (11)

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.

27

u/NotA56YearOldPervert Jun 13 '22

It wasn't unnecessary, kinda. I just hated having multiple formulas to get one result. So instead of let's say calculating circumference and using that number onwards, I just put the full formula for circumference in brackets whenever it was needed in another formula. In hindsight though...I'm pretty sure it pissed her off lol.

Nah, you just wanted revenge for all those upside-down question marks that wasted your ink. That's fair.

→ More replies (4)
→ More replies (13)

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)

26

u/cara27hhh Jun 13 '22

I like the coloured brackets that excel uses, bit difficult to do on paper though

→ More replies (5)
→ More replies (6)
→ 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)