When programming beginners receive training

Purpose of this theme

When I recently got a job at an IT company, I was given training at the same time as the beginners. In that process, I discovered something like a way of thinking that beginners tend to fall into, so why not think this way while looking back on the past, thinking that you used to be like that? I would like to make a suggestion. Well, it's just a suggestion, so if you have any problems, please consult with the seniors around you. I'm sure they will teach you kindly.

Study in a motivational way

To be honest, I think programming is the hardest thing to start learning. There are a lot of things like spells written in the teaching materials, and even though I should have copied the spells in the teaching materials, for some reason I throw an error. My motivation goes down and it's hard to study.

Therefore, when studying, please be aware of raising your motivation. For example, you can get a reward every time you make a break, or you can study while writing your favorite music. If you feel calm when you do it in Starbucks, you can do it in Starbucks, or you can do it in your own room.

Step by step to advance learning

Suddenly trying to master all of the language is not very good for mental health. Let's do it step by step steadily. In almost any language

--Conditional branch (if) --Repeat (for) --Array (like hoge [])

If you can play all the way, you should be able to write the basics (fizz-buzz, rock-paper-scissors, etc.). First of all, it's a good idea to use the above syntax and write various code of your own. This alone gives you a glimpse of the fun of the program.

From there, for example java

I think it would be good to develop it.

Don't force yourself to remember the code

I think the important thing in step-by-step learning is not to force yourself to learn the syntax. This is especially true for new graduates, sometimes even trying to remember the code by copying sutras.

I'm not saying it's a waste of effort, but I think there are probably few programmers doing that. You don't have to worry too much because it's something that you naturally remember while writing a lot of code.

What to do if you don't understand the syntax? What are you using to read this article now?

Write anyway

This may seem inefficient and is a shortcut. You can't imagine a program unless you get used to how it behaves when you use it. So don't be afraid to make mistakes, just write it down and give it a try, or do something with your own mind.

* Know how to stop the software that writes the program

Some beginners may unintentionally generate an infinite loop. At that time, if I don't know how to stop it, I get impatient and sometimes hesitate to try various things. So, first of all, if you know the button to press this when you are in trouble, you can try various things.

Try to do the task multiple times

This is the manner in which the amount of the issue is not too much, to recommend to people who stick the prospect of time.

By repeating it multiple times, you will acquire what you want to acquire in the task, and what you acquire there will definitely be useful for the next role.

There are many ways to do this, but for example, I would like to suggest the following.

  1. Copy and execute while looking at the code of the teaching material (know the result)
  2. Write by yourself while referring to the textbook (write while thinking about how to output the result)
  3. Examine only the parts that you do not remember with detailed syntax (do not use textbooks) and write the others yourself
  4. Think for a moment if you can write what you are writing in a shorter and easier-to-understand manner (you don't have to think carefully)

Alternatively, it may be a good idea to look back at the old code as the learning range progresses. For example

Sample1.java


hoge[0]=1;
hoge[1]=2;
hoge[2]=3;
.......

Wouldn't it be easier to write what I was doing? ,And. (No, I admit that the above code has some quirks, but it was something I actually experienced when I was a college student teaching friends. I think there are beginners.)

Don't hesitate to ask experienced people what you don't understand

While programming, I'm sure you'll come across this kind of situation, such as if you don't know what you're looking for, or if you don't know what you're not sure about, but in such cases it's best to ask an experienced person. If you are in a lecture, you can ask the instructor, and even if you are studying by yourself, you can ask someone who has experience in the same class. Of course, when the other party is busy, you can't expect immediate response, but I think he will throw the code to slack and say something like that.

Be sure to show the written code to experienced people

By the way, please be sure to show the self-confidence code you wrote to experienced people. The content of algorithms and codes becomes shorter, easier to understand, and easier to read as you get closer to the advanced level, and there are implicit rules depending on the language. (For example, whether to write variable declarations at the beginning) Then you should upgrade your code more and more.

Summary

Actually, there are things I want beginners to be aware of, such as variable names and comments, but I think that if you are aware of this, you will be able to get the hang of studying programming yourself. As I say many times, it's the hardest thing for beginners at the beginning, so when you're motivated, you can skip it, and I think it's a good idea to consult with others. That way, if you learn to some extent, you will be able to make various things and it will be fun.

Recommended Posts

When programming beginners receive training
What is object-oriented programming? ~ Beginners ~
Recommended learning method for programming beginners
Questions when Vimmer writes programming (brackets)