I've seen our own codebase end up employing rather long names pretty much everywhere, things like:
val documentAndPdfSavedOnDiskJsonStates = ...
val resumeAndPortfolioThumbnailsJsonStates = ...
Is this worth debating? Good idea/non-issue/binary size issues maybe?
Best regards!
So, for a short lived variable, I'm personally ok with it being short, as in, some random bit of python:
IMHO, I don't really think it matters what 's' is here, and I don't think it would would be that helpful if given a more meaningful name. The cognitive load is small.Conversely, variables that live a long time and/or operate globally are better off with a longer name.
However, I would observe that your example might suggest a coding issue, the tipoff being 'and'. If a single variable is handling two chunks of state, then perhaps it's doing too much and you might be better off with something like:
Not huge savings there, but perhaps also things might get clearer encapsulating these things in a class, with methods like (just making stuff up): Not saying that this is always the correct approach or valid in your particular case, just making the general observation that IME highly modular code tends to require fewer really long names.