.NET Coding Best practices - Series 1
4.2 (85 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
3,157 students enrolled
Wishlisted Wishlist

Please confirm that you want to add .NET Coding Best practices - Series 1 to your Wishlist.

Add to Wishlist

.NET Coding Best practices - Series 1

Boost your coding level
4.2 (85 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
3,157 students enrolled
Last updated 4/2017
English
Price: Free
Includes:
  • 38 mins on-demand video
  • 12 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Write .NET code with best practices
  • Understand why we use certain code instead of another
  • Develop more readable and maintained .NET applications
  • Develop faster applications with memory and cpu friendly code
  • Learn how to build your own error logging system.
View Curriculum
Requirements
  • Basic to intermidiate C# or VB.NET Level of programming
Description

This course aims to teach beginner to intermediate .NET programmers some of the best practices that they can use to write more efficient and accurate code, that will make their application more readable , faster , and efficient.

This course covers the following topics : 

  1. .NET Naming standards :
    1. Pascal and camel casing.
    2. Some General coding recommendations (Variable names,comments,spaces ...).
    3. Some Good programming practices (Number of lines,Method job,Types...).
  2. Working with Strings :
    1. Understanding Stringbuilder.
    2. Working with String Comparison.
    3. Explain String.empty
  3. Handling Exceptions :
    1. Log exceptions ( Event Viewer, SQL Database).
    2. Handling exceptions with loops.
    3. Handle Logic with exceptions.
  4. Miscellaneous  :
    1. Avoid Compiler warnings
    2. Using statement
    3. Avoid Global variables

On each topic i implemented a coding example to make the concept clearer.

also with each lecture i attached the source code of each example.



Who is the target audience?
  • .NET Programmers
Compare to Other .NET Courses
Curriculum For This Course
+
Introduction
1 Lecture 00:59
Introduction
00:59
+
Naming Conventions and Standards
3 Lectures 08:36

In this lecture i will explain the main two types of casing 

pascal and camel casing , and i will show how to use each in your code.


Pascal and camel casing
03:11

Here are some general recommendations when writing your code :

  1. Do not use abbreviations , use meaningful names
  2. Do not use single character variable name except for variables inside loops.
  3. Comments should be in the same level as the code
  4. Use one blank line to separate logical groups of code.
  5. The curly braces should be on a separate line and not in the same line.




General recommendations
02:37

Here are some Good programming practices that you can follow : 

  1. Do not use abbreviations , use meaningful names
  2. Do not use single character variable name except for variables inside loops.
  3. Comments should be in the same level as the code
  4. Use one blank line to separate logical groups of code.
  5. The curly braces should be on a separate line and not in the same line.


Good Programming Practices
02:48
+
Working with Strings
3 Lectures 09:21

In this lecture you will understand what is stringbuilder and how it differs from simple string,and i will show you a sample application that shows you the difference from a performance view.

Using String builder
03:17

In this lecture i will explain what is the best way to compare strings, and what are the different methods to do so.

String Comparison
03:35

String.empty vs "" 

is a topic that have been argued a lot on the internet , we will try to show you if there is any difference between the two.


String.empty
02:29
+
Handling Exceptions
3 Lectures 10:22

in this lecture i will explain the importance of logging exceptions in your application and what are the different approaches to to so. 

in the lab , i will show you how to log your exceptions to the event viewer and how to build your own logging system with sql database.


Log exceptions
06:23

In this lecture i will explain how to handle exceptions with loops

Handling exceptions with Loops
01:48

In this lecture you will understand how to avoid the try catch excessive performance overhead, by trying to avoid the the exceptions.

Application logic and exceptions
02:11
+
Miscellaneous
3 Lectures 08:24

In this lecture  i will explain the importance of avoiding the compiler warnings.

Avoid Compiler warnings
02:30

Disposing unused objects is very important while writing your code, in this lecture you will understand how to use the "Using statement" to ensure objects disposal.


Disposing unused objects - Using Statement
02:24

In this lecture you will learn the overhead of using excessive global variables and how to avoid by working with the app.config file.

Avoid Global Variables
03:30
About the Instructor
Hassan Aboul hassan
4.1 Average rating
142 Reviews
8,229 Students
6 Courses
Computer scientist

The most thing that I don't love to do, is talking about myself, but here in udemy I am obliged to do, I fell in love with computers when I was 8 yeas old, I made a full windows installation at 9.I tried my best to learn topics related to computers as much as I can, I learned programming, network and server administration, Hacking and security, computer maintenance, virtualization, Linux and even adobe and Autodesk graphic and design products.

All my life is the computer , until the day I am writing this biography, I have more than 8 years experience in Network and server administration, more than 6 years in .NET, JAVA, C++ Programming, and of course Database design and administration.

I used to teach these materials for 4 years in my company until I decided to move  my experience to the world, I teach several free courses on youtube, and now I am releasing high-quality courses here in udemy
Besides that, I studied psychology, philosophy, and cosmology.Also, I know 3 languages, English, Arabic & Persian.


I hope that you will learn a lot out of my courses.
And I will be very glad to help anybody, just contact me I will be with you.


Qualifications and education

★ BS in computer science

★ Masters in computer science

★ MCSA 2003-2008-2012-2016

★ MCSE 2003-2008-2012-2016

★ VMware VCP

★ VMware VCAP

★ Cisco CCNP

★ A+,Network+,Security+,Server+

★ CEH

★ C#,VB,ASP,C++,JAVA 

★ SQL Server administration