Top 10 C# Practices (Plus Bonuses)

Top 10 C# Practices (Plus Bonuses)

HomeIAmTimCoreyTop 10 C# Practices (Plus Bonuses)
Top 10 C# Practices (Plus Bonuses)
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
To sign up for announcements about new videos and exclusive discounts, fill out this form: https://signup.iamtimcorey.com/ (your email will be kept safe and you will not be bombarded with spam).

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.