Sunday, November 4, 2018

Naming stuff in software

Lot of debate about how to name thing so that we humans can sort though software. I go with two forms:

VerbSubject and VerbAdjectiveSubject

Verbs are Put, Get, Init, List,Set, Rest Debug

Subjects are Cursors, Instances, Files, Environments, Buffers, and Slots

IAdjectives: New. Empty

So If I ever want to PutEmptyCursor, I know how to write it from the name. As many stranded routines in my code, one can see I do it mechanically.

No comments: