What’s the dominant naming convention for variables in PHP: camelcase or underscores? [closed]
Closed 11 years ago.
Boolean Method Naming Affirmative vs Negative
Should boolean methods always take the affirmative form, even when they will only ever be used in the negative form?
What Http verb should the route to log out of your web app be? [closed]
Closed 9 years ago.
Naming the project containing only interfaces [closed]
Closed 9 years ago.
Data structure for accessing units of measure
TL;DR – I’m trying to design an optimal data structure to define units within a unit of measure.
“Is” prefix and “On” suffix as reasonable exceptions to a “non-hungarian” naming standard?
First, I believe I’ve seen this question discussed here before, but I cannot find it. My apologies if you do find it.
Naming functions that retrieve a value
I have this personal rule to start all function/method names with a verb. My verb of choice for functions or methods that get a value based on some data structure or object is get. I’m wondering if that’s a good idea.
What is a good rule-of-thumb for naming link-tables?
In the same way that a publication
table might relate to a person
table via subscriptions
, or a company
table might relate to a person
table via employee
, I’m wondering if there is a descriptive way to relate a company
table to a company_type
table.
naming convention for different types of functions (use prefixes or suffixes?)
Does anyone have suggestions for naming conventions for different types of functions, particularly wrapper functions that need to connect to and disconnect from the database vs. wrapper functions that are passed a db link and don’t need to connect and disconnect?
C project avoiding naming conflicts
I’m struggling to find pragmatic real-world advice on function naming conventions for a medium sized C library project. My library project is separated into a few modules and submodules with their own headers, and loosely follows an OO style (all functions take a certain struct as first argument, no globals etc). It’s laid our something like: