+ 2

How do most programmers write code ?

I started coding about two months back , i just want to know if it’s normal for programmers to copy and paste other people’s code and modify it to suit their design, I ask this because most challenges I encounter if I google I find the solutions/problems already being faced and solved by someone else & I just deduce my solution form there. My question is this what most people do , like is it normal or you always have to figure out your own way to figure out things.

19th Jul 2019, 9:07 AM
Tatenda
Tatenda - avatar
5 Respuestas
+ 9
At the start, the tendency is to seek inspiration from others, hence copy, paste, adapt. As you develop your technique, you should start to write your own codes without reference to others, which will incorporate your logic preferences. Challenge yourself to do so, but reference, or research when you run into that wall
19th Jul 2019, 9:29 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 4
It is a matter of preference. If I know what I am coding, I won't look it up online unless I am stuck. If I need help with something, I will copy and paste a solution that is already created for a similar situation and curate it to my code to make it work. Don't make the mistake of copying code you don't understand and wind up being confused when you review your code after a while of not looking at it.
19th Jul 2019, 9:12 AM
m.b
m.b - avatar
+ 2
This happens a bit when you start.
19th Jul 2019, 12:10 PM
Sonic
Sonic - avatar
+ 2
Google is your friend...so is stackoverflow.
19th Jul 2019, 1:00 PM
Steven Durell
Steven Durell - avatar