From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.ada Subject: Re: "Usability" (was Re: Map iteration and modification) Date: Sat, 6 Jan 2024 23:41:11 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 6 Jan 2024 23:41:11 -0000 (UTC) Injection-Info: dont-email.me; posting-host="0196cb45c2cd961d8949b0bb3a76fa46"; logging-data="842586"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jqeSw3QWyNx35ZuwDTboZ" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:z0Q8nx5wHoDUefJjhoyYpWodOao= Xref: news.eternal-september.org comp.lang.ada:65968 List-Id: On Sat, 6 Jan 2024 01:03:05 -0600, Randy Brukardt wrote: > For writability, the less you have to write, the better. I write code for readability, and I think avoiding repetition fits into that as well. Thus, factoring repeated sequences into a common function/ class, and just putting calls to that in all the relevant places, is, I find, generally a Good Thing. Bugs seem to be measured per line of code. Therefore, fewer lines of code means fewer bugs overall.