Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #9042

Re: Variable naming for a list of lists

From Richard Heathfield <rjh@cpax.org.uk>
Newsgroups comp.programming
Subject Re: Variable naming for a list of lists
Date 2018-07-20 14:53 +0100
Organization Fix this later
Message-ID <pisphh$6hb$1@dont-email.me> (permalink)
References <175f32d6-0bde-4090-aec9-580c10ade345@googlegroups.com>

Show all headers | View raw


On 20/07/18 00:02, porton.victor@gmail.com wrote:
> I have a list of lists of downloaders (downloaders are function objects).
> 
> I pass this list of lists as well as individual sublists and list elements between different functions.
> 
> I could name the relevant fields as downloaders_list_list, downloaders_list, and downloader. But this "Microsoft-style" naming of variables accordingly their types is heavily advised against.

Only when it nails the name to the language data type (because, if the 
language data type changes, you have a heavy edit in front of you).

Your names look good to me.

-- 
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Variable naming for a list of lists porton.victor@gmail.com - 2018-07-19 16:02 -0700
  Re: Variable naming for a list of lists Richard Heathfield <rjh@cpax.org.uk> - 2018-07-20 14:53 +0100
  Re: Variable naming for a list of lists Richard Damon <Richard@Damon-Family.org> - 2018-07-27 17:28 -0400
  Re: Variable naming for a list of lists Julio Di Egidio <julio@diegidio.name> - 2018-07-28 04:33 -0700

csiph-web