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
3
votes
1 answer
VSCode snippet, transform lowercase string delimited by underscores into CamelCase?
I'm writing a custom snippet in VSCode to help me define custom class methods easily. I need to be able to enter a string 'formatted_like_this' and have the regex transform that string in certain places so that it becomes 'FormattedLikeThis'?
The…

micomec
- 71
- 8
3
votes
1 answer
What I can get using Camelcase convert property like ID(two upper letters)
I have a class like:
public class MyClass{
public int ID {get;set;}
public string CName{get;set}
public string FirstName{get;set}
}
when I using newtonsoft camelcase to convert this class to json ,I get something like this
{
…

Xin
- 69
- 4
3
votes
1 answer
Why are Datomic attributes are named in camelCase
I noticed that in many examples datomic attributes are named using camel case (for example startMonth instead of start-month in mbrainz schema:
https://github.com/Datomic/mbrainz-sample/blob/master/schema.edn#L78) which would definitely be more…

Tomas Kulich
- 14,388
- 4
- 30
- 35
3
votes
2 answers
How do I convert a camelCase string to underscore in java keeping some upper cases and the rests as lower cases?
How do I convert a camel case string to underscore in java keeping some upper case letters? I'm usin this code:
String inputString = "Hi How areYouToday";
String result = inputString.replaceAll("([a-z])([A-Z]+)", "$1_$2");
I can convert…

Gabriel Ortega Rosero
- 43
- 1
- 2
- 7
3
votes
2 answers
API standard for JS / C# interface - Camel vs. Pascal case
We have a system where a server written in C# implements a REST interface and the client is written in JS, most of the data is passed as JSON.
In a way there is here a collision between the camelCase and PascalCase worlds.
The parameters mostly…

Thomas
- 10,933
- 14
- 65
- 136
3
votes
2 answers
Converting a cstring to camelcase
So my task is to fill out my function to work with a test driver that feeds it a random string during every run. For this function I have to convert the first character of every word to a capital and everything else must be lower.
It mostly works…

RyeMan
- 35
- 2
- 6
3
votes
3 answers
RestTemplate don't return value with Snake Case in Spring REST
I have REST API with property in application.properties as below:
spring.jackson.property-naming-strategy: CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES
Everything is OK! But when I use RestTemplate to do as below, but I found all key in Snake Case is…

mikezang
- 2,291
- 7
- 32
- 56
3
votes
2 answers
Eclipse Contentassist full abbrev only
When I like to create a new variable of type ImageObserver and the line starts like this:
IO
and I press Ctrl+Space , I get a couple of wrong suggestions! Suggestions for abbrevs that do not fully match!
Eclipse's content assist suggestions…

Grim
- 1,938
- 10
- 56
- 123
3
votes
1 answer
Camel case name for class with "IPv4"
I have class named Ipv4Address. What would be idiomatic camel case name for it? By idiomatic I mean meeting Google Java Style and meeting Checkstyle AbbreviationAsWordInName check.
This question does not answer my question - I'm asking here…

Michal Kordas
- 10,475
- 7
- 58
- 103
3
votes
2 answers
Yii not detecting camel case actions
Yii is giving me 404 Error if I declare an action like this:
SiteController.php
public function actionRegisterUser()
This is how I call it in the main.php
['label' => 'Register User', 'url' => ['/site/RegisterUser']],
I tried several different…

J_Strauton
- 2,270
- 3
- 28
- 70
3
votes
0 answers
CamelCase to snake_case in SQL
Do you know if it is possible to transform a field content in CamelCase to snake_case ?
Like this:
$ SELECT my_other_field FROM my_table;
+-----------------+
| my_other_field |
+-----------------+
| ThisIsAnExample |
+-----------------+
$ UPDATE…

mykiwi
- 1,671
- 1
- 19
- 35
3
votes
1 answer
How does camel case work with lower case proper nouns?
As the title says how would camel case, which is: theQuickBrownFox, work when one of the words starts with a lower case letter followed by a capital such as is the case in iPhone.
getiPhoneNumber() for instance looks weird.
Would it be…

Aequitas
- 2,205
- 1
- 25
- 51
3
votes
3 answers
T4 FieldName in camelCase without Underscore?
I'm using T4 to generate some class definitions and find that I'm getting an underscore in front of my field names.
I have set
code.CamelCaseFields = true;
just to be safe (even though I understand that's the default) but still end up with _myField…

Eric J.
- 147,927
- 63
- 340
- 553
3
votes
2 answers
Visual Studio 2013 IntelliSense Subword Navigation and Completion
I am curious if VS2013 has the possibility to make it's intellisense auto-complete a little more effective.
I am used to have classes like MyClassInCamelCase and MyClassAgainInCamelCase even MyClassYetAgainInCamelCase. The way intellisense works for…

Michel Feinstein
- 13,416
- 16
- 91
- 173
3
votes
5 answers
What is naming standard for creating object?
As per coding standard object name for class is
eg SqlConnection sqlConnection=new SqlConnection();
but when we have class like IPAddress (first 2 char are capital), what will be name of object?
IPAddress iPAddress=new IPAddress();
IPAddress…

ADP
- 123
- 1
- 2
- 11