Skip to content

Commit 2267617

Browse files
authored
Merge pull request #50949 from wwlpublish/8abf75492a2a474cb9202869f1673d1c21cd1e3d52641905e2d3435dc72bd539-live
Modules/M05-create-readable-code-using-conventions-whitespace-comments-c-sharp
2 parents 833e00e + 07c5e5d commit 2267617

15 files changed

+45
-26
lines changed

.openpublishing.redirection.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48633,6 +48633,16 @@
4863348633
"source_path": "learn-pr/sqlserver/sql-server-2022-performance-enhancements/8-summary.md",
4863448634
"redirect_url": "/training/paths/get-started-querying-with-transact-sql/",
4863548635
"redirect_document_id": false
48636-
}
48636+
},
48637+
{
48638+
"source_path": "learn-pr/wwl-language/csharp-readable-code/5-challenge.md",
48639+
"redirect_url": "/training/modules/csharp-readable-code/5-exercise-challenge-improve-code-readability",
48640+
"redirect_document_id": false
48641+
},
48642+
{
48643+
"source_path": "learn-pr/wwl-language/csharp-readable-code/6-solution.md",
48644+
"redirect_url": "/training/modules/csharp-readable-code/6-review-solution-code-readability-challenge",
48645+
"redirect_document_id": false
48646+
}
4863748647
]
4863848648
}

learn-pr/wwl-language/csharp-readable-code/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: "Introduction"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/2-choose-variable-names.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Choose variable names that follow rules and conventions
44
metadata:
55
title: Choose variable names that follow rules and conventions
66
description: "Choose variable names that follow rules and conventions"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/3-exercise-comment-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Create effective code comments
44
metadata:
55
title: Exercise - Create effective code comments
66
description: "Exercise - Create effective code comments"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/4-exercise-use-whitespace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Exercise - Use whitespace to make your code easier to read
44
metadata:
55
title: Exercise - Use whitespace to make your code easier to read
66
description: "Exercise - Use whitespace to make your code easier to read"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/5-challenge.yml renamed to learn-pr/wwl-language/csharp-readable-code/5-exercise-challenge-improve-code-readability.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: Exercise - Complete a challenge activity to improve code readability
44
metadata:
55
title: Exercise - Complete a challenge activity to improve code readability
66
description: "Exercise - Complete a challenge activity to improve code readability"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
1111
ms.custom:
1212
- N/A
1313
durationInMinutes: 7
1414
content: |
15-
[!include[](includes/5-challenge.md)]
15+
[!include[](includes/5-exercise-challenge-improve-code-readability.md)]

learn-pr/wwl-language/csharp-readable-code/6-solution.yml renamed to learn-pr/wwl-language/csharp-readable-code/6-review-solution-code-readability-challenge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ title: Review the solution to the improve code readability challenge activity
44
metadata:
55
title: Review the solution to the improve code readability challenge activity
66
description: "Review the solution to the improve code readability challenge activity"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit
1111
ms.custom:
1212
- N/A
1313
durationInMinutes: 4
1414
content: |
15-
[!include[](includes/6-solution.md)]
15+
[!include[](includes/6-review-solution-code-readability-challenge.md)]

learn-pr/wwl-language/csharp-readable-code/7-knowledge-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Module assessment
44
metadata:
55
title: Module assessment
66
description: "Knowledge check"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/8-summary.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Summary
44
metadata:
55
title: Summary
66
description: "Summary"
7-
ms.date: 08/16/2024
7+
ms.date: 06/16/2025
88
author: wwlpublish
99
ms.author: cahowd
1010
ms.topic: unit

learn-pr/wwl-language/csharp-readable-code/includes/2-choose-variable-names.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Conventions are suggestions that are agreed upon by the software development com
2020
- Variable names should be one or more entire words appended together. Don't use contractions because the name of the variable may be unclear to others who are reading your code. For example: `decimal orderAmount;`, NOT `decimal odrAmt;`.
2121
- Variable names shouldn't include the data type of the variable. You might see some advice to use a style like `string strMyValue;`. It was a popular style years ago. However, most developers don't follow this advice anymore and there are good reasons not to use it.
2222

23-
The example `string firstName;` follows all of these rules and conventions, assuming I want to use this variable to store data that represents someone's first name.
23+
The example `string firstName;` follows all of these rules and conventions, assuming you want to use this variable to store data that represents someone's first name.
2424

2525
## Variable name examples
2626

0 commit comments

Comments
 (0)