+ 1

Is looking at someone's code to figure out how to do something a bad thing?

someone told me instead of following tutorials and looking at other people's code is a bad way to learn. Is it true? It probably is copying but I do it to learn what the DOM events do and how I could use them in the future to solve problems. I was trying to make a to do list and didn't know how to do it after trying so I watch a YouTube video have someone else doing it and followed along so I could make my own and understand it. But is it copying?

29th Mar 2018, 9:16 PM
Babydoll Scripts
Babydoll Scripts - avatar
7 odpowiedzi
+ 4
Naah , see other codes if it's allowed ( generally if it's visible to you that means you can see it &, play with it to learn as much as you like.) But if you include that code in your work you have to make sure that the original author permits it and do as the licence suggests. Actually seeing other codes are the best way we get to know the popular patterns , efficient coding techniques and the used of Libraries, APIs etc
30th Mar 2018, 12:50 AM
Morpheus
Morpheus - avatar
+ 3
Learning from other's codes is a good thing and can help with your learning. It also trains your ability to read code which was written by someone else. But what you shouldn't do is copy&paste different code snippets into a messed up patchwork which a) is way beyond your knowledge b) has different layout styles c) is not working well together Don't create "Frankenstein" code. If you look at other's codes to learn from them try to rewrite the concept yourself. Being able to recreate it is a good sign that you've understood it.
29th Mar 2018, 9:53 PM
Alex
Alex - avatar
+ 2
i didn't take the whole thing or even copy in paste. I used their method of adding input values to a list.
29th Mar 2018, 9:45 PM
Babydoll Scripts
Babydoll Scripts - avatar
- 1
??? Are you answering me or asking a question?
29th Mar 2018, 10:30 PM
Babydoll Scripts
Babydoll Scripts - avatar
- 3
NO
29th Mar 2018, 10:28 PM
Gabriel Leal
Gabriel Leal - avatar
- 4
It's a YES OR NO QUESTION!!!!
29th Mar 2018, 10:29 PM
Gabriel Leal
Gabriel Leal - avatar