The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: clemc@ccc.com (Clem Cole)
Subject: [TUHS] early cc variable and function names
Date: Fri, 17 Oct 2014 15:41:17 -0400	[thread overview]
Message-ID: <CAC20D2PHWVf2OM7GK=cL9n6Q+6MfwHq4LcvFHMKwgYxE5RYEBQ@mail.gmail.com> (raw)
In-Reply-To: <20141017034618.GJ17227@mercury.ccil.org>

Larry - AMEN.

The key is that in the old days it was much easier to glance and code and
know which struct or union was being examined.  Today, that context is lost
and I have to think more about what the type of the ptr is.   Yes the
>>compiler<< knows, but I as the random programmer reading the code later
do not.

Larry and my experiences with very, very good programmers is the same.

Clem

On Thu, Oct 16, 2014 at 11:46 PM, John Cowan <cowan at mercury.ccil.org> wrote:

> Larry McVoy scripsit:
>
> > xyz.size
> > abc.size
> > foobar.size
> >
> > What are the types of those structures?
>
> You can't tell because the names are meaningless.  With more meaningful
> names, it's usually possible to see what the type must be.
>
> --
> John Cowan          http://www.ccil.org/~cowan        cowan at ccil.org
> I don't know half of you half as well as I should like, and I like less
> than half of you half as well as you deserve.  --Bilbo
> _______________________________________________
> TUHS mailing list
> TUHS at minnie.tuhs.org
> https://minnie.tuhs.org/mailman/listinfo/tuhs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20141017/2415f205/attachment.html>


  parent reply	other threads:[~2014-10-17 19:41 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17  2:29 Noel Chiappa
2014-10-17  2:40 ` John Cowan
2014-10-17  2:52   ` Larry McVoy
2014-10-17  3:46     ` John Cowan
2014-10-17  3:54       ` Larry McVoy
2014-10-17 19:41       ` Clem Cole [this message]
2014-10-17 20:37     ` random832
2014-10-17 20:42       ` Larry McVoy
  -- strict thread matches above, loose matches on Subject: below --
2014-10-18 10:32 Noel Chiappa
2014-10-18 23:03 ` Ron Natalie
2014-10-18 23:11   ` Dave Horsfall
2014-10-17 16:11 Noel Chiappa
2014-10-17  1:51 Mark Longridge
2014-10-17  2:20 ` Milo Velimirovic
2014-10-17  2:21 ` Dave Horsfall
2014-10-17 13:35   ` random832
2014-10-17 13:44     ` Warner Losh
2014-10-17 14:07       ` arnold
2014-10-17 14:22         ` Milo Velimirović
2014-10-17 19:29         ` random832
2014-10-18  7:25 ` Greg 'groggy' Lehey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAC20D2PHWVf2OM7GK=cL9n6Q+6MfwHq4LcvFHMKwgYxE5RYEBQ@mail.gmail.com' \
    --to=clemc@ccc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).