News for hackers. Stuff that matters.
Re:Is anybody else using ridiculously long variable names? by davelnewton on Thursday August 18, 2016 @12:11AM (#12310387)
It depends.

I'm skeptical `documentAndPdfSavedOnDiskJsonStates` is a useful variable name. Without context it's hard to say. It sounds like you have a couple of collections of states (state names?) for various document types.

PDFs are already documents, so that seems redundant. It already sounds like `savedDocumentStates` and `thumbnailStates` would be adequate--but again, without any context, it's impossible to know if that would be adequate.

(Personally I'd have a type => state mapping and skip them altogether, and use a different form of classification altogether.)

Re:Is anybody else using ridiculously long variable names? by amorroxic on Thursday August 18, 2016 @12:21AM (#12310407)
There is a domain specific case indeed, would've been better perhaps to offer a bit of context: https://speakerdeck.com/amorroxic/reactive-resumes - we deal with different types of documents then pdf conversion as standard in, followed by parsing, ai, analysis.