-
Notifications
You must be signed in to change notification settings - Fork 42
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
Naming of Ops #80
Comments
We don't use a prefix like |
Regarding Another case of variation in naming is the thresholding stuff, to differentiate between |
I the case of |
Sorry, I wanted to address this today, but I literally spent 7.5h on trying to fix |
@dscho I am curious how you wanted to "address" this. Do you mean just write a comment? Or... did you have an idea for changing the code somehow? |
Any further ideas? I would do the following at the moment: If it is obvious (Area, Mean, Sum, ...) we keep short names. But as soon as there may be some confusion (Histogram vs. Histogram for example), I suggest the prefixes "Calc" or "Compute". For example the operation would be named Any comments? |
There are two separate issues: what to name the op (i.e., the I think this would be good to settle at the next hackathon, so I assigned it to the |
@dietzc and I discussed and settled on the following:
|
This issue can be closed out when all ops in imagej-ops abide by this convention. |
I really quickly codified some of these naming decisions on the wiki. See also #16. |
can be closed see wiki https://github.com/imagej/imagej-ops/wiki/Naming |
And we are unfortunately quite far from that: nearly no op ends with the
My understanding was that we would close this issue only after all ops were renamed to conform to this naming scheme. |
ah sorry, I overlooked that. makes sense. |
Hi,
we are currently implementing a lot of stuff related to features and we don't know how to actually name the classes. Example: We have an
Op
(Interface) which calculates theArea
for several types (Iterable
,Polygon
, ...) and we have anOp
which calculates theSmallestEnclosingRectangle
based on something else.How would you name the ops?
CalculateSmallestEnclosingRectangle
andCalculateArea
or ratherSmallestEnclosingRectangle
andArea
. The second option would imply that ourMean
would also be calledCalculateMean
(replaceCalculate
with whatever you want). However if we would just useSmallestEnclosingRectangle
one could think, that this is the class which is the SME itself. In the case ofArea
, the class also doesn't represent theArea
, but for the sake of simplicity and short-namesArea
seems to be the better choice.Any ideas @ctrueden @hinerm @dscho @bnorthan ?
Edit: We also have a class
CreateHistogram
, another case.The text was updated successfully, but these errors were encountered: