Bookmark some tips to help you master a programming language

Tram Ho

Programming is very difficult , there is no doubt about that. If someone ever whispered to you that ” Oh, programming is very simple ” then don’t believe it! They are people who have so many years of experience in the profession so they can turn a difficult task like code into easy and easy. It is very normal if you feel overwhelmed when you are new to programming, because there is so much to learn, and you will probably forget that knowledge very quickly after learning them. This is still normal.

However, normalization does not mean that it is not frustrating and frustrating. Truth be told, learning programming can be extremely stressful if you don’t approach it with the right mindset and attitude.

Learning to code can be extremely stressful if you don't approach it with the right mindset and attitude.

So how do you remember a new language, library, or framework quickly and permanently? Please share some tips that has boomark can help you remember knowledge better, “death” status of receiving information type in one ear and out in the other. Stay tuned!

“Death” methodology of cramming knowledge

Sure, cramming knowledge is the worst way to learn programming . Think again, cramming is probably your way of learning during the time students and college students. That is the only way you know how to learn.

The more you try to cram, the less you can remember.

However, many studies have shown that the more you try to cram, the less you remember . That’s the right thing for any academic topic and is especially accurate when it comes to programming.

This judgment stems from a 2008 study by the University of California, San Diego:

Students will have better results when they organize their classes into sessions rather than when they try to cram everything into their brains at the same time.

Why is that? Most likely due to the serial position effect:

The serial position effect is a tendency for a person to remember only the first and the last part of a sequence, while the middle ones do not.

In other words: in any class, you often have the ability to remember the information learned at the beginning and end of the lesson and forget about the information in the middle of the session.

So the goal is to maximize the knowledge of the beginning and ending stages. That is why it is better to divide the class into short sessions, which will help you remember and acquire new knowledge better.

The next time you sit down to learn to code, learn only one topic at a time and have a few short breaks between each topic. However, be careful not to let that time of rest take you into a lazy state of delaying your studies.

Regular practice: Intermingle theory and practice

Another reason why cramming cannot help you remember long-term knowledge is that memory often fades over time.

The most important thing to remember when learning to code: it will not be enough if you learn a topic only once or twice. You have to review it dozens or even hundreds of times. Each review will help you inculcate that topic in your brain a little more.

This can be hard to do if you are a crammed learner. However, change that bad study habit, you will be surprised because the amount of knowledge in the mind will be kept longer through efforts to review and practice it regularly.

Using many different resources

The most difficult aspect of programming, especially for novice programmers, is the details and nuances that need to be acquired. Until the knowledge is completely accepted, you will be in a state of scratching your hair a lot.

Depending on the language, you will need to remember hundreds of syntax rules including keywords, semicolons, spaces, etc. Some languages ​​have very strict requirements, others are simpler, and some are The language has its own unique approach that the syntax you learned earlier cannot be used. All of this can be confusing, if you have no previous programming experience.

Using many different resources

Therefore, an explanation is often not sufficient to grasp a specific topic. It is important that you refer to as many documents as possible to thoroughly exploit the most resources possible. You can refer to categories such as documents, tutorials, videos, lectures, blogs … Each resource will give you more insight on many aspects of the problem.

Plus, learning programming doesn’t have a standard document . Everyone praises document A as the best way to learn X language, but it may not make sense to you. Maybe people hate Document B but when you refer to it, it’s great.

That is why you need to be willing to learn from all sorts of existing resources. Each person learns in a different way. If you are having trouble with a particular topic, look for additional resources.

It is helpful to find a mentor or a programming partner. Self-study is great, but it is better to have someone you can ask questions and get answers quickly. This can turn a frustrating few days into a simple conversation of only about 5 minutes and the problem is solved.

Re-teach the concepts after you learn them

There is a pretty good programming concept called Rubber Duck Debugging . This is a method of debugging code, but not the type that you do with IDEs, but you will take a rubber duck and explain the code to it, explain each line, talk to it when encountering cryptic code as well as venting anger. when the code has an error.

Re-teach the concepts after you learn them

The benefit of Rubber Duck Debugging is to help you understand the problem better. When dealing with a piece of code or reading a topic, you might think that you understand that already, but you’re not really sure. Only when you can explain the code yourself in a way that you understand will be considered successful.

You can do a method of explaining code to a friend, but the problem is that it’s not always free to hear you explain, so using a symbol like a duck would be more reasonable. At first it may feel silly, but you will find it extremely effective for remembering knowledge.

This method is called learning by teaching and is basically a variation of the above mentioned Rubber Duck Debugging technique.

In addition, there are many ways to do this. You can write a blog post explaining new concepts, record a video explaining something you’ve learned. Each time you do this will reinforce your knowledge and expose gaps in your knowledge to help you quickly replenish your knowledge.

The right practice makes great skill

How you practice is far more important than the amount of time you spend on practicing.

Reading is passive. Watching the instructional videos on YouTube is also passive. Listening to the podcast is also passive. As a newbie, you may be tempted to jump from one guide to another, soak up one topic after another but don’t really apply any of that knowledge in a practical way. Resist this temptation.

If you want to speed up your learning process, then you must be willing to learn in an active rather than passive manner . Positive practice will determine the end result.

The right practice makes great skill

Challenge yourself with individual projects. Think of some project ideas you want to work on. If you’re a newbie to programming, you can create a Tic-Tac-Toe or Hangman game. For seasoned developers, try to learn a new framework, or try coding a simple mobile app or web game. As long as it creates excitement, do it!

With this method you will gain two benefits.

  • First, it will maintain your focus. Studies have shown that students learn better when pursuing topics they care about. That is exactly what an individual project brings. You have an ultimate goal that you really want to achieve, so you are more likely to retain that information and knowledge.
  • Second, you don’t have the pressure to succeed. Success is great, but don’t take it seriously because it allows you to experiment and be creative. Sure you will encounter problems but will bring a lot of fun and no stress.

Relax & bookmark everything

No one can remember everything he learned. Even if you have been working with a specific library or framework for a while, it is not dangerous to naturally forget some functions or syntax.

In fact, trying to remember everything will only take your time and effort. The reference exists is also for this reason. Why cram all encyclopedia knowledge into memory when you can flip it open whenever you need it?

Relax & bookmark everything

So when to remember and when to refer?

For concepts, you should remember them. For all other things such as specific names of functions, parameter lists … it is not necessary to remember details. Keep them in your references so that when you don’t remember, you can reopen them easily.

It must be affirmed again: programming is difficult and normal if you struggle with it. Do not torment yourself if you can not remember the knowledge when learning. Go ahead and never stop learning. Hope these tips are somewhat helpful to you.

Share the news now

Source : Techtalk