[SIGCIS-Members] Origins of "clean" code

mariann unterluggauer mariann at nomatic.org
Fri Sep 3 23:02:03 PDT 2021

i once was interested in the same question.
clean and dirty, readable code, etc.pp.
so i asked the programmers.
i mean you still can do so.
their profession is not that old so many are still around to ask.

niklaus wirth is still around as terry winograd - i hope,
tony hoare, donald knuth, ...

in regard to clean i remember adele goldberg told me:
it needs to fit on one screen.

"Really good code, readable code, is the pride of every programmer.
Ideally, it should be short and concise.
In any case, it should fit on a screen page in a clearly visible way.
If you have to scroll you are forced to keep the lines in your head - that's annoying." (2001)

i suggest to understand programmers and their phrasing you can dig brian foote: "big ball of mud" is a great read, about shantytowns and spaghetti code | http://laputan.org/

sort of transcript of my own radio show to that:

programming languages: be quick and get dirty, 2001 https://web.archive.org/web/20030627085330fw_/http://matrix.orf.at/bkframe/011007_1.htm

(you need to make use of deepl.com, as it is in german ... )

all the best,

> On 03.09.2021, at 21:19, Azhar Desai <mail at azh-r.com> wrote:
> I'm a software engineer,  who reads & relies some of your work, to help make sense of working in the astonishingly ahistorical tech sector - so thank you!
> I'm interested in the origins of the word "clean" in software design. In conversations about software, people might often prefer some code over another, arguing that it's "cleaner". An example from a 2020 paper on the implementation of a VPN in Linux:
>> While the Linux kernel’s crypto API has a large collection of primitives... ultimately, using raw primitives with direct, non-abstracted APIs proved to be far cleaner [1]
> The most famous example is the eponymously titled book "Clean Code" (2008) which proposes snippets of code that are ostensibly always preferred.
> Does anyone know where I might find out how the word "clean" came to be used like this in software? My reasons for asking are somewhat impure: I'm trying to discourage this not very meaningful word in favour of more precise language.
> One of the earliest uses I've seen of "clean" is in one of Djikstra's notes from 1974 [2] on a design for arrays in response to how ALGOL 60 had it. [2] But I have no idea if it was in common use then, or had always been in the development of programming languages at least. I'd love to hear any thoughts.
> Best,
> Az
> [1] https://www.wireguard.com/papers/wireguard.pdf
> [2] https://www.cs.utexas.edu/users/EWD/ewd04xx/EWD417.PDF
> _______________________________________________
> This email is relayed from members at sigcis.org, the email discussion list of SHOT SIGCIS. Opinions expressed here are those of the member posting and are not reviewed, edited, or endorsed by SIGCIS. The list archives are at http://lists.sigcis.org/pipermail/members-sigcis.org/ and you can change your subscription options at http://lists.sigcis.org/listinfo.cgi/members-sigcis.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.sigcis.org/pipermail/members-sigcis.org/attachments/20210904/c16ac707/attachment.sig>

More information about the Members mailing list