Is 'Protection' an acceptable Java class name

Posted by jonny on Programmers See other posts from Programmers or by jonny
Published on 2012-07-09T15:07:12Z Indexed on 2012/07/09 15:23 UTC
Read the original article Hit count: 266

Filed under:
|
|

This comes from a closed thread at stack overflow, where there are already some useful answers, though a commenter suggested I post here. I hope this is ok!

I'm trying my best to write good readable, code, but often have doubts in my work!

I'm creating some code to check the status of some protected software, and have created a class which has methods to check whether the software in use is licensed (there is a separate Licensing class).

I've named the class 'Protection', which is currently accessed, via the creation of an appProtect object. The methods in the class allow to check a number of things about the application, in order to confirm that it is in fact licensed for use.

Is 'Protection' an acceptable name for such a class?

I read somewhere that if you have to think to long in names of methods, classes, objects etc, then perhaps you may not be coding in an Object Oriented way. I've spent a lot of time thinking about this before making this post, which has lead me to doubt the suitability of the name!

In creating (and proof reading) this post, I'm starting to seriously doubt my work so far. I'm also thinking I should probably rename the object to applicationProtection rather than appProtect (though am open to any comments on this too?). I'm posting non the less, in the hope that I'll learn something from others views/opinions, even if they're simply confirming I've "done it wrong"!

© Programmers or respective owner

Related posts about java

Related posts about coding-style