News for hackers. Stuff that matters.
Re:Is anybody else using ridiculously long variable names? by nailer on Thursday August 18, 2016 @04:12AM (#12311031)
> documentAndPdfSavedOnDiskJsonStates

1. Why is it the document and the PDF? Are they the same thing? if so, pick one term and use it consistently.

> SavedOnDisk

2. Disk is the default place to save things.

> Json

3. JSON isn't an interesting label, as it gives you no ides of the data structure. If this is a hashmap with a bunch of document titles and booleans with their save status, then that should be obvious.

This thing seems to be save state for multiple documents, right?

So I'd replace:

> documentAndPdfSavedOnDiskJsonStates

with

    documentSaveStates
or

    pdfSaveStates
Re:Is anybody else using ridiculously long variable names? by amorroxic on Thursday August 18, 2016 @08:45AM (#12312039)
Really good perspective. Seeing the same thing on a daily basis tends to induce color blindness, plastic memory - no longer realizing difference between self documentation and meaningless verbosity.

Thank you.