snakecasing Questions
3
Solved
If I want to write a phrase like "Column 1" in snake case (the usual C way of formatting identifiers that looks like some_function), do I insert underscore between a word or a number, like column_1...
Graveyard asked 19/9, 2019 at 11:6
3
Solved
I have an array and filtering the values with the array_filter() function. I used echo on the filter function to see if the filtered value is working or not.
$columns = array(
0 => 'ISO',
1 =&...
Writer asked 9/11, 2014 at 4:19
2
Solved
I want to replace all index keys in a array but I need to do it only with a function like array_map() (not with a foreach) and that's why it's a little hard for me.
Actual array:
$array = [
'mc_gr...
Noon asked 19/11, 2014 at 23:52
35
Solved
If I had:
$string = "PascalCase";
I need
"pascal_case"
Does PHP offer a function for this purpose?
Nalley asked 3/1, 2010 at 2:20
2
Solved
I am trying to do some text manipulations using Notepad++ macros. My last step is converting camelCase strings to SNAKE_CASE. So far no luck. I'm not very familiar with regex so can't write my own ...
Chapa asked 3/5, 2017 at 19:26
7
Looking for code that will do conversions like this:
"MyCamelCaseA" to "my_camel_case_a"
"AMultiWordString" to "a_multi_word_string"
"my_camel_case_a" to "myCamelCaseA" or "MyCamelCaseA"
"a_multi_...
Hospitable asked 31/1, 2020 at 19:43
15
Solved
Coming from a C# background the naming convention for variables and methods are usually either camelCase or PascalCase:
// C# example
string thisIsMyVariable = "a"
public void ThisIsMyMet...
Eleonoreeleoptene asked 1/10, 2008 at 21:1
16
Solved
What would be a good way to convert from snake case (my_string) to lower camel case (myString) in Python 2.7?
The obvious solution is to split by underscore, capitalize each word except the first ...
Janiuszck asked 27/9, 2013 at 14:48
1
Solved
I would like to create a VS Code snippet where I input a part in CamelCase, and the same string is output in snake_case at some other place in the snippet.
Based on this SO post Here's my attempted...
Creditor asked 17/5, 2021 at 8:51
1
Solved
I am learning Python, and coding simple REST API using Flask micro-framework.
I am using SQLAlchemy for Object-relational-mapping and Marshmallow for Object-serialization/deserialization.
I am us...
Lassiter asked 9/6, 2019 at 13:50
1
Solved
As far as I know, the convention is to use snake_case for method names, so why are some methods in Django PascalCase, e.g. Django's TestCase Class?
Dimissory asked 23/2, 2019 at 10:59
7
Solved
Is there a standard on JSON naming?I see most examples using all lower case separated by underscore, aka snake_case, but can it be used PascalCase or camelCase as well?
Carnallite asked 4/4, 2011 at 19:43
6
Solved
I had to come up with a way to convert array keys using undescores (underscore_case) into camelCase. This had to be done recursively since I did not know what arrays will be fed to the method.
I c...
Interleaf asked 7/7, 2015 at 16:52
1
© 2022 - 2024 — McMap. All rights reserved.