What do you mean? For what purpose would you sort variables or functions?
- 0 Posts
- 3 Comments
Joined 4 months ago
Cake day: June 4th, 2025
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
The nastiest typos are autocompleted similarly named (and correctly typed) variables, functions, or types. Which is why it’s a good idea to avoid such name clashes in the first place. If this is impossible or not practical, at least put the part that differs at the start of the name.
My keyboard is very keen on completing “it’s” regardless of context. I imagine this is the case for most people, since usually I see “it’s” when “its” would be correct.
I also think it’s difficult to know that “it’s” is wrong to use because it feels like it follows the common apostrophe for possession rule:
“Australia’s capital is Canberra” -> “Australia is the largest country in Oceania. It’s capital is Canberra.” (wrong, but intuitive)