Best Coding Practices and Code Conventions: Why Are They Important?

preview_player
Показать описание
Best Coding Practices and Code Conventions: Why Are They Important?

Today, we'll talk about best practices when it comes to coding and the importance of these code conventions. If you want to know more about what coding conventions means and why they are relevant to your programming journey, then keep on watching.

This video is brought to you by The Learn Programming Academy's Learn C# for Beginners Crash Course:

My name is Tim Buchalka and I have put together a series of videos which I call the "Programming Tip of the Day". And basically, each video goes through talking about some of the pitfalls and things that you'll need to overcome to succeed as a programmer, things like overcoming frustration and keeping yourself motivated.

In this series I will also answer common questions about choosing a programming language to learn, questions about your career path and things of that nature. Now there's a lot of other things as well that I'll cover in these videos and I'm also opening the lines for you to tell me what you want me to cover.

Now I've been a programmer for over 35 years so I think I'm really qualified to answer a lot of these questions. So if you do have a question, pop the question in the comments section of this video and I'll do my best to address that in a future video.

If you're ready to look at the next tip, click on the link below to get redirected to the playlist for all programming tips:

If you're interested in coding specific programming videos, click on the link below to get redirected to the playlist for programming videos:

Consider subscribing by clicking on the Subscribe button right below the video.

Where to find out more about me:

My Video Courses

Twitter

Facebook
Рекомендации по теме
Комментарии
Автор

Watch Tim's Free Learn to Code Course on Youtube!

TheLearnProgrammingChannel
Автор

To give a brief breakdown on official naming conventions:
Python: By far the easiest. Everything, no matter what it is, should all preferably be written in snake case (For example function_name or variable_name), the only exception is class names which should be one word long and start with an uppercase letter
Java: Lower Camel Case for normal names and variables, all upper case with underscores for enums or static final variables (methodName is an example of lower Camel Case, STATIC_FINAL_VARIABLE is all uppercase). Classes and File names are all Pascal Case (Example: ClassName)
C#: Everything except variables and static final/enums is Pascal Case, while variables are lower Camel Case and static finals/enums are all upper case
C: Ooh boy, this is a mouthful. Macros and consts are all uppercase, methods, file names and variables are all preferably Hungarian style abbreviations of the full name and should try to be only one word long, but if it cannot be lower Camel Case or every letter lowercase is preferred
C++: Very similar to C
PHP: Exactly the same naming convention as Java
JavaScript: Same as Java but static finals don't use all uppercase and instead are lower Camel Case like everything else

theshermantanker
Автор

So there are several different types of Programming Best Practices/Code Conventions/ out there like you mentioned:
1. General Conventions
2. Code/Coding Convention
3. Company Conventions


Then what are the following words? Alternative names of the above three? Since different sources use different names for similar concepts. Please explain?

- Coding Standard
- Programming Practices
- Coding rules
- Coding guidelines

- Coding Style
- Style Guide
- Programming Style

eyobbekele
Автор

Many thanks Tim. Yes, it’s important to work within the framework set forth in the company and its application. You can get a reputation of being ‘out there’ if you work by your own methodology. If you’re employed by a company to work in a Team you gotta do the teamworks thing. Else don’t get paid 😆 having said that, if you want to work by your own approach and implement your own method you need to be a senior manager or aka ‘The BOSS’ it sucks buts that’s life.

danzolion
Автор

Thanks so much for this amazing video!!!!

Geminis
Автор

Please make a video on Go programming language

primecoding