Why aren't you using books
instead of bookList
? If this is in an object oriented language, the variable will be declared as List *books
which clarifies that books
is a List
.
Putting the variable type in the variable is fine but it isn't needed as much as it was in the past. If you really want "list" in the var name somewhere I would recommend bookList
if it is a list of Book
objects (or whatever you are using for a book.)
I would never use booksList
. If you are storing lists of lists of books I would recommend finding a term other than "book." Library, shelf or bookLists
may work. Essentially, a plural at the end of a variable flags it as a container for objects of whatever was just pluralized. books
is a container of book
. cats
is a bag of cat
. dogLists
is a container of dogList
.
variable_names
(I don't like CamelCase much :-) are better off following rules of logic rather than rules of English. If this isn't a dup, it must be off-topic.