Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromSalGnt/cscs

Commit8c27476

Browse files
author
Adonay Berhe
committed
file name changes to fit repo use-case better
1 parente45415d commit8c27476

File tree

4 files changed

+21
-37
lines changed

4 files changed

+21
-37
lines changed

‎C#.md‎renamed to ‎Naming_C#.md‎

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1-
#*C#*
2-
3-
##**Common Styles and Examples**
1+
#*Naming Conventions - C#*
42

53
Pascal Case | Camel Case | Snake Case | Lower Case | Caps Case
64
:----------------:|:---------------:|:------------------:|:---------------:|:----------------:
75
LazyDogBrownFox | lazyDogBrownFox | lazy_dog_brown_fox | lazydogbrownfox | LAZYDOGBROWNFOX
86

9-
##**Naming Conventions**
10-
11-
###*File/Directory Names*
7+
###*Files and Directories*
128
* Pascal Case.
139
```C#
1410
MotorControl.cs
1511
```
1612

17-
###*Class Names*
13+
###*Classes*
1814
* Pascal Case: Names of classes, enumerations, namespaces
1915
* Interface names are recommended to start with "I".
2016
```C#
@@ -24,13 +20,13 @@ public enum MyEnum {}
2420
publicinterfaceIMyInterface {}
2521
```
2622

27-
###*Funciton/Method Names*
23+
###*Funcitons and Methods*
2824
* Pascal Case.
2925
```C#
3026
publicintRandomFunctionGenerator();
3127
```
3228

33-
###*Variable Names*
29+
###*Variables*
3430
* Pascal Case: If field is a public field, static, or constant.
3531
* Camel Case: If local variable or parameter.
3632
* Camel case with a leading underscore: If private, protected, internal fields and properties.

‎C++.md‎renamed to ‎Naming_C++.md‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,32 @@
1-
#*C++*
2-
3-
##**Common Styles and Examples**
1+
#*Naming Conventions - C++*
42

53
Pascal Case | Camel Case | Snake Case | Lower Case | Caps Case
64
:----------------:|:---------------:|:------------------:|:---------------:|:----------------:
75
LazyDogBrownFox | lazyDogBrownFox | lazy_dog_brown_fox | lazydogbrownfox | LAZYDOGBROWNFOX
86

9-
##**Naming Conventions**
10-
11-
###*File Names*
7+
###*Files*
128
* Snake Case.
139
```C++
1410
my_useful_class.c
1511
my_useful_class.cpp
1612
```
1713

18-
###*Class/Type Names*
14+
###*Classes and Types*
1915
* Pascal Case: The names of all types — classes, structs, type aliases, enums, and type template parameters — have the same naming convention. No underscores.
2016
```C++
2117
classCirclePlotter :publicPlotterClass{};
2218
structMyStruct{};
2319
```
2420

25-
###*Funciton/Method Names*
21+
###*Funcitons/Methods*
2622
* Pascal Case. The same naming rule applies to class- and namespace-scope constants that are exposed as part of an API and that are intended to look like functions
2723
* Accessors and mutators (get and set functions) may be named like variables
2824
```C++
2925
intRandomFunctionGenerator();
3026
voidset_count(int count);
3127
```
3228
33-
### *Variable Names*
29+
### *Variables*
3430
* Lower Case or Snake Case for multiple words.
3531
* Data members of classes (but not structs) additionally have trailing underscores
3632
```C++
@@ -44,13 +40,13 @@ class TableInfo {
4440
};
4541
```
4642

47-
###*Namespace Names*
43+
###*Namespaces*
4844
* Lower Case or Snake Case for multiple words.
4945
```C++
5046
example::example_scope::example_item temp_example;
5147
```
5248

53-
###Macro Names
49+
###*Macros*
5450
* All Caps Case with underscores separating words.
5551
```C++
5652
#definePI 3.14159265358979323;

‎JS.md‎renamed to ‎Naming_Js.md‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
#*Java Script*
2-
3-
##**Common Styles and Examples**
1+
#*Naming Conventions - JavaScript*
42

53
Pascal Case | Camel Case | Snake Case | Lower Case | Caps Case
64
:----------------:|:---------------:|:------------------:|:---------------:|:----------------:
75
LazyDogBrownFox | lazyDogBrownFox | lazy_dog_brown_fox | lazydogbrownfox | LAZYDOGBROWNFOX
86

9-
##**Naming Conventions**
10-
11-
###*File/Directory Names*
7+
###*Files and Directories*
128
* lower case with underscorees for readability.
139
```js
1410
myscript.js
@@ -39,7 +35,7 @@ const THIS_IS_PI = 3.14;
3935
functiondoSomething(arg){}
4036
```
4137

42-
###*Class Names*
38+
###*Classes*
4339
* Pascal Case: Names of classes and enumerations
4440
```js
4541
classMyClass {}

‎Python.md‎renamed to ‎Naming_Python.md‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
1-
#*Python*
2-
3-
##**Common Styles and Examples**
1+
#*Naming Conventions - Python*
42

53
Pascal Case | Camel Case | Snake Case | Lower Case | Caps Case
64
:----------------:|:---------------:|:------------------:|:---------------:|:----------------:
75
LazyDogBrownFox | lazyDogBrownFox | lazy_dog_brown_fox | lazydogbrownfox | LAZYDOGBROWNFOX
86

9-
##**Naming Conventions**
10-
11-
###*Modue/File Names*
7+
###*Modules and Files*
128
* Lower Case or Snake Case for improved readability.
139
```python
1410
example.py
1511
random_function_generator.py
1612
```
1713

18-
###*Class Names*
14+
###*Classes*
1915
* Pascal Case:
2016
```python
2117
classCirclePlotter(object):
2218
```
2319

24-
###*Function/Method Names*
20+
###*Functions/Methods*
2521
* Lower Case or Snake Case for improved readability. Camel Case if that's already the prevailing style.
2622
```python
2723
defexample():
@@ -34,7 +30,7 @@ def randomFunctionGenerator():
3430
def_print_helper(self,user_id)
3531
```
3632

37-
###*Variable Names*
33+
###*Variables*
3834
* Lower Case or Snake Case for improved readability.
3935
```python
4036
status="OK"
@@ -46,7 +42,7 @@ temp_func = random_funciton_generator()
4642
_user= _get_user_id()
4743
```
4844

49-
###*Argument/Parameter Names*
45+
###*Arguments/Parameters*
5046
* All Lower Case.
5147
```python
5248
defexample(guid=None):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp