unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@lsi.nec.co.jp>
Cc: emacs-devel@gnu.org
Subject: Re: Code cleanup -- inconsistent "width" and "height" etc.
Date: 10 Apr 2003 10:32:40 +0900	[thread overview]
Message-ID: <buo65pnqgqv.fsf@mcspd15.ucom.lsi.nec.co.jp> (raw)
In-Reply-To: <5xhe97dsr3.fsf@kfs2.cua.dk>

storm@cua.dk (Kim F. Storm) writes:
> Things measured in columns/lines are named as _CANON_WIDTH and
> _CANON_HEIGHT resp., while things measured in pixels are named as
> _PIXEL_WIDTH and _PIXEL_HEIGHT resp.

`_CANON_WIDTH' sounds annoyingly redundant; if that's the canonical
representation, then just use `_WIDTH,' and save additional adjectives
for exceptional cases.

Adding unnecessary verbosity simply makes the code more tedious (and
thus harder) to read.

[For the same reason, such adjectives _shouldn't_ be used in cases where
only one representation is possible by definition; e.g., the width of a
character in a font is obviously in pixels, so adding `_pixel' would be
unnecessary and harmful.]

-Miles
-- 
Is it true that nothing can be known?  If so how do we know this?  -Woody Allen

  parent reply	other threads:[~2003-04-10  1:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-10  1:51 Code cleanup -- inconsistent "width" and "height" etc Kim F. Storm
2003-04-10  0:11 ` Kenichi Handa
2003-04-10  1:32 ` Miles Bader [this message]
2003-04-10 13:50   ` Kim F. Storm
2003-04-10 12:10     ` Kenichi Handa
2003-04-11  0:08       ` Kim F. Storm
2003-04-10 23:27         ` Miles Bader
2003-04-11  0:34         ` Kenichi Handa
2003-04-11 23:45           ` Richard Stallman
2003-04-12  2:19             ` Kenichi Handa
2003-04-11  8:51     ` Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=buo65pnqgqv.fsf@mcspd15.ucom.lsi.nec.co.jp \
    --to=miles@lsi.nec.co.jp \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).