Live data from Hacker News

Taming names in software development

simplethread.com

41–44 of 44 posts

Re: Taming names in software development

#41
> I understand exactly what BasicReviewableFlaggedPostSerializer is on my first time seeing it.

Good for the author, I certainly wouldn't. Things I'd have to research in the codebase before understanding the name are:

- what is Post?

- what do Flagged and Reviewable mean here? Are they attributes of the Post or the serializer?

- what does Basic mean? Again, what is this referring to? Is it indicating that the class is some kind of base class for an object hierarchy?

Re: Taming names in software development

#43
In previous projects, data dictionaries helped name things like database tables and columns. In one project, DBA team used ERwin (data modeling software) to maintain a data dictionary and data model.

Are data dictionaries still in use today? Are there open source examples, books, etc. to learn from?

Re: Taming names in software development

#44

Once you understand the domain you're working on and you've architectured your solution in a way that makes sense, only then naming in your code will get right and without much additional effort. Forget about naming, it is a side effect of your understanding of the issue at hand.

Exactly. Variable naming is not an isolated skill you can hone, and the fact that people are treating it like one means they are missing the point.

You won't become a great author by perfecting your grammar instead of storytelling.

Post reply on HN