←back to thread

283 points IdealeZahlen | 2 comments | | HN request time: 0.42s | source
Show context
cubefox ◴[] No.42141573[source]
One thing I like about programming languages is that they usually constrain themselves to strings of ASCII characters, instead of using lots of more or less inscrutable symbols like mathematics does. For example, where a mathematician writes "Σ", a programmer simply writes "sum".
replies(1): >>42141869 #
mmooss ◴[] No.42141869[source]
You are holding up code as an example of clarity and scrutability, and because it is mostly restricted to ASCII? Hex code is even simpler - only 16 characters.

> where a mathematician writes "Σ", a programmer simply writes "sum".

Communities develop shorthand and terms of art for things they write a lot. Mathematicians need to write lots of sums; programmers have their own shorthand and terminology.

replies(1): >>42143023 #
cubefox ◴[] No.42143023[source]
Hex code doesn't allow you to write words. And "sum" is simply better than "Σ". There is no way to know in advance what the latter means, while for the former understanding of verbal English is enough. Mathematicians basically use an iconographic writing system like Chinese.
replies(3): >>42143413 #>>42144109 #>>42150400 #
mmooss ◴[] No.42144109[source]
We can think of many other strings used by programmers that are not common English, and many strings used by mathematicians that are.

I think the difference is that you are a programmer and not a mathematician (I'm guessing) and are saying, effectively, that what you are subjectively familiar with is objectively more universally understood.

replies(2): >>42144184 #>>42152231 #
1. cubefox ◴[] No.42152231[source]
> We can think of many other strings used by programmers that are not common English, and many strings used by mathematicians that are.

Are you saying special symbols aren't more common in mathematics than in programming? I simply disagree. Mathematicians hardly use strings at all, e.g. for function names or variables, while they are very common in programming. Mathematicians mostly use single letters in Roman or Greek alphabet, and sometimes with various strange styles like fraktur, double strokes etc.

replies(1): >>42153039 #
2. mmooss ◴[] No.42153039[source]
> Are you saying special symbols aren't more common in mathematics than in programming?

No, I agree that programming uses more ASCII. I'm saying that using a smaller alphabet (e.g., hex), doesn't make it easier to understand. Programming is just as arcane and difficult to understand - even programmers have trouble understanding each other's code, and generally it's believed that the understanding requires documentation in English.