all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add u-boot.
Date: Wed, 31 Aug 2016 22:55:34 +0200	[thread overview]
Message-ID: <20160831225534.58cf56b9@scratchpost.org> (raw)
In-Reply-To: <87eg54llie.fsf@gnu.org>

Hi Ludo,

On Wed, 31 Aug 2016 22:40:57 +0200
ludo@gnu.org (Ludovic Courtès) wrote:

> > +           (lambda* (#:key outputs make-flags #:allow-other-keys)
> > +             (let ((configname (string-append ,board "_defconfig")))  
> 
> Should be ‘config-name’ per our conventions, but ‘config’ is probably
> enough.
> 
> > +               (if (file-exists? (string-append "configs/" configname))
> > +                   (zero? (apply system* "make" `(,@make-flags ,configname)))
> > +                   (begin
> > +                     (display "Invalid boardname. Valid boardnames would have been:")
>
> “board name” (two words).

> > +                    (copy-file file-path target-file-path)))
> > +                uboot-files)))))))))  
> 
> s/-path//                

For the record, a filename (or file path) is something completely different from a file. It makes no sense to call a filename "file". Likewise, a boardname is the name of a board. It's not the board. A configname is the name of a config [file]. "config" would be the configuration itself.

To develop this habit has taken a long time for me and it has paid off well.

I'm not totally against naming filenames "file" - or "f" for that matter - but I distinguish for good reason.

Also when adapting gnu/system.scm etc for U-Boot I spent lots of time finding out what are confignames and what are configurations because it likewise does not distinguish.

A rose by any other name would smell as sweet, you know :)

  reply	other threads:[~2016-08-31 20:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-29 14:48 [PATCH] gnu: Add dtc David Craven
2016-08-29 14:53 ` David Craven
2016-08-29 17:02   ` Danny Milosavljevic
2016-08-29 16:16 ` [PATCH] gnu: Add u-boot David Craven
2016-08-29 18:27   ` Danny Milosavljevic
2016-08-29 18:30     ` Danny Milosavljevic
2016-08-31 20:40   ` Ludovic Courtès
2016-08-31 20:55     ` Danny Milosavljevic [this message]
2016-08-31 21:07       ` David Craven
2016-09-01 12:11       ` Ludovic Courtès
2016-08-31 20:44 ` [PATCH] gnu: Add dtc Ludovic Courtès

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=20160831225534.58cf56b9@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    --cc=ludo@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.