by whatshisface · 7y ago · 0 comments
Unless you speak Greek, I can't think of any other reasons for Greek letters to wander in to code.
Notation matters. What if I told you that to add two numbers you had to write it out as plus(number, number)? Clearly you'd riot. The reason people complain about short IDs is because they're not used to it, but there are a lot of domains (math, science) where using traditional notation enhances understanding. Hell, even in programming if someone wrote sequenceIndex instead of i when iterating over the indices of an array I'd think they were trying to troll.
These sorts of conventions enhance readability by providing extra information. You know instantly that `y` must be data, while `theta` is a parameter.