From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8H5rL5zQPGXw1gAAauVa8A:P1 (envelope-from ) for ; Sat, 28 Oct 2023 11:13:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8H5rL5zQPGXw1gAAauVa8A (envelope-from ) for ; Sat, 28 Oct 2023 11:13:00 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8A239585E1 for ; Sat, 28 Oct 2023 11:12:59 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=fRWiEuJa; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698484379; a=rsa-sha256; cv=none; b=TbaO4wlmlYkj37H+aWVHW9C3jTuqVC3lsEtV6pB4ipCOMoMcQaTGugHtT/kd3HZ0q7hBYk UvAT0zN3dGSUuOL3bvRMSnv1eO/vMSStL6EOV8EOEQ00gY1ivqOEV4lqc+lugPnG5sTvtj 7FBUb4CjLDg/jrxzgmI2fNKsg360yEH3HwNNFmdZLAIvpYHRubP3h47m8zROXzVUotO4eV uZ6W7C+TfdhN1Vmi2rvPepP87R3WvtU15GWudzmUUyz+mvXlb7FoeUek4nmaPUczyAPF9b tZjLPlaiofpXcHwHqlEAdUYYyh7fGFl+RGM+RmAnFVBT+xFELfuBWDrctw/M3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698484379; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=9Nk4ATG9reqyg6igHi7z+V/pgS620yN06x/SxwolVuw=; b=V+gtbESCjIV7eUFa0bip7UgtSD7JHPJb5+tOJxZk5dWf1B3KwcWyTIqml7+LdriobCa3nn uJYziEcv4OBUFBpDpEzhP5ctFLhoK66bNPyucTbg7ZNG2tLG5COJp8O7d+IR8Afk85ui1S U6Y8NMV+NEU2Rwg1at89ia+vmJgb2QrGlYeI9epSsZ6R+xJtMx4LRHz9iW5Uj8x0ifWiCU ajnsHwT0ckKH70Y0/AMHkJE2tz+/jnGI25Rf0bQEjebYrCI37+hycIqBoCLiPfqaThjn6l 7dc2kP4rB8M/aGeip4g5Sr3OEPe1uDFRaZ+a1p2md7WmZtknU9VG1Mmqtfj6IQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lendvai.name header.s=protonmail3 header.b=fRWiEuJa; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwfMj-0003bd-JU; Sat, 28 Oct 2023 05:12:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwfMh-0003bN-T9 for guix-devel@gnu.org; Sat, 28 Oct 2023 05:12:19 -0400 Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qwfMe-0006Yq-6S for guix-devel@gnu.org; Sat, 28 Oct 2023 05:12:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1698484324; x=1698743524; bh=9Nk4ATG9reqyg6igHi7z+V/pgS620yN06x/SxwolVuw=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=fRWiEuJaHplr/iFqqQWuGReQu3WOrG8ntYgEyjCk7xjDUiDVugf8+ozNhJ+EQf8vq d4324gYRjHLGk/PzDl1eCWF4pzqSlOiVVa36bNyBE+7PuBE3Tu0k4WF99tuxfbCdqn bfBbE5CG8YDVz1j6V0+1I6f45Tug5GlmVI09ONk0Tw2g7HBEEpA/fNM6L0w+t5N36Q zlyFCzrj9SYzIkX+A44I5++hEbcTxIgkkv3eugijs2PJcdIhHOqfVhstBUBfSPju3+ ySQA/aPbyhDsyH4N/q/0IhPSA85f9aQR5cUG5JUGF1R2gntu1eRxJwANSjpebl0BVs WG8gOkKZq/ovQ== Date: Sat, 28 Oct 2023 09:11:54 +0000 To: Bruno Victal From: Attila Lendvai Cc: Felix Lechner , guix-devel@gnu.org Subject: Re: Divvying up service definitions Message-ID: In-Reply-To: <66bdc552-7d15-4c3e-9304-b84bcef41dad@makinata.eu> References: <878r7skrpx.fsf@makinata.eu> <87zg07dhyq.fsf@lease-up.com> <66bdc552-7d15-4c3e-9304-b84bcef41dad@makinata.eu> Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=attila@lendvai.name; helo=mail-4018.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -3.80 X-Migadu-Queue-Id: 8A239585E1 X-Migadu-Spam-Score: -3.80 X-TUID: icgHes7cqS05 > I dont think there's any problem wrt categorization. For your Kerberos > example, either would be fine as they're not mutually exclusive. > (though I'd lean towards 'authentication' here) sure, but the crux of the issue here is how to improve code readability; i.= e. would it make the humans working on the Guix codebase more effective. if all the 3 options are equally reasonable, then some people will have to = check two places before they find it in the third. with such a codebase people will develop a habit of just using multi-file g= rep to find stuff... which is arguably a better strategy to begin with. and it's worth pointing it out here that following grep'able patterns like = `define.*kerberos` highly facilitates code navigation, and especially so fo= r newcomers. this is one of the features of lisp(ers) that i badly miss in = many other languages/cultures. and arguably, this is much more important th= an the placement of the definitions. and while i'm ranting, another useful strategy is to give unique names to a= bstractions, and make sure that wherever these abstractions are employed, t= hat name shows up in the source code; i.e. it can be grap'ped. IOW, names s= hould not be e.g. programmatically assembled in DWIM'ish ways, unless it is= a frequent enough pattern that the loss of grep'pability is worth it. or a= bstractions should not be hidden behind late binding, unless it's worth the= additional loss of code readability. ultimately, definitions shouldn't live in text files, but in a source code = database, with proper search and projection tools in the editor (and the DV= CS) that understand the graph nature of the source code. that would make th= is entire discussion moot, but we're not there yet. --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CThe meeting of two personalities is like the contact of two chemic= al substances: if there is any reaction, both are transformed.=E2=80=9D =09=E2=80=94 Carl Jung (1875=E2=80=931961)