Questions tagged [snakecasing]

snake_case combines words by replacing each space with an underscore (_). In the all caps version, all letters are capitalized.

41 questions
0
votes
1 answer

symfony 4 - default normalization to snake_case

trying to get the sf4 serializer component to use snake_case as the default: Symfony\Component\Serializer\Normalizer\ObjectNormalizer: public: true arguments: ['@serializer.mapping.class_metadata_factory',…
gherkins
  • 14,603
  • 6
  • 44
  • 70
0
votes
2 answers

How to count backwards

Hey guys im developing something and I need to fix this please give me some feedback on how to improve this. (how to make it cleaner, easier to read , etc). Here's the code! function wordFliper(word) { let wordOutput = ""; let reverseIndex =…
0
votes
0 answers

What is the name of the case that uses dot separators

There are: camelCase UpperCamelCase (aka PascalCase) snake_case kebab-case but is there an official name for this case.with.dots?
Jean Bob
  • 565
  • 10
  • 24
0
votes
1 answer

Convert function names to snake case with clang-tidy

I have a bunch of C code whose function names are in CamelCase and I have to convert them all to snake_case. I found that there is a tool call clang-tidy that seems to be able to do this but I can't make sense of the documentation, there are a lot…
cassepipe
  • 371
  • 6
  • 16
0
votes
0 answers

How to convert a statement to snake-case?

I tried lots of things which didn't support all cases and I made this one which is mixed of all answers. def to_snake(camel_input): camel_input = camel_input.replace('&', '_and_') camel_input = re.sub(r'(?
Farshid
  • 161
  • 1
  • 8
0
votes
1 answer

How to mix sequelize camel case and snake case?

Using Sequelize 6, I have a model, associated with tables, that has capital letters in some columns and snake case in others (the columns are not created_at or updated_at). The underscored model configuration seems to affect each attribute…
user2517182
  • 1,241
  • 3
  • 15
  • 37
0
votes
0 answers

Covert json to schema fileds with camel casing

I have a json: [{ "myKey": "key" }] My schema is: _snake_case = re.compile(r"(?<=\w)_(\w)") _to_camel_case = partial(_snake_case.sub, lambda m: m[1].upper()) class CamelCasedSchema(Schema): """Gives fields a camelCased data key""" def…
Avenger
  • 793
  • 11
  • 31
0
votes
1 answer

camelCase to snake_case using the shell?

What's a simple way to convert (a stream of space-separated) words in camelCase to snake_case, using the command shell (e.g. bash)? This is a simpler case relative to an earlier question which I've deleted.
einpoklum
  • 118,144
  • 57
  • 340
  • 684
0
votes
1 answer

Change the values in a column from PascalCase to snake_case using SQL

I have a table in snowflake that looks like this: -------------------- | fieldname | -------------------- |thisIsTestOne | |thisIsTestTwo | |this_test | -------------------- I need to convert the PascalCase values…
Saqib Ali
  • 3,953
  • 10
  • 55
  • 100
0
votes
0 answers

How to get RequestBody whose attribute are in camelCase but I have application level property-naming-strategy: SNAKE_CASE in springboot

I have a nested object e.g { "driverNumber": 1, "expressCustomerNumber": 34637593, "salutationCode": "1", "firstName": "firstName", "lastName": "lastName", "birthday": "1971-04-09T00:00Z", "placeOfBirth": "", "birthCountryCode": "", "address": { …
Sonwani
  • 1
  • 1
  • 2
-1
votes
1 answer

What are the disadvantages of using snake_case in MongoDB's field names?

I am thinking about using snake_case in my mongoDB-documents due to convention in the project. As I researched here, camelCase seems to be a standard in mongodb due to its BSON-storage. My documents are for example { "created_at": "", …
Steven
  • 61
  • 1
  • 3
  • 10
1 2
3