Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 2, 2022 04:11 pm GMT

Advice I would give myself if I was learning to code today!

My journey as a programmer started when I chose to pursue Software Engineering as a major after completing my High School Education. Since then, I have been programming for the better part of the last 4 years in various programming languages starting from Python, Java, C++, and recently JavaScript.

It is important to mention that I had literally never written a single line of code before starting my bachelor's. In fact, I don't remember taking a computer course throughout my middle and high school years. Suffice it to say, I was not like those students in my class, who had been coding as a hobby for a long time, or those who had already published entire Apps to the Play Store.

Thus, in all aspects, I was a complete Newbie. Therefore, I also had some misconceptions about programming and coding in general. It took me the better part of the last 3-4 years to understand my negligence, and realize how mistaken I was. Thus, I am writing this blog post to help others who are new to programming like I was, by sharing the things I wish someone had told me when I was learning to code.

Enough talking, let's dive into it, shall we?

1. Fundamentals are everything

As a new programmer, your number one priority should be to master the fundamentals. By this I mean, you should have a grasp over concepts like variables, data types, data structures, conditionals, loops, algorithms, etc.

The reason being, once you have sound knowledge of the fundamentals, you can learn any
programming language in a matter of days. At the core, all programming languages generally have the same concepts and a good knowledge of the fundamentals will help you regardless of the programming language you choose to pick up.

I can say with my own example that once you know the basics, picking up a new language will be a piece of cake. I recently got the opportunity to try out Flutter for a project. Flutter uses a programming language called Dart which is developed by Google. Since I was familiar with the basics of object-oriented programming in Java, the transition to Dart was essentially painless as it uses the same concepts underneath albeit with a slightly different syntax.

Thus, if you take away one thing from this post, it should be to concentrate on sharpening up your fundamental programming concepts.

2. Making mistakes is totally OK

Fear of making mistakes is another big reason people fail at programming. I too was in the same boat. I had the notion that a good programmer knows the exact syntax of the language in addition to writing the perfect code that runs the first time around. This notion hindered my ability to learn new things because I was so afraid of making mistakes that I never even tried new technologies.

This concept of mine was blasted to smithereens in a very short span of time. Writing clean and elegant code that runs on the very first try and produces the correct output is nothing short of a fantasy. Even the most experienced developers cannot write fully functioning and error-free code on the first attempt. The sooner you realize this, the faster you will learn from your mistakes.

Errors are an essential part of programming. The sooner you feel comfortable with seeing red output on the screen screaming at you, the quicker you will master programming. Some of the best programmers I know or follow still spend a considerable amount of time-solving simple errors and looking up syntax that they cannot remember.

So, take it easy and try stuff out without worrying about the results - the worst thing that can happen is your computer screaming at you and who cares about that, right?

3. College ain't teaching you everything

By far the worst notion you could have as a new programmer is expecting the university or college to teach you everything you'll be needing on your job.

Universities follow a fixed curriculum, and while certain courses have greatly benefited me - many courses were not relevant to what is required in the field (not even close).

For example, most universities don't teach you about the latest trends in web development in or about tools like Git, Linux etc. which are widely used throughout the industry.

So, what can you do?

Develop a habit of learning on your own.

In my case, the entire knowledge I have about web development is through my own efforts and learning. (this ranges from the basic stuff like HTML, CSS to more advanced frameworks/libraries like React and Node.js).

While it may be true in other fields of engineering, the programming landscape changes so quickly that educational institutions can't keep pace. Learning to code is a continuous process and you must keep practicing and expanding your skillset if you want to stay relevant in today's competitive market.

And the best thing is the abundance of online resources available to help you in this regard. If you want to learn a language or framework there are probably a lot of tutorials and articles that you can consult. So, it's a matter of dedication and hard work which you are willing to put in, and you can master a skill in no time.

4. Tutorial hell is your worst enemy

Another problem that new programmers face is the tendency to fall into Tutorial Hell. Most of us resort to coding tutorials on YouTube and Udemy courses to learn any new language, framework, or skill. But these courses have a critical flaw that many of us don't realize.

As you are following along with your instructor, you might feel very confident and even feel like you're getting everything. But as soon as you finish a course and try to develop something on your own, you'll feel completely blank and have no idea where to even start. This has happened to me many times and it's a very sinking feeling.

The problem with these tutorials and courses is that they teach you how to build a specific application. What they don't teach you is how to develop the mindset to solve a particular problem. Additionally, you also don't understand why the instructor is using a particular framework or why he/she is writing a piece of code in that way and not the other way round.

Thus, it just becomes a case of copying code that the instructor is writing and not understanding the reasoning behind it. So, while you may finish the course and build the application yet, you will be unable to code something from scratch on your own.

Instead, the best way to benefit from these courses is to modify the code after you have finished the project. Try to break the code and change things around. Experiment with a different approach to implementing a specific feature. At the very least, try to add some functionality on top of the course project. By adopting this approach, you will learn why things work the way they do and understand the purpose behind the code, instead of merely copy-pasting it as your own.

5. Jack of all trades master of none!

Finally, the last bit of advice I will give to upcoming programmers is that you don't have to learn everything under the sun. When you first start to code, you quickly realize that there are WAY too many fields that you can choose from and it can be quite overwhelming to decide what you want to do.

Let me give you a taste of what I am talking about. Let's say you are interested in web development. You can choose to become a frontend developer in which case you'll be learning technologies like HTML, CSS, JavaScript, and probably a JavaScript framework like React.js, Angular.js, or Vue.js. Not to mention the plethora of CSS libraries like Bootstrap, Tailwind CSS, etc. and concepts like responsive design, cross-browser compatibility and and and....

Do you see where I am getting at? And this is just one field.

Maybe you fancy Mobile Development or perhaps Game Development. You might be into Machine Learning or Artificial Intelligence and work with data analysis and training complex neural networks. Or you might want to indulge in the field of cybersecurity and work on ethical hacking (at least I hope so) and so on.

Suffice it to say, whatever you want to do there is a whole world built around it. My advice to you is to choose what you want to specialize in and go all out in it. There is a great demand for talented individuals who are great developers/programmers in a specific field - instead of those who know a bit about everything. So, experiment to find what you like the most and then focus on mastering the skills needed in that field and you'll be doing better than most.

Let's sum it up

Thus, these were some of the things I learned since I started to code. I am in no way an expert yet, this is the essence of what I have personally experienced in my 3-4 years of programming. I am extremely happy with my decision to choose this field as my profession and I want to give back to the community as much as possible.

For all the new programmers starting, focus on fundamentals, continue learning in your time, and don't forget to have fun!

That's all folks!

If you have any questions feel free to ask me in the comments and I will do my best to answer them. Till then, thanks for reading, and happy coding!

Cover Photo by Kevin Ku on Unsplash


Original Link: https://dev.to/fahadimran117/advice-i-would-give-myself-if-i-was-learning-to-code-today-1lkj

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To