Language selection
Although every programming language is worth learning, novice programmers (who want to end up making decent money from it) usually go to two extremes:
-Learn a very complex multifunctional language;
-To learn a 200-year-old language that no one needs, which the language does not dare to call the language.
It is best to start learning simple procedural programming in C, C ++, Python (although such frivolity when working with data types can interfere with learning other languages).
In principle, you can start with Pascal, it clearly shows and understands the accuracy of the system and the elementary understandable structure of data types, but nowadays, it is useless and as a result you will have to change the tool.
Number of languages
Knowing many languages means being versatile, knowledgeable, and you can always find a job, but if you start learning a new language before you have at least 70% understood the old one, or learn a couple of languages at once, you can forever bury yourself as a coder.
In addition to the fact that you will get a bunch of incomprehensible things several times more, and you will also confuse, mix and forget old languages, which in a short time destroys your thinking as an IT person.
Giving preference to chips and graphics over algorithms
Everything needs to start with algorithms! Yes, of course, the progress of immersion in coding is much slower, but better.
Whatever the possibilities of the language, engine or something else, in complex projects, algorithms are the main thing.
Using unpromising inappropriate options
It’s better to immediately decide what step you are drawn to (game development, software development, websites, server programming …), because basically, to move from one topic to another, this is not a transition from Windows Aero to Windows – a simplified style.
Very often you have to change your thinking. It is worth choosing a place of study right away.
Failure to adhere to coding rules
Many people think that the rules listed below are stupid and unimportant, but then they suffer. Violation of the rules leads to unreadable code.
Hierarchy indentation matching in code
Compare the same piece of code:
void Sqr(){
x = x + new Vector3(0f,1f,0f);
if(x.y>3f){
x = Vector3.zero;
}
}
and
void Sqr(){
x = x + new Vector3(0f,1f,0f);
if(x.y>3f){
x = Vector3.zero;
}
}
The correct sequence of writing brackets, begin / end and tags
On the example of HTML tags:
1)<p>
2)<p></p>
3)<p>Hello!</p>
and
1)<p>
2)<p>Hello!
3)</p>
The trick is that instead of “Hello!” usually a huge pile of code and everyone forgets the third step.
Try very hard to group everything
For example, in the case of coding in C++, C, C#, Python, Pascal, JavaScript, Java, etc. Really, it is necessary to group everything in functions.
Firstly, it is easier to read the code, and secondly, the code is made more universal (one function can do only one thing, and many functions give a lot of possibilities).