-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Rename Logic#getFilteredPersonList() #827
Comments
What do you suggest we rename it to? |
Not too sure, what do you suggest? :P How about |
I think we did discuss about it before regarding how it feels rather weird to have a UI component being stored inside the Anyway, by returning |
This issue can be resolved by the next batch of interns :P Doesn't seem trivial to change it.
A |
@Zhiyuan-Amos @yamgent Would it be possible to reboot this conversation and decide: (1) If this is really a big enough issue, and if so (2) what the replacement name will be? |
From what I see there's two issues going on here:
|
The UI does need to know which list to bind itself to. The application won't be very useful if the UI bound itself to the I think that logic should just follow whatever the model named the list, unless With that said, I do think that So, |
I think that is good. |
Well, some might complain that "displayed person list" is too biased towards visual user input interfaces. But really, it's just an abstract term. What's important is that the model matches the language used in the application domain. @damithc Any thoughts? Shall we move forward with "displayed person list" as the application domain term? |
I'm OK with the proposed names. |
Alright, here is my re-take after a few months: To start of: I agree that "filteredPersonsList" is not a very good name, but for a different reason: if students add more features (e.g. sorting of the persons list), they would need to rename it to "filteredSortedPersonsList" to be consistent, which would cause a lot of trouble. So, it is pretty important that it be renamed. I now don't believe that "displayed person list" is a good name now, however, because it might give the wrong impression that it is in the model because it is being "displayed". Students may get the wrong impression that we are violating MVC here. It is perfectly possible to have a (perhaps command-line) UI that doesn't display the filtered person list at all, but the commands still operate on it. The actual concept of the "displayed persons list" transcends it being displayed, and I think it's pretty important to communicate that in the name.
Yeah, this statement is plain wrong. The UI can do useful stuff by binding itself to So, my current opinion is that the term "displayed persons list" is actually worse than the current "filteredPersonsList" name. In terms of other names, I now offer up the name Thoughts? |
Logic
doesn't need to expose to the world that it uses a filtered list internally.Furthermore, the
UI
doesn't need to know what kind of list to bind itself too, as long as it is anObservableList
.The text was updated successfully, but these errors were encountered: