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
4 answers
English Sentence to Camel-cased method name
I had to convert a series of sentences into camel-cased method names. I ended writing something for it. I am still curious if there's something simpler for it.
Given the string a = "This is a test." output thisIsATest
I used for…

Pran
- 3,481
- 2
- 25
- 27
1
vote
3 answers
How can I convert a string from underscore or dashed format to camelCase or UpperCamelCase in Javascript?
How can I take a string that is in dashed notation :
something-like-this
or underscore notation :
something_like_this
and convert it to camelCase :
somethingLikeThis
or UpperCamelCase :
SomethingLikeThis
?
Edited to add @torazaburo accuses this of…

trex005
- 5,015
- 4
- 28
- 41
1
vote
1 answer
Code analysis, Lost between CA1709 and CA1704
Because of these two KB articles, I am confused:
CA1704: Identifiers should be spelled correctly
CA1709: Identifiers should be cased correctly
I have a property named ICD9. My code analysis says that I have to change it to Icd
That sounds…

Rami Alshareef
- 7,015
- 12
- 47
- 75
1
vote
1 answer
How can I convert a series of words into camel case in AppleScript?
I'm trying to modify Dragon Dictate, which can execute AppleScript with a series of words that have been spoken. I need to find out how I can take a string that contains these words and convert it to camel case.
on srhandler(vars)
set…

Ebu
- 163
- 5
1
vote
2 answers
Underscore to camel case except for certain prefixes
I am currently creating a Java program to rewrite some outdated Java classes in our software. Part of the conversion includes changing variable names from containing underscores to using camelCase instead. The problem is, I cannot simply replace all…

Tommo
- 977
- 14
- 35
1
vote
2 answers
Can't change string with Rails' String#camelize
Ruby is not my normal language, and I'm struggling to get the following to work.
I'm just working with an array.
irb(main):54232:0> contact_data
=> ["3521", "xxxxxxxx@xxxxxx.com", "ADA JONES SMITH"]
irb(main):54226:0>…

Mike
- 1,532
- 3
- 21
- 45
1
vote
1 answer
PhalconPHP - camel cased model fields?
I have a field in my database "user": "first_name"
When I create my Model User.php, I tried the following getter:
private $firstName;
public function getFirstName() {
return $this->firstName;
}
This is NULL, while this one is filled with the…

Christian
- 152
- 1
- 11
1
vote
1 answer
Database Column Naming for REST API
tl/dr;
Should both the column names in my db and JSON-Keys be camelCase
or
Should both the column names in my db and JSON-Keys be uppercase SNAKE_CASE
Long version
I'm designing a REST API that communicates with a sqlite database. I have been…

Deftness
- 265
- 1
- 4
- 21
1
vote
1 answer
HTML/CSS:CamelCase vs Underscores
I have read lots of articles about advantages and disadvantages of camelCase and Underscore naming conventions. I've always prefered camelCase mainly because it saves bytes.
But learning about BEM, I've been really confused. BEM naming is more…

FrontDev
- 837
- 5
- 19
1
vote
1 answer
Recommendation on using abbreviations in CamelCase from Code Complete
In the latest code review I was asked, why did I change the method name from GetHDRFrame to GetHdrFrame, while HDR is an abbreviation. I'm pretty sure there was such recommendation in Code Complete: when using abbreviations in CamelCase names, treat…

Mikhail
- 20,685
- 7
- 70
- 146
1
vote
0 answers
Autocomplete for upper-case constants with underscores in Eclipse?
is there a possibility to activate autocomplete for constants with underscores _?
I have a class with many constants, where many of them begin same. Example:
// Component details
public static final String PROPERTY_NAME_COMPONENT_MATERIAL_NUMBER =…

BAERUS
- 4,009
- 3
- 24
- 39
1
vote
1 answer
Keeping the first vowel, while removing the rest MATLAB
I hate asking this, but I am so close to figuring it out and it's really bothering me. I need to switch my strings into camelcase. I got rid of the spaces, I can uppercase the correct letters and I can remove the vowels, but I need to keep the very…

Jessica Marie
- 293
- 5
- 16
1
vote
5 answers
Ruby - Converting Strings to CamelCase
I'm working on an exercise from Codewars. The exercise is to convert a string into camel case. For example, if I had
the-stealth-warrior
I need to convert it to
theStealthWarrior
Here is my code
def to_camel_case(str)
words = str.split('-')
a…
user3783466
1
vote
1 answer
Mojolicious Routing and CamelCase
I have a my mojolicious routes set up like this:
my $r = $self->routes;
my $users = $r->route('/users')->to(controller => 'controller-users');
$users->get('/select')->to( action => 'select' );
$users->get('/list')->to( …

psgels
- 737
- 1
- 6
- 19
1
vote
0 answers
DataTable Select on camel case string not working correctly
I am performing a search on a DataTable and am getting unexpected results. The table contains a column called Name. One of the rows contains the value "MustHaveRings" for the Name column.
Both the DataSet and DataTable have the CaseSensitive…

user3371139
- 43
- 1
- 5