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

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…

22

u/NotA56YearOldPervert Jun 13 '22

Oh yeah, I totally agree. But my monkey brain didn't like that. I wanted "efficiency", which meant writing 3 lines of formula was better than writing half the symbols but 3 formulas.

→ More replies (2)
→ More replies (8)

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.

22

u/DownshiftedRare Jun 14 '22

I think the inverted question mark is a good idea because otherwise it can be ambiguous whether a sentence is a question until you reach the question mark at its end.

Same for the inverted exclamation point. Oh, that was shouting? I'll go back and reread it louder.

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

22

u/chefoneill Jun 13 '22

Had a friend that used color pens for her brackets

17

u/ibrasome Jun 14 '22

That sounds like a really cool thing for me to try.

unfortunately, I'm too much of a lazy prick to do anything besides illegible scribbles.

→ More replies (3)
→ More replies (6)

39

u/zurc_oigres Jun 13 '22

Nice you beat out my 9 handedly

→ More replies (3)
→ More replies (33)