Camel case is a language-independent naming convention in which an identifier name will start with a lowercase letter and each additional word within the name will start uppercase, such as customerName, printInvoice, etc.
Questions tagged [camelcasing]
403 questions
1
vote
1 answer
AngularJS $resource JSON field name conversion
I'm working on an AngularJS project that uses an API to deal with data. Now I'm implementing the 'create' functionality using $resource. Everything was going well except the naming conversion: I use camelCase but the API accepts snake_case only.
Is…

haxpanel
- 4,402
- 4
- 43
- 71
1
vote
0 answers
GNU Readline: how to treat CamelCaseWords as multi-word?
I would like my word-boundary-based readline bindings to treat CamelCaseWords as multi-word.
For example, I would like to need three 'forward-word' actions to get from one end to the other in "CamelCaseWords". Can it be done?

Irfy
- 9,323
- 1
- 45
- 67
1
vote
2 answers
Non camel case to Camel Case in python 3?
This program is meant to change something from normal to camelCase. EG: Not_Camel_case -> notCamelCase or Camel_Case to camelCase.
def titlecase(value):
return "".join(word.title() for word in value.split("_"))
def titlecase2(value):
return…

NoviceProgrammer
- 257
- 1
- 8
- 15
1
vote
2 answers
Opposite of jQuery.camelCase for CSS property names
jQuery.camelCase is used to convert dashed CSS properties to camelcased CSSOM(? or DOM?) properties.
I'd like to do the opposite to dynamically create a CSS transition value.
I don't want to use the all keyword for this. I'd like to make it possible…

headacheCoder
- 4,503
- 8
- 30
- 33
1
vote
0 answers
Proper capitalization when using __bases__ as a parameter
I have a long, but simple linear hierarchy. My Grandparent class needs to provide a common _something method for all children (however distant), but the thing is it needs to call a NextClass when it's done.
In this case, the NextClass is always the…

yurisich
- 6,991
- 7
- 42
- 63
1
vote
3 answers
Generate verbose names from CamelCase
I'm trying to obtain verbose names from CamelCase strings in Python but have no idea how to approach the problem.
This is the usecase:
class MyClass(object):
def verbose_name(self, camelcase):
return "my class"
# ^-- here I need…

Paolo
- 20,112
- 21
- 72
- 113
1
vote
2 answers
Force automatic linq to sql classes to have pascal case properties?
My SQL database has column names in camel case.
I'm using Linq to SQL with C#.
Is there a way to force auto-generation of properties to be in pascal case?
The camel case properties do not conform to the C# standards, and it's a pain to do it…

user1825066
- 13
- 3
1
vote
1 answer
Should I create an attribute to make camel-cased table names, spaced?
I want to customize the headings of my tables outputted in a dynamic data website. Specifically, if a column has a name like "PhonebookManager", I want it to display, "Phonebook Manager" (note the space).
Where should I be looking to get this done?

Irwin
- 12,551
- 11
- 67
- 97
1
vote
4 answers
Regex to split Camel case - with Numbers
I want to split a camelCase name to individual names using regex, for performing a spell check.
The split should be as follows:
1) extendedStructureForNUB --> extended, Structure, For, NUB
2) extendedStructureFor2004 --> extended, Structure, For,…

Unni Kris
- 3,081
- 4
- 35
- 57
1
vote
1 answer
Zend Framework has problems with CamelCase Controller Names?
I have a Zend Framework application I've been working on my local machine, I've deploying it to a server but having .htaccess issues because some but not all routes fail with a "Page Not Found". Very weird that I can't access some controllers.
My…

Bendihossan
- 2,407
- 5
- 22
- 25
0
votes
2 answers
How do I make Resharper respect capitals in camelcase code completion?
In ReSharper 5.1 running on VS 2008, I am trying to complete a method name using CamelHumps with the following code:
public bool debugMode { get; private set; }
public DebugWindow()
{
InitializeComponent();
}
public void logOutput(List…

neromir
- 3
- 5
0
votes
3 answers
Inputs name and table fields name?
I usually use CamelCase for PHP coding, but when it come to input fields name and table (DB) fields name... what should I use?
For example:
or ...

I'll-Be-Back
- 10,530
- 37
- 110
- 213
0
votes
1 answer
How do I combine lowerCamelCase with all-caps abbreviations? (with style)
Let's assume OSCClient is a class and I want instances of a class to begin with a lower case letter:
oSCClient = OSCClient() # ew!
edit: I asked this question because of pep 8 which says: "When using abbreviations in CapWords, capitalize all the…

abw
- 209
- 4
- 8
0
votes
2 answers
Can't access mixed (camel) case Java variable names using FreeMarker
I am using FreeMarker (2.3.18) to access Java variables in a custom class. When the variable name has mixed case (camel case) I'm getting an error message saying the variable does not exist.
This is a snippet of my class:
public class Student{
…

chibban
- 1
- 1
- 2
0
votes
0 answers
Angular Openapi-generator-cli with useSingleRequestParameter don't use snake_case
i'm using this cli to generate my services in angular
openapi-generator-cli generate -i ./openapi.yaml -g typescript-angular -o src/app/core/api/v1 --additional-properties=useSingleRequestParameter=true,modelPropertyNaming=snake_case
i have a model…

oscurodrago
- 788
- 1
- 8
- 18