I want to store images and video, and I obviously don't want to use the name "Image" as the database table, since that would be inaccurate. I've used "Media" in the past, but I don't like the idea of ...

The project I'm working on has quite a few classes. These classes can be grouped in two different ways. I'm trying to decide which grouping is best as for namespacing. Currently I a set of user facing ...

I have a class that is backed by a double value, and I am wondering about accessor method names that preserve abstraction. Based on my experience in Java, there seems to be at least two precedents:
...

I read a long time ago about a pattern/technique for easily querying for all "descendants" of a record (no need to use CONNECT TO, which is not standard and not available with JPA).
I remembered the ...

I'm working in a project which deals with physical devices, and I've been confused as how to properly name some classes in this project.
Considering the actual devices (sensors and receivers) are one ...

Should I avoid using getX() and setX() as names for methods that aren't "traditional" getters or setters? (Let's define traditional as it only gets/sets the field and has no other effects.) I guess ...

I'm working on a personal project that uses a few different libraries, such as GLFW, glm and Bullet. How are different naming conventions usually dealt with in this context?
Working with C++ I always ...

I have a project that uses the underscore naming convention for the MySQL database and PHP scripts but uses camelCase for the javascript application (a common scenario I'm sure).
However, once JSON ...

I saw this question on SO: here; the question is kind of old and not many viewed, so I want to ask it again.
I currently work on a project using C++, C# and Actionscript-3, the conventions of C++ and ...

I'm writing some software for an embedded system. I am trying to think of clear names for my single pin output functions.
Normally, when I'm working with active-high outputs (ON = 1, OFF = 0), I am ...

Let's assume in our application we want to model cars. We also want to model a car repository where we store some registered cars. How should that be modeled in scala?
Here comes my approach: First, ...

I am having some problems trying to figure out when to use a factory or to wrapper class. This question is slightly geared towards C# I guess, so I'm not sure if this is the correct place to ask.
Say ...

Let's say we have a class that stores some textlike content like sourcecode as a string. We want the class to be able to not only show the sourcecode itself but also a more compact representation.
My ...

Is naming a class according to its implementation an acceptable practice?
e.g. SortedSet if the class is maintains a sorted list of unique items or TreeSet if it using a binary search tree structure ...

In small programming examples, it is established that one will probably use foo, bar, and/or baz as variable/function names.
Are there accepted human names one can use? For example, if a program is ...

Given that a method's name might change in time, is it a good idea to specify the name of the method whose return value I am asserting as a part of the Unit Test method's name? What about the message ...

What generic name is given to classes that encapsulate a collection of esoteric functions which together perform some larger cohesive but entirely self-contained task useful to the wider application, ...

I am writing a class that wraps (the parts of) an external API I am using. Let's take the Github API as an example.
My imaginary Github class now has a fetchUser() and fetchRepository() method. When ...