Re: TaskList API proposal
"Trond Norbye" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.tasklist.devel |
|---|---|
| Message-ID | <[email protected]> |
Tim Lebedkov said: > Users of this API must write something like > (int) (0.33 * (Suggestion.PRIORITY_MAX - Suggestion.PRIORITY_MIN) + > Suggestion.PRIORITY_MIN) > and recompile their files to be compatible with future changes to these > values. > Nobody will do this. That's why I think we should write the values of > constants to JavaDoc or create some more levels (5??, 10???). I must say I agree with Tor on this issue... It is in my eyes _bad_ programming style to use the internal repesentation of another class. Imagine how difficult it would be to maintain the source if you use the constants directly... When the source stops working one will have no idea what's wrong and one might need to check out the differences in the API lib to find out the new values.... Regards, Trond Norbye -- Software Developer [email protected] THALES Information Management Systems Phone: +47 98 22 98 13 Strindveien 1 Fax: +47 73 93 87 11 N-7030 Trondheim