News for hackers. Stuff that matters.
Re:A Theory of Software Architecture by forgotmypw17 on Wednesday October 28, 2020 @02:04AM (#24915743)
Agree on the functional bit.

Naming things: I try to not think about it for more than 10 seconds, and go with the best I've got by then. I find myself renaming things sometimes, and I'm eager to do this when a better name comes to me.

Re:A Theory of Software Architecture by simongray on Wednesday October 28, 2020 @03:48AM (#24916279)
I use the thesaurus that comes with macOS whenever I think of a name and it just doesn't feel right. Then I typically find a more fitting name after spending 20 seconds looking at near synonyms.
Re:A Theory of Software Architecture by kumarvvr on Wednesday October 28, 2020 @02:41AM (#24915956)
I did try that. That is how I ended up with 50 "Manager" classes in my app.

At that point, it is a cognitive burden to handle so many "managers".

Re:A Theory of Software Architecture by chrisweekly on Wednesday October 28, 2020 @08:18AM (#24917849)
Shakespeare the software architect: "First kill all the Managers".
Re:A Theory of Software Architecture by SNACKeR99 on Wednesday October 28, 2020 @09:03AM (#24918230)
Before we shuffle off this mortal stack.
Re:A Theory of Software Architecture by jariel on Wednesday October 28, 2020 @02:24AM (#24915858)
Yes this. Naming is an intuitive thing, you can't force it, and it will get in the way, moreover, it's fluid and won't matter until later, things could change.

Just name it whatever and come back to it when it starts to matter more and you've probably thought of something better by then.

Re:A Theory of Software Architecture by philipov on Thursday October 29, 2020 @01:38AM (#24927602)
Renaming things is a luxury only enjoyed by people who don't have other people using their code downstream. Once people have used it, renaming things becomes a breaking change others in your organization will oppose.
Re:A Theory of Software Architecture by ramraj07 on Wednesday October 28, 2020 @02:12AM (#24915788)
Or hopefully your code reviewer suggests names that are better if your choice doesn't make sense
Re:A Theory of Software Architecture by forgotmypw17 on Wednesday October 28, 2020 @12:58PM (#24921155)
That is true. I am also the code reviewer at this time, but I do perform code reviews.