←back to thread

54 points yakubov_org | 1 comments | | HN request time: 0s | source
Show context
ssalka ◴[] No.44689986[source]
The names of variables impart semantic meaning, which LLMs can pick up on and use as context for determining how variables should behave or be used. Seems obvious to me that `current_temperature` is a superior name to `x` – that is, unless we're doing competitive programming ;)
replies(1): >>44690139 #
yakubov_org ◴[] No.44690139[source]
My first hypothesis was that shorter variable names would use fewer tokens and be better for context utilisation and inference speed. I would expand your competitive programming angle to the obfuscated C challenge ;)
replies(1): >>44725071 #
1. Macha ◴[] No.44725071[source]
The problem is, unless you're doing green field development, that description of what the existing desired functionality is has to be somewhere, and I suspect a parallel markdown requirements documents and the code with golfed variable names are going to require more context, not less.