unofficial mirror of emacs-tangents@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <incal@dataswamp.org>
To: emacs-tangents@gnu.org
Subject: Re: [External] : Re: Shrinking the C core
Date: Fri, 15 Sep 2023 18:17:30 +0200	[thread overview]
Message-ID: <87cyyje7hh.fsf@dataswamp.org> (raw)
In-Reply-To: AM9PR09MB49778586FECF2E5249F2EFE596F7A@AM9PR09MB4977.eurprd09.prod.outlook.com

Arthur Miller wrote:

> Yes indeed; and I agree with what you wrote in your longer
> second mail about that. They do lessen the need for more
> functions which means less API surface to document and
> potentially lookup and learn. Isn't a good example that
> window functions that I wanted to make into same once in the
> context of help/info patch? I don't remember which it were
> tbh :). Something with selecting window on just current
> frame or all frames or something like that.

I think, in general and ranked from best to worse,

1. Many functions, all with few arguments
2. One function with not-that-many optional arguments
3. One function with keyword arguments
4. One function with too many optional arguments

Documentation is not a problem for case 1 since small
functions with clear names and few arguments typically
requires just 1~3 lines of documentation.

This documentation is also easy to browse, you won't have to
navigate the help buffer or search it for what an argument or
keyword does, written far below somewhere in the text.

-- 
underground experts united
https://dataswamp.org/~incal




  reply	other threads:[~2023-09-15 16:17 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AM9PR09MB4977F8809CAACC854107D60596F0A@AM9PR09MB4977.eurprd09.prod.outlook.com>
2023-09-13 14:46 ` [External] : Re: Shrinking the C core Drew Adams
2023-09-14 12:09   ` Arthur Miller
2023-09-15 16:17     ` Emanuel Berg [this message]
2023-09-15 20:04       ` Drew Adams
2023-09-15 20:21         ` Emanuel Berg
2023-09-16 20:55           ` Drew Adams
2023-09-17 10:08             ` Emanuel Berg
2023-09-17 14:34               ` Yuri Khan
2023-09-17 23:14                 ` Emanuel Berg
2023-09-17 17:16               ` Drew Adams
2023-09-17 23:48                 ` Emanuel Berg
     [not found] <AM9PR09MB4977AE8A2555D914A8CB96ED96E1A@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found] ` <87ledwx7sh.fsf@yahoo.com>
     [not found]   ` <DB9PR09MB4986737ABB230BFCEB1AB9B596E0A@DB9PR09MB4986.eurprd09.prod.outlook.com>
     [not found]     ` <877cpfybhf.fsf@yahoo.com>
     [not found]       ` <AM9PR09MB4977C010362EBF83BCF3491C96E0A@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]         ` <873503y66i.fsf@yahoo.com>
     [not found]           ` <AM9PR09MB49779854134CDC2E4FB2AD2996E0A@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]             ` <E1qbX63-0003Ty-Rn@fencepost.gnu.org>
     [not found]               ` <E1qdgsR-0000j8-BN@fencepost.gnu.org>
     [not found]                 ` <AM9PR09MB497757F8D921063E3D60D40C96EFA@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]                   ` <ZPhih7q2ml8v6EfP@ACM>
     [not found]                     ` <AM9PR09MB497758A94F012B506480CCE996EDA@AM9PR09MB4977.eurprd09.prod.outlook.com>
     [not found]                       ` <SJ0PR10MB548849E1E781201B1E2A9AC3F3EDA@SJ0PR10MB5488.namprd10.prod.outlook.com>
     [not found]                         ` <E1qfUyS-0006Wx-9e@fencepost.gnu.org>
     [not found]                           ` <ZP+B/SleQ0CTPWd2@thyrsus.com>
     [not found]                             ` <m2cyyoj9av.fsf@Pro.fritz.box>
2023-09-12 12:07                               ` Eli Zaretskii
2023-09-12 12:16                                 ` Po Lu
2023-09-12 19:58                                 ` Arthur Miller
2023-09-13 14:39                                   ` Eli Zaretskii
2023-09-14 11:53                                     ` Arthur Miller
2023-09-14 13:36                                       ` Po Lu
     [not found]                           ` <CALDnm50-__n48jSXe7WGXuT8O1YFm7QmqVzjgh-VUg5d_3ofpQ@mail.gmail.com>
     [not found]                             ` <87fs3fesir.fsf@dataswamp.org>
2023-09-15 15:35                               ` Drew Adams

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=87cyyje7hh.fsf@dataswamp.org \
    --to=incal@dataswamp.org \
    --cc=emacs-tangents@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.
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).