From the course: C# Best Practices for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Project setup overview - C# Tutorial
From the course: C# Best Practices for Developers
Project setup overview
- [Instructor] In this chapter, we'll be covering conventions for naming and handling classes but in order to do so, I wanted to start by having us set up our project from scratch. Now, projects can be set up in a variety of ways, depending on what makes sense for your organization. And for our scenario, we'll have a talent agency for actors called Prestige Talent. And knowing that, a general approach can be something like this, with the company name followed by the technology. So, as you can see, in the UI layer we have the company name, Prestige, and it's fine to just have it short, it doesn't have to say Prestige Talent, especially if it's going to take all this extra real estate. So, for a Windows Presentation Foundation, Prestige.wpf, that works perfectly. Likewise for web. Business logic layer, Prestige.biz. Data layer, as you can see, .data. And for other utilities, such as an email service or a login, those can go under something like Prestige.com. So, having said that, let's…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Project setup overview1m 13s
-
(Locked)
Set up the business layer2m 18s
-
(Locked)
Running a unit test3m 13s
-
Class naming conventions and standards5m 2s
-
(Locked)
Field and property naming conventions4m 22s
-
(Locked)
Using constructors3m 9s
-
(Locked)
Unit testing constructors4m 30s
-
(Locked)
Namespaces2m 48s
-
(Locked)
Static classes3m 10s
-
(Locked)
Unit testing static classes4m 20s
-
(Locked)
Using a singleton2m 6s
-
(Locked)
-
-
-
-