If you've always wanted to learn to code, but you're worried about the steep learning gradient, follow these tips to help you break into this field.
11 sept. 2019 • Durata lecturii: 5
A fost actualizat la 7 feb. 2020 de Ruchi B.


So, you're new to coding? Whether you’re learning code for fun or as a means to an end, you’ll be full of questions about it. As someone who was new to programming once, we’ll try to offer our views on how best to learn your first programming language. We hope you have a fun time discovering how to code!
Even before you choose a language to learn, you should grasp the basic concepts that hold up all programming languages. Don't let the new terms put you off. They are:
Back in high school, my first brush with programming was through the mandatory C++ course I was taught. At the time, my only prior experience with programming was BASIC. I had used the GOTO statement to death drawing shapes, with no real understanding of what purpose it served or could serve.
Now
When you learn to program for the first time, you need to lay down the foundations first. Preliminary education should include problem-solving skills and an understanding of low-level concepts.
What is meant by low-level concepts? Well, for example, did you know that when you write functions in C++, they end up on a call stack? You may have heard of stack overflow, vaguely understood pointers, and have a sketchy knowledge of
Here are some opinions about what a first programming language should be.
It should teach you basic, low-level concepts like procedures and loops, decomposing problems, encapsulating data, and generally how to think like a computer. A language like Python or Smalltalk will get you started on these concepts quickly.
It shouldn't be syntactically abstract. That means the language should be easy to read and understand. It's your first language, and you want it to be as close to English as possible. Python and Smalltalk are pretty close to this ideal, and so they are easy to learn.
Languages like C++ have a complex syntax that you'll need to learn before you can begin to do anything with it.
Another advantage of a dynamic language like Python is that you can test features of the language while you program. So, if you find a bug when you launch the application you've coded, you can simply go back to your Python script, edit the concerned lines, and run the application again. In C++, you'd have to recompile the program every time you debug.
This is all a matter of opinion. Other developers may tell you your choice could be less cautious about syntax. When you choose the first language, choose one that will help you reach your coding goals. Some people have no teething troubles at all when they take their first steps into C++. They chose the language because they were up for a challenge.
Some people will tell you that it doesn't matter what language you start with, because the principles of programming are the same. Maybe it’s true, but there are levels of complexity in some languages that can become a burden if you're a first-time programmer.
Try not to choose industrial languages like PHP, JavaScript, C++, and C. They are languages that have been used for years, and carry a lot of baggage which can get in the way of your learning. Perhaps start with
At the same time, don't go looking for an obscure language that doesn't have a lot of documentation. You'll only be setting yourself up to fail.
It’s wise to choose a language based on your reasons for learning to code. Do you want to develop a mobile app? Do you want to build websites? Pick a coding language accordingly.
It goes without saying that tactical learning is more effective than simply reading. Type and code programs, don't just read them. You may have understood a concept on arrays by reading a program. But without coding it yourself, you'll not be able to implement it with the correct syntax when the time comes.
We've already recommended learning the basics of programming and how computers think before you begin a language. Don't forget the fundamentals even as you jump impatiently to the fun exercises where you build things. You'll never learn a language in depth without knowing why a program does what it does.
Writing code on paper is a good way of truly learning to code. You will have no way of checking whether or not the syntax is correct, as you would if you were typing code on your computer. Instead, you'd be forced to focus more on what you write.
This is another area where beginners quite often get confused. Learn to differentiate between the standard libraries and the language. It will help you wrap your head around the new language better. Modern programming is more about knowing how to use libraries (take a look at libraries in
Hopefully these tips will set you off on a more or less straightforward and enjoyable path of learning your first programming language. Just make sure you stick with the language you choose, and you’ll be able to do most things with any language.
So, what's it going to be? The beautifully elegant Smalltalk that is almost like natural speech? The powerful C++ that has gone into building games like Dark Souls and BioShock? Python, Java, HTML5, Ruby, C? The choices are many. What is yours? Hit up the comment section below.
Relatări asociate

Launching a digital product like a web service or a mobile app can be scary. We'll show you the steps to success
18 min read

Got a great idea for an app? Need a new way to grow your business? We tell you everything you need to know about building a mobile app in 2020.
16 min read

Learn the complete end-to-end process of building a successful website for your business in our comprehensive guide
19 min read

A million dollar business idea is useless if it remains written on a napkin. Learn the best ways of securing funding to build your dream.
26 min read