If you are a coding beginner, do not quickly jump into coding

Francabel
3 min readApr 7, 2020

--

I’ve learned coding (JavaScript) for five months, but I started from scratch at least 5 times. Why? Because I jumped into coding too quickly. After the introduction of JavaScript, like variable, operator, data type, I started to code from imitating someone’s code. The only thing I learn is copy, not code. So, I messed up.

In the second month, I guessed maybe other material would be more interesting and well-understanding. So, I switched to other online courses and learned from the begin. Variable, operator, data type, function, etc. I thought I could easily solve the JavaScript exercise because I studied very hard day to day. However, when exercises coming, my mind has gone blank totally. I knew I failed second times. Then, the same situation happened over again, and it is very disappointing.

Until last month, I watched a video from Lidemy which is a coding Bootcamp from Taiwan. The author, Huli, explained why beginner should not jump into coding too quickly. The video is thought-provoking really. So, today, I would like to share my experience for people who want to be a programmer.

Why and how do we learn coding or programming?

Coding is not about typing code. It is about logical thinking and problem solving. In other words, programming language is just a tool which can make your solution come true. The key of solving problem is you, not the language. So, I highly recommend beginners can follow these three steps which I learned from the video. Here is an example (Narcissistic number):

“Narcissistic Number is a number that is the sum of its own digits each raised to the power of the number of digits. Please find the Narcissistic number between 1 to 200.”

  1. Write down your thought

When you see a new exercise, I believe there are lots of thought comes into your mind. But, don’t worry, write them down. For example: the range is 1 to 200. I need a for-loop to run 1 to 200. And, maybe I need to transfer 153 to string, so that I can pick each digit via another for-loop. And in the second loop, do the addition for cubed number . Then, compare the number of first loop and second loop. If result is same, output the answer.

2. Write the pseudo code & Transfer the pseudo code to code you are going to use

The above picture is a comparison between pseudo code and real code. The left-hand side is pseudo code and the right-hand side is the code which is in VS code.

3. Use the DevTools and use debugger to figure out how the code runs

After you finish the code and output correctly, please type debugger on the very top of your code and use the DevTools (press F12 on Chrome) to learn how the code runs.

I believe after some practices following these three steps, your coding knowledge and skills will grow faster than you thought. For me, learning how to code is not just for getting a job, instead it is an attitude for life. Believe what you do and do what you believe.

Thank you for your time!

--

--

Francabel
Francabel

Written by Francabel

從業務轉換跑道,目前正朝著前端工程師邁進,寫code是生活,是工作,也是態度。轉職是一段旅行,享受旅行的過程,並指引到夢想處

Responses (1)