Skip to content

Commit 1dcbe19

Browse files
committed
Fixing style errors
1 parent b644b1c commit 1dcbe19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/practice/bob/.approaches/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ When implementing your solution, consider the following tips to keep your code o
88

99
- **Trim the Input Once**: Use [`trim()`][trim] only once at the start to remove any unnecessary whitespace.
1010
- **Use Built-in Methods**: For checking if a message is a question, prefer [`endsWith("?")`][endswith] instead of manually checking the last character.
11-
- **DRY Code**: Avoid duplicating code by combining the logic for determining a shout and a question when handling shouted questions. Following the [DRY][dry] principle helps maintain clear and maintainable code.
1211
- **Single Determinations**: Use variables for `questioning` and `shouting` rather than calling these checks multiple times to improve efficiency.
12+
- **DRY Code**: Avoid duplicating code by combining the logic for determining a shout and a question when handling shouted questions. Following the [DRY][dry] principle helps maintain clear and maintainable code.
1313
- **Return Statements**: An early return in an `if` statement eliminates the need for additional `else` blocks, making the code more readable.
1414
- **Curly Braces**: While optional for single-line statements, some teams may require them for readability and consistency.
1515

0 commit comments

Comments
 (0)