-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tandem and class names for the phMeterNodes #238
Comments
@samreid I already see |
Thanks, I renamed the file accordingly. Closing. |
I could also have lived with both of them being named |
I will also note that anyone searching for |
Since class name
|
Reopening. As I said above:
This immediately came up in #242 (convert to TypeScript). After some head scratching, and cursing myself for allowing PHMeterNodeAccordionBox to be named as such... Micro pH Meter does not allow changing pH; My Solutions pH meter does. To resolve TypeScript errors, I had to refactor PHMeterNodeAccordionBox into subclasses. And since we typically name an AccordionBox subclass using the pattern
It then made sense to change the tandem names to match. So the tandem names for the 3 screens are now as follows (Macro is unchanged):
In this case I feel strongly that clarity of code, and sticking to naming conventions, is more important than the Studio client being able to search for "pHMeterNode" and find all 3 meters. Hopefully that's OK with @arouinfar, back to her for review. |
I completely agree. I think |
phetsims/tandem#267 revealed that some of the phMeterNodes are actually AccordionBox instances, but they are not named as such. Based on phetsims/tandem#267, I renamed the tandems, but did not want to rename the implementation classes until we confirm the desired behavior. @arouinfar can you please check the tandems and recommend:
pHMeterNodeAccordionBox
an OK tandem?The text was updated successfully, but these errors were encountered: