this post was submitted on 26 Aug 2024
1209 points (99.0% liked)

Programmer Humor

19503 readers
1263 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 61 points 2 months ago (33 children)

mathematicians, who love their abbreviations

Man, I hate that so much. I swear this was half the reason I struggled with maths and physics, that these guys need to write this:

Rather than this:

At some point, they even collectively decided that not having to write a multiplication dot is more important than being able to use more than a single letter for your variables. Just what the fuck?

[–] [email protected] 38 points 2 months ago (12 children)

Thing is, you usually define all your variables. At least we do in engineering (of physical variety, rather than software).

Mostly because we can't expect everyone reading the calculation to know, and that not everyone uses the same symbols.

Not explaining each variable is bad practice, other than for very simple things. (I do expect everyone and their dog reading a process eng calc to know PV=nRT, at a minimum).

Just like (in my opinion) not defining industry specific abbreviations is also bad practice.

Mathematicians don't do this? Shame on them.

[–] [email protected] 1 points 2 months ago (1 children)

What's PV? Asking for my friend's dog.

[–] [email protected] 2 points 2 months ago

(Pressure) * (volume) = (# moles) * (gas constant) * (temperature)

The ideal gas law.

In another thread I admit I didn't explain my position here well enough. I would only not explain this equation given sufficient context (e.g. I've shown all those variables in a table, and my intended audience is people familiar with basic chemistry, which I'd expect would be everyone reading the report for this particular example, since this is high school chemistry, and the topic of all reports I work on is chemical engineering.)

People can read the conclusions if they're not familiar with chemistry, and for the detail, they're not my intended audience anyway.

Generally I still hold the position that you should define variables as much as possible, unless it's overly cumbersome, given your intended audience would clearly understand anyway.

In context this simple equation is obvious even if you change the symbols, as long as there is sufficient context to draw from.

load more comments (10 replies)
load more comments (30 replies)