You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .gemini/styleguide.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,16 +65,16 @@ public bool MyMethod(int param1, string param2)
65
65
return true; // Example return
66
66
}
67
67
## Generics
68
+
* Utilize generics where appropriate to improve type safety and code reusability.
69
+
* Use descriptive names for type parameters (e.g., TKey, TValue, TEntity) or a single T if the context is obvious.
68
70
69
-
Utilize generics where appropriate to improve type safety and code reusability.
70
-
Use descriptive names for type parameters (e.g., TKey, TValue, TEntity) or a single T if the context is obvious.
71
71
## Comments
72
+
* Write clear and concise comments using // for single-line or end-of-line comments. Use /* ... */ for temporarily commenting out blocks of code (avoid committing this).
73
+
* Use /// XML comments for documenting APIs (as described above).
74
+
* Explain the why behind non-obvious code, not just the what.
75
+
* Comment sparingly: Well-named variables, methods, and classes should make the code largely self-documenting.
76
+
* Avoid commented-out code in the final commit. Use source control history instead.
72
77
73
-
Write clear and concise comments using // for single-line or end-of-line comments. Use /* ... */ for temporarily commenting out blocks of code (avoid committing this).
74
-
Use /// XML comments for documenting APIs (as described above).
75
-
Explain the why behind non-obvious code, not just the what.
76
-
Comment sparingly: Well-named variables, methods, and classes should make the code largely self-documenting.
77
-
Avoid commented-out code in the final commit. Use source control history instead.
78
78
## Logging
79
79
80
80
Use a standard logging framework: Company Betagro uses [Specify framework, e.g., Microsoft.Extensions.Logging with Serilog/NLog, Serilog directly].
0 commit comments