From: Jakub Narebski Date: Mon, 31 Jul 2006 17:50:19 GMT Subject: Re: gitweb: how to name main "action" subroutines? Message-ID: In-Reply-To: <20060731172625.48437.qmail@web31811.mail.mud.yahoo.com> Luben Tuikov wrote: > --- Jakub Narebski 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__" ? 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