Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Cc: emacs-devel@gnu.org
Subject: Re: Gnus work
Date: Wed, 04 Oct 2017 11:53:08 -0700	[thread overview]
Message-ID: <87mv56d9t7.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <86376y7nyy.fsf@zoho.com>

Emanuel Berg <moasen@zoho.com> writes:

> Eric Abrahamsen wrote:
>
>> I've been very slowly reading the Gnus code
>> base, and looking at how to go about doing
>> some refactoring, cleanups, and a few
>> new features.
>
> What strikes me immediately when I read the
> Gnus source is that the defuns are often very,
> very long. But I'm not suggesting anyone do
> something about it for that reason alone.
> However if anyone does work on a defun and has
> thus acquired a close to complete understanding
> of it, it could be considered breaking it up,
> possibly repeatedly, as the last step of work,
> and then along lines that are as natural
> as possible, of course.

I think the main problem is not so much that the defuns are long, but
that they do too much, there's overlap, and there's lots of
work-by-side-effect. A long defun wouldn't be so bad if you could scan
it and feel confident that you knew what it was doing.

What I *do* think is a problem is that variables and functions are named
inconsistently, and often confusingly. It just makes debugging that much
harder. But on the other hand, renaming just for renaming's sake...




  reply	other threads:[~2017-10-04 18:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04 18:32 Eric Abrahamsen
2017-10-04 18:43 ` Emanuel Berg
2017-10-04 18:53   ` Eric Abrahamsen [this message]
2017-10-04 21:07     ` Emanuel Berg
2017-10-04 21:09 ` Tim Landscheidt
2017-10-04 21:56   ` Eric Abrahamsen
2017-10-05  5:19     ` Adam Sjøgren
2017-10-05 17:35       ` Eric Abrahamsen
2017-10-05 17:51         ` Adam Sjøgren
2017-10-05 20:10           ` Eric Abrahamsen
2017-10-05 16:37     ` Sivaram Neelakantan
2017-10-05  6:53 ` Julien Danjou
2017-10-05 13:31 ` Lars Ingebrigtsen
2017-10-05 18:12   ` Eric Abrahamsen

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=87mv56d9t7.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    --cc=emacs-devel@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 NNTP newsgroup(s).