[Programming] Faster way to learn programming

learn programming
I must say is very lucky to wander the night came across this article on the Blog thanhcuong.wordpress.com. It's very useful for me and hope that you feel that. And please allow authors to be shared and a bit eidt this article ^^.

5 Faster way to learn programming

Content
0. Slow but sure
1. Read the sample code
2. Running code
3. Write your code
4. Debugging tools
5. Find additional documentation

Learning programming is not something that one can do in a soon, one-way, but it is not too difficult. There are many things you can make it easier when you learn programming. The following article is a reference to the site can cprogramming.com will help us to discover the secrets to learn programming better and faster.

One of the topics to be talking to a lot of tips on learning to program is:
Do not go too fast, Please catch it before moving on. (Don’t go too fast, get it right before move on)
We often wonder why their classroom, with some friends we know in advance about some programming languages. In the first week of school is often very quick to grasp knowledge, but later they were left behind by other students. Why are they being left behind while their platform better.???

slow but sure

That is what they were going too fast, Their trails and thought I knew all but actually they rarely perform programming work. Maybe they know some of the more advanced than students foundationkhac, but this much is not enough to master the basic principles. Just like when we do math test often 8 the point is to have a fairly educated people can gain power, but some students do all 2 other difficult point and there are some basic exercises still unfinished, should result in a student not mastered the basic knowledge can do.

programming platform

Therefore, we first need to create a foundation (Foundation) good by regularly practicing the exercises to practice programming. In the course of such practice you will see the basic problem that programmers often suffer. And give yourself a good used regression to solve problems.

But do not take that as an excuse to keep “slow” than others. You never stop his training process, should not go too fast or too slow. Do not avoid the topic after you've mastered all that leads to it. By for wear with many ideas and challenges, you will have an enzyme that helps you quickly grasp the basics. The following is 5 how do you navigate the learning faster programming.

1. See the example code (Look at the Example Code)

Read code examples

When reading we often read the words on its pages, but it's programming code. When you first start learning programming, you should look carefully and try to understand each example. Before reading the explanation about the program in the book, you should try to read and understand the authors wrote the code used to do. But that's not the example when hit machine running well, but it brings us a familiar look to quit the code carefully and helped us write clearer code.

We have to write the code on how to give other programmers can read and understand it, and to look back as well as his own grasp. Hence the need to adhere to the principles, and syntax when writing code for error checking ensures simpler, the instructions written in a standard sample code is often written at the top of the book Programming, but few people pay attention to programming problems.

2. Do not just read the code examples – Please test it (Don’t just Read exam code – Run It)

run program

When you read a program guide (or a book), You often see the code example of it and said, "I learned about it, I understand it .... ". Of course, you can understand it, but you really do not understand how it works, What results.

So before reading a book on programming, you should install the compiler of the language you are learning in machines (C ++ training instance, you install Dev-C ++ or Visual C ++). Ready to run all the examples in the book or program that you are reading.

I say test here is not copy and paste and run. I recommend myself to type that code into compiled programs, because then you really force myself to go through all the code,the type of code will help you to pay attention to the details of the language syntax - the lack of control funny as missing semicolon at the end of each statement can make you downright headaches.

After typing the code into the program, Please test it. Then write some new statements into your program to see if it works watch. That will help you understand more quickly each statement how meaningful.

3. Write your own code as soon as possible (Write your own code as soon as possible).

write your code

When starting to write a program you do not know where to start, use what data structures? The allocation of how to write code? Handling What methods?... The first thing is that you use the search engine in google or other search engines to find the code you need. This is something that can make your programming thinking increasingly diminished and increasingly depend on search engines.

The solution is given in this case is that you yourself think yourself a separate algorithm. First you write it with fake codes, then the programming language used to write back. Although this is difficult and time-consuming, but it will help you get the experience really helpful, thinking abilities growing programming. Rather than go online to find the correct code.

In case your program ideas big, to write a large amount of code. Then you take a small step stool features of his program, self-assembled structure design of small programs that, and then merge them together will be a great program more complete. That program may not work well, but what you get here is the experience and independent thinking in programming.

4. Learn how to use a tool Debug (Learn to use a Debugger)

debug program

Debug is a very good tool for debugging your programs when there is an error that is the program you are running the wrong. It let you track the value of variables and their changes through each of the program code. Most powerful debugging tools could be integrated in the Microsoft products such as Visual Studio (Currently the visual studio 2010). Debug tools to help us understand your program more, and just what we need to know when writing programs.

Debug a program that can help you quickly respond to what you are doing as an example below.

int main() { 
	int x, y;
	if( x > 4 ) { 	// <— Giá trị của X ở đây là bao nhiêu? 
		y = 5; 		// <— Dòng code này thực thi như thế nào? 
	}
}

And the last tip is to debug: when you first learn about debuger, maybe it will make you lose a lot of time when you debug your program. But when you grasp the knowledge of debugging it will give you a great benefit in saving time when debugging programs. I believe that each of you can find out for themselves how to debug a program effectively, because it will follow throughout your programming career.

I often think that other students do not want to use the debugging tools (may be the same as I did not know at first). The students have challenged themselves in the search for his mistakes in the program. So when you have determined the path programming, Learn to use a debug tool, it will bring you many practical benefits than you think.

5. Search for add other material resources (Seek our more sources)

When you do not understand something, Internet is a huge amount of information with which you seek to. But there are articles on the subject that you want to find, then the author is sketchy, or may be wrong. Therefore you must be careful when using the Internet information on the program of minh.Ngoai out finding a book with detailed explanations to help you quickly grasp the issues more.

knowlege

You can also participate in the programming forum (eg programming c, c , c #, there Congdongcviet.com forum, Vietsource.net), you do not understand a problem that you can post to the forum members for your help. If he has the ability to carry you up the foreign forum will have many members stand there looking for information and answers to help (codeproject.com, cprogramming.com, cplusplus.com ...). Note when asked on the forums you have a brief question, focusing on content description issues and problems that you are experiencing, you'll get better answers.

The before each session to prepare a list of questions about the obstacles that you encounter on a small notebook for up to ask a teacher or a friend is a very useful work, it will help you acquire more, and it shows that you are a human being progressive, eager to learn.

Ultimately, the crucial, School groups. Group lessons will help you progress faster, enhanced ability to communicate with friends and colleagues later. When working group will write those larger programs and convincing more users. I advise you to never holding out his work on.

Hopefully these things can help us run faster in the world of programming is always changing in the eyes!