πŸ‘‰ Think twice before commenting your code πŸ‘ˆ

Eliminating the need for a comment is a great use case for Local Functions feature of C# 7 πŸ‘Œβ€οΈ

Your code doesn’t have to start off as perfect but you should be making the intent πŸ€” clear for the future readers of the code, including yourself!

Using comments to express that intent is a slipshod way of achieving the goal since keeping comments in sync with code is HARD due to the lack of static analysis πŸ”¬

Tugberk UgurluΒ·
1 min
Β·
7 cards

Read β€œπŸ‘‰ Think twice before commenting your code πŸ‘ˆβ€ on a larger screen, or in the Medium app!