The key to success: Practice and learn, more and more.
Like other skills, if you want to learn programming, you have to dedicate some of your serious time to it.
If you’re a programmer, no matter how good your code is or how well you know your ground, it’s not enough. You need to keep learning and growing as a programmer. Learning new languages, frameworks, algorithms and tools.
Think logically create logic first, then go for coding.
When you have a program to code, first of all, think what you have to perform to get the desired output or functionality. Most of newcomers made mistake to go to coding without thinking the logic. Coding is a way to express your logic in a particular language, so you must create logic first.
For example, if you want to code a program to find the circumference of the circle, then you have to go through these steps:
1) Take the value of radius (say ‘r’) from the user if it is not given.
2) Calculate the circumference (say ‘c’) as c=2* 3.14 * r
3) Display the output (value of ‘c’) to the user.
Sharpen The Basics Clear your basics and programming concepts.
Acquire an understanding of basic programming language concepts and how things work behind the scenes.
When you are familiar with the basics of any programming language, you know what thing/concept must be used to get the solution of your desired problem.
Keep coding practice makes perfect.
Spend more time on building and writing the code. Start with basic examples and then try out some advance problems or enhance basic programs. Try to implement each and every concept you learn.
Aim high, but start low.
The first thing you should do when learning a new programming language, starts with a simple project so that it’s easier for your brain to learn how to work within that framework, rather than trying to understand everything about something more complicated later on.
The point here isn’t necessarily that beginners shouldn’t write complex applications from scratch; rather, it’s more about developing confidence in yourself before tackling projects like this one that might require more research or planning time than necessary.
Focus on the problem
Programming is a process of solving problems and making things work in order to achieve an end result that you can see yourself being proud of. It’s important to start by focusing on what you’re trying to do rather than how it will look when finished (for example, if you’re writing a program for your own use). This means that your first step should be thinking about what problem needs solving: which task or task type would benefit from having this feature? What kinds of inputs/outputs would make sense here? Then try thinking about how those features might look like once implemented into your codebase—what if we were able to accomplish this in 25 lines instead of 100 lines today?
Compile time error or Logical errors – Won’t stop you
As a programmer, you’ll often be working on something that doesn’t work. This is OK! We’re all human and make mistakes—that’s part of the deal. Keep trying to spend your time on it and you will succeed.
Don’t let your fear of making mistakes paralyze us from shipping your work.
Find mentors, Ask questions
You’re probably a great programmer, but you may not be the best at asking for help. Don’t be afraid to ask for help! We all make mistakes, and the only way to learn is through failure. Find mentors that have bunch of experience in programming, learn from them and ask them to give feedback on your work. If you don’t try something out and ask for feedback on what went wrong, then how will you know if something could have been done differently? Even if you can’t find someone, there are still other ways of getting information, like YouTube channels, forums, etc.