News for hackers. Stuff that matters.
Re:Concise algorithms written in Julia by enriquto on Friday July 09, 2021 @06:19PM (#27789158)
> they mess up people's pattern recognition

you have described perfectly the problem that I have when reading n0code written by programmers who are not mathematicians... my mind wants to read variables with multiple letters as products of each letter.

I find multi-letter variable names extremely old fasioned, as when math was written explicitly in latin before the advent of algeraic notation.

EDIT: an illustrative tweet of my concern: https://mobile.twitter.com/fermatslibrary/status/14109451739...

Re:Concise algorithms written in Julia by kurige on Saturday July 10, 2021 @12:47AM (#27791196)
> I find multi-letter variable names extremely old fasioned

Sometimes I read things here on Hacker News that throw me so hard I leave the site for a month or two. Congratulations, this time it's your fault. Goodbye.

Re:Concise algorithms written in Julia by occamrazor on Saturday July 10, 2021 @06:17AM (#27792425)
One-letter variables have all approximately the same physical size; this makes the “tokenization” step of reading a formula faster.

They are also less descriptive, and this makes the semantic interpretation more difficult.

Usually mathematicians read entire papers, or large excerpts, at a time. In this situation the semantic association symbols<->concepts is often made at the beginning of each section and reused for several formulas, making mathematical notation more effective.

Programmers instead often look at code in smaller fragments. They don’t have thesame level of contextual information readily available and so they often prefer to embed this information in variable names.

Add that programs are written mostly in ASCII, on a keyboard, with autocomplete, in a single typeface, and math by hand, on paper or blackboard, with much more graphic possibilities.

Re:Concise algorithms written in Julia by enriquto on Saturday July 10, 2021 @01:12AM (#27791274)
What can I say... glad to have helped you to boost your productivity ;)