[Tutor] Name for this type of class?

Alex Kleider akleider at sonic.net
Sat Aug 3 13:40:49 EDT 2019


On 2019-08-03 10:16, Mats Wichmann wrote:

> .....  It also comes up here:
> 
>>> file_count
>>> line_count
>>> byte_count
>>> row_count
>>> batch_count
>>> job_count
>>> error_count
>>> warning_count
> 
> why not "files", "lines", "bytes"... the plural form already tells you
> it's a counter.

To me "files", "lines", "bytes" implies collections of files, lines 
bytes. (i.e. arrays or tuples...)
"___count" implies an integer.
If the latter, I'd use "n_files", "n_lines" ... (possibly without the 
underscores if you find typing them a bother.)
Comments?


More information about the Tutor mailing list