git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb: how to name main "action" subroutines?

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 31, 2006, 17:50 UTC
Message-ID
<ealfsa$hho$1@sea.gmane.org>
In-Reply-To
<20060731172625.48437.qmail@web31811.mail.mud.yahoo.com>
<opublikowany i wysłany>
Luben Tuikov wrote:
Show 10 quoted lines
> --- Jakub Narebski <jnareb@gmail.com> wrote:
>> I'm going to rename some gitweb subroutines to better correspond to what
>> given subroutine does. I have problem: how to name main "action"
>> subroutines? Currently they use git_ prefix, e.g. git_logo.
>> git_project_list, git_rss, git_summary, git_heads,...
>> 
>> I have thought about do_logo, or gitweb_logo, or out_logo etc., but somehow
>> none is best.
> 
> "git_<noun>_<verb>" ?  So then you'd have, for example "git_logo_show".

I'd rather reserve git_ prefix for subroutines which deal with git repository, either by calling git commands (e.g. git_get_type), or accessing git repository directly (e.g. git_read_hash, git_read_description).

I'm partial to either out_foo or gitweb_foo...
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Luben TuikovNext: Josef Weidendorfer
Message 3 of 6 in “gitweb: how to name main "action" subroutines?”
  1. Jakub NarebskiJul 31, 2006
  2. Luben TuikovJul 31, 2006
  3. Jakub NarebskiJul 31, 2006
  4. Josef WeidendorferJul 31, 2006
  5. Jakub NarebskiJul 31, 2006
  6. Josef WeidendorferJul 31, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.