Questions tagged [camelcasing]

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.

403 questions
2
votes
2 answers

Camel Case Web API Json settings do not seem to be working

I have this code in my WebApiConfig.cs file and within the Register method: var jsonFormatter=config.Formatters.JsonFormatter; jsonFormatter.UseDataContractJsonSerializer = false; jsonFormatter.SerializerSettings.ContractResolver = new…
Anupheaus
  • 3,383
  • 2
  • 24
  • 30
2
votes
2 answers

Why are some jQuery methods camelCase and others are not?

For example, the CSS methods seem to be camelCase: http://api.jquery.com/category/css/, But the mouse events are all lowercase: http://api.jquery.com/category/events/mouse-events/ Is there logic to this?
Elana
  • 43
  • 7
2
votes
1 answer

How to name symbols for blind programmers

How should I name the symbols I write in a way that they are read correctly by screen readers, so they do not create a barrier for blind programmers? By "symbols" I mean things like variables and function names. For example, if I write a variable…
Thiago Negri
  • 5,221
  • 2
  • 28
  • 39
2
votes
8 answers

JavaME: Convert String to camelCase

What would be a simple implementation of a method to convert a String like "Hello there everyone" to "helloThereEveryone". In JavaME support for String and StringBuffer utility operations are quite limited.
Ciryon
  • 2,637
  • 3
  • 31
  • 33
2
votes
1 answer

Ember camelCase attributes not loading

My Ember router pings the server for a photos JSON file every 5 seconds (long polling). It loops over the JSON and adds (using EmberData's push) a photo to the store if the photo id does not yet exist. Using the workflow described by Yoran…
Cimm
  • 4,653
  • 8
  • 40
  • 66
2
votes
1 answer

Convert CamelCase xml/json to ruby named attributes with ActiveResource

I'm using ActiveResource to consume a REST service. The xml from the service looks like: Kevin Berridge ActiveResource parses this just fine, but it uses the names verbatim. So…
Kevin Berridge
  • 6,251
  • 6
  • 41
  • 42
2
votes
2 answers

move through string to next upper case character in visual studio 2008

When I'm working in xCode I can use the Command-LeftArrow and Command-RightArrow to move to the next word break or upper case character in the source code this is really handy when renaming variable names etc, e.g. If I have "rightAudioFile" and my…
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228
2
votes
2 answers

How should I write words with dash in camelCase?

For example: Meta-information metaInfornation, metainformation or metainfo? getMetainfo, getMetaInfo or getMetaInformation? what about objective-c style?
BergP
  • 3,453
  • 4
  • 33
  • 58
2
votes
2 answers

SQL to convert data from underscore-separated to CamelCase

I want to change underscore-separated strings: my_underscore_separated_string into CamelCase: MyUnderscoreSeparatedString With an SQL statement. What is the best way to do this conversion (in a table in Oracle)? I can match the underscores with…
user69173
2
votes
1 answer

Convert Pascal-cased setter to an underscore-separated variable name

This is not as simple as it seems. Most of you are likely thinking of the regex /([A-Z])/_$1/ like I have found all over the Internet, but my particular situation is slightly more complicated. My source string contains more content that I don't…
JMTyler
  • 1,604
  • 2
  • 21
  • 24
2
votes
1 answer

Why is jQuery.camelCase() function not documented?

I searched the jQuery docs for "camelCase" and found nothing, which then led me on a chase for a different method name. Ultimately, I found it in the source code, but It cost me considerable time. So I'm wondering, why isn't this method documented…
Vanja D.
  • 834
  • 13
  • 20
1
vote
2 answers

I get no smart caret in Aptana Studio

I can't get word navigation on camelcase, underscore or periods in either Aptana or Titanium studios. Neither in PHP or Javascript. I do get it on hyphens though. The only smart caret option I see in preferences is "Smart caret positioning at line…
1
vote
1 answer

Textmate Snippet Regex to CamelCase a String

I need to create a TextMate snippet that will mirror an input and make it camel cased. The base snippet looks like this: ${1:Tab 1} Example input: Some text here Example output: someTextHere I tried doing the…
jdubwelch
  • 21
  • 4
1
vote
1 answer

camelCase with lowercase initial with names

Many coding standards recommend using camelCase with lowercase initial for variable and function names. What is the standard practice if the initial should be uppercase for "grammatical reasons", e.g., because it is a name? For instance, shall I…
Federico Poloni
  • 668
  • 8
  • 24
1
vote
0 answers

Use linker script to convert identifier from CamelCase to snake_case?

i am working on a C project using a snake_case syntax for naming my functions. However, a lib i need to uses CamelCase for all of its function names. To avoid doing a long header full of static inline definitions, i wonder if i could be possible to…
Edhyjox
  • 11
  • 1