2 ms·
> Does that range start at 0 or 1 or some other value? What does range mean? Is it English? Attacking every single possible element of a language is not compel
by Supermancho 7y ago
> Does that range start at 0 or 1 or some other value?
What does range mean? Is it English? Attacking every single possible element of a language is not compelling. The defacto standard, is 0 indexing. The exceptions index at 1.
> - start = time.time(): doesnt need any explanation
People often oversimplify the concept of time. However, on average, the cognitive load for Python is lower than most. Certainly less than Swift. In one case I would look up what time.time actually did and in the case of Swift, I would throw that code away and work on another language with less nonsensical functions, like PHP. /s
- naasking 7y ago> The defacto standard, is 0 indexing. The exceptions index at 1. "Defacto standards" are meaningless. The semantics of any procedure call are completely opaque from just looking at an API let alone a code snippet, especially the API of a dynamically typed language, and doubly-so if that language supports monkey patching. So the original post's dismissive argument claiming one sequence of syntactic sugar and one set of procedure calls is clearer than another is just nonsense, particularly for such a trivial example. > However, on average, the cognitive load for Python is lower than most. Maybe it is. That's an empirical question that can't be answered by any arugment I've seen in this HN thread.
- Supermancho 7y ago> Defacto standards" are meaningless. No they arent. A mismatch between what is expected and doesnt happen, within a specific context contributes to cognitive load. "Intuitive" is a soft term with a basis in reality. The only language (Quorum) that has made an effort to do analyses was largely ignored. Usability in languages exist, with or without the numbers you wish for. Swift is less uable than many some languages and more than others.