zlacker

[parent] [thread] 1 comments
1. shadow+(OP)[view] [source] 2022-10-14 22:05:52
I'm surprised that I strongly disagree. My eyes glaze right past the difference between the fh and the fi in that example.

They also glaze past the end of the mega-strings, but I usually solve that problem by either actually ctrl-F finding for the string (which will highlight it) or by finding an examplar and selecting it (which will highlight all instances of the same symbol in the languages and IDEs I use).

I'm a firm believer that "code isn't just text" (in fact, most of my frustration with code is tools that treat it so... The set of strings that aren't valid programs is vastly larger than the set that are, so why should I be treating programs as if they're mere strings? It'll lead me to create non-compilable artifacts). So I try to avoid being in situations where the only tools I have to work with to understand code are a text editor or an annotated printout (I don't doubt that's done in places, but I've gone my whole career managing to avoid it so far).

replies(1): >>kitsun+rj
2. kitsun+rj[view] [source] 2022-10-15 01:05:05
>>shadow+(OP)
> My eyes glaze right past the difference between the fh and the fi in that example.

Same here. The difference isn't significant enough for my eyes to latch onto.

If I had to come up with short readable function names, I would still use whole words, but would 1) cut the number of words down to the bare minimum 2) make each name as unique as practically possible.

[go to top]