Skip to content

Commit f51d849

Browse files
committed
Avoid code smells and improve readability in method bodies.
1 parent e8711b9 commit f51d849

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

txt/prompt.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
We don't use blank lines inside method bodies because they reduce code readability: https://www.yegor256.com/2014/11/03/empty-line-code-smell.html
2+
3+
We don't use comments inside method bodies, because inline and between-line comments negatively affect readability.
4+
5+
We avoid compound variable names, as they make the code harder to read; we prefer single-word nouns for variable names: https://www.yegor256.com/2015/01/12/compound-name-is-code-smell.html
6+
7+
We design our tests to contain only one assertion.
8+
9+
Each test ends with an assertion—there is no code after it.

0 commit comments

Comments
 (0)