Please any professional one here could suggest to me the better way and the method to code properly | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Please any professional one here could suggest to me the better way and the method to code properly

Because I am feeling like I am copying and pasting code's professor

14th Jan 2020, 6:52 PM
Amal Gil
Amal Gil - avatar
2 Answers
+ 2
I used to copy (write what I see) from books (I'm a self taught programmer). But in the same time, I did my best to understand what I'm writing and doing. I suggest you do the same. Start with something small, and visual, like how to draw a line in a window. The line would be a function with x and y parameters, try to understand and change them to see the results. Then what's a function? A function is a list of commands/instructions grouped together to make your life easier... bla, bla, bla... Always ask yourself questions about anything, try to google your answers, try to find more and more information, try to read more books, about a language, about a subject, and take what they have in common. I have always read not one book on a subject, but as much as possible, and I always found that they had so many chapters in common. So, take everything they have in common, and I can guarantee you'll write programs in almost any programming language and read twice as much the code of others. I wish you good luck!
14th Jan 2020, 7:48 PM
Calin Onofrei
Calin Onofrei - avatar
+ 1
I think it’s very common to start off learning through copy/pasting someone else’s code but progressively move to being able to make more and more on your own. To also try and understand the code you are using like Mirielle🐶 said as well. Think of it like learning a foreign language. At first you are just repeating common phrases but as you progressively learn more you will get better. As you practice more, eventually you’ll be able to form sentences of your own without relying on other people’s examples.
14th Jan 2020, 7:51 PM
Pie
Pie - avatar