Channel | Publish Date | Thumbnail & View Count | Download Video |
---|---|---|---|
Publish Date not found | 0 Views |
Learn what I think are the 10 best practices for C# developers. If you code in Visual Studio, I think these will help you do it better, more efficiently, and with fewer errors. If you see all 10 (plus the bonuses at the end), let me know what you think in the comments. Did I miss one? Do you disagree with one?
Thanks to Ralfs K and Julio M, here is a list of best practices along with the corresponding video times:
0:00 – Introduction
0:50 – Naming things well
7:51 – One class per file
10:18 – Use properties, not variables
12:57 – Methods should do one thing
23:27 – Just do it
28:21 – Be consistent
32:22 – Use curly braces for if statements
37:45 – Concatenating strings with $/"/"
45:37 – Avoid global variables
48:39 – Use public modifiers only when necessary
50:54 – Never trust the user (bonus)
52:24 – Plan before you build
55:31 – Closing remarks
Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.