8 ms·
>That's not the only thing. It's also how fast they can read/understand the program code. What are you doing? Speed reading? Even 2xing the reading time with v
by nendroid 6y ago
>That's not the only thing. It's also how fast they can read/understand the program code.
What are you doing? Speed reading? Even 2xing the reading time with verbosity is not a factor if lack of verbosity forces the reader to switch context multiple times in order to elucidate meaning.
>Sure, we do that for software also - we document things outside of the code. For example in a wiki, a README.md or sometimes even just above the code as comment/docs. But that's not what I was talking about, right?
Major difference. In math it's required. In programming it's recommended and rarely done. When it is done, it's rarely done in a form that's as complete or as detailed as math. YOu get an outline at best. Programmers are expected to read code without documentation because program writers are too lazy to write documentation.
SO what I'm saying is put your documentation into the code itself. Self documenting code with readable names as opposed to elegant.
>So you are fine if a developer does e.g. `c := (some super complex expression) // find relevant customer` and then goes on to use just `c` everywhere in their code instead of `relevantCustomerBlaBlaBla`?
relevantCustomerMetric is way better than c everywhere. Autocomplete should alleviate the pain of typing. Not every programmer arrives at the variable where it was incepted so they can't see the comment.
>Also, mathematicians don't always do that. Sometimes they just say "let x be [insert complex equation]". See for yourself in https://en.wikipedia.org/wiki/Conformal_geometry https://en.wikipedia.org/wiki/Conformal_geometry or https://en.wikipedia.org/wiki/Riemann_surface https://en.wikipedia.org/wiki/Riemann_surface
Isn't "let x be" english? What's the purpose of those words? Clarity.
- valenterry 6y ago> Isn't "let x be" english How is `let x be ???` any different from `let x = ???`
- nendroid 6y ago"let" is still english. "let x =" is short for "let x equal"
- valenterry 6y agoExactly - so why do you treat them different? Because programmers use "=" and mathematicians write "be"?