‫Welcome back.
‫In this video, we are going to have a look at some naming conventions and also at coding standards.
‫So regarding the class names, you should use Pascal casing, which means, for example, if you have
‫a class which is called client activity, then you should use a capital letter at the beginning and
‫then a capital letter at the second word.
‫So these are two different words.
‫It's called client and then activity.
‫And each new word should be written with a capital letter, but they should be written together.
‫So here class names like client activity.
‫The same thing goes for method names.
‫Method names like calculate value.
‫All right, so it's the same approach, capital C and then capital V for value, then use camel casing
‫for arguments and or for method arguments like this arts.
‫So here you would have, for example, method arguments like first number.
‫And the same goes for local variables.
‫Like item count.
‫Next, try to avoid abbreviations.
‫So for example, if you have something like user control, not use R, CTR or something like that.
‫So use user control instead of user CTR for variable names or in general.
‫Actually, it's in general.
‫So you shouldn't use abbreviations like that because it's much easier to read and it really makes sense
‫to have code that's easy to read, and that starts with the right naming for variables, methods, classes
‫and so forth.
‫There are of course exceptions for something like XML, FTP, URI and those kind of things don't use
‫numbers at the start of variables.
‫So for example, if we have three or it's an integer, three cars is five.
‫So that's something you cannot do.
‫So don't use it at the start.
‫What you can do is you can use it at the end.
‫So cars three, you could use that, but you cannot use three cars.
‫Then regarding underscore, try to avoid cars, start engine for example, try to avoid the underscore
‫and exceptions are an underscore at the beginning.
‫So if you want to have an underscore at the start of your variable name and you use that for log in
‫date or something like that, that would make sense.
‫All right.
‫But then it would not be an integer.
‫Next, try to avoid the capital string capital I and T or int capital boolean.
‫There are predefined type names like string int pool which are just for that.
‫So of course you can go ahead and use string or end 3932 or Boolean.
‫So the classes, but it's really highly preferred to use it that way.
‫So that's more consistent with the Microsoft DOT net framework and makes code more natural to read.
‫Also, by the way, for classes, use nouns or noun phrases to name classes.
‫So for example program or employee or business date or something like that.
‫So always try to use nouns for classes because that's what they usually should be.
‫They are for objects and objects usually are nouns.
‫Methods, however, usually are actions so that you can use, of course, verbs.
‫All right.
‫So I'd say those are the most important ones for now.
‫And if you want to know more about coding conventions in C-sharp, then I recommend to go to do factory
‫dot com slash reference slash C-sharp coding standards.
‫And here you'll find some great well, a great article which is just about that.
‫So he goes into a little more detail on that and he brings up examples which are too far away for us
‫yet.
‫So we have seen what classes are, we have seen what methods are and so forth.
‫But he also goes into things like enemies and interfaces and those kinds of things which we haven't
‫covered yet, but it will come in handy as soon as we get there.
‫So we will use enemies and interfaces later on in the course and then it will of course make sense to
‫also have those coding standards in mind.
‫But I'm going to take care of that.
‫And while creating the course, of course.
‫So I'm going to show it to you later on as well.
‫All right.
‫So please check out this website he's done a great job at.
‫Well, writing it down pretty beautifully, I'd say it's quite easy to understand and read.
‫And yeah, in the next video we are going to go ahead and check out how to convert a value from one
‫type to another or even how to cast from one type to another.
‫So see you in the next video.