Tagged Questions
-3
votes
2answers
79 views
naming abstract class [closed]
I have an abstract class representing a test assertion. How should I name it and why?
Assertion
AssertionBase
AssertionAbstract
[other]
4
votes
1answer
102 views
Advices on structure and names for namespaces and classes
I'm resistant to calling the "main" class the same as the namespace, but I sometimes find myself needing it. Considering I'm using the Vendor.Namespace.[Subnamespace].Class formula, imagine this ...
2
votes
1answer
357 views
What is meaning of the term “Sans” in a class name?
I was reading code of a java project where I found a class name like "UserSansXml". This class is dealing with user objects. I wanted to know the meaning of "sans".
5
votes
5answers
1k views
What do you call classes without methods?
What do you call classes without methods?
For example,
class A
{
public string something;
public int a;
}
Above is a class without any methods. Does this type of class have a special name?
0
votes
2answers
497 views
Is it best practice to always capitalize class file names in PHP, and other languages?
I ask because I've seen a couple of OO PHP tutorials which do not adhere to this, but to me it just makes sense. It makes it easy to instantly see if a file is a class or not, if non-class files all ...
0
votes
2answers
273 views
Identify name of class which does CRUD operations
Using my application (which I am currently developing), Admin can assign addresses (not only assign, it is something like CRUD operations) to salesRep, so that those addresses will be listed under ...
3
votes
2answers
672 views
How to name a private method in a language which doesn't support privacy?
What's the coding standard for naming a private method in a language which does not have the private modifier? Specifically, I am talking about Javascript. Below I've placed an underscore at the end ...
1
vote
2answers
214 views
Name for this pattern?
I'm writing a class that will handle thread synchronisation.
It would have a begin method which would increment a counter and an end method that would de-increment a counter. It'll have another ...