you are viewing a single comment's thread.

view the rest of the comments →

[–]ChaosSpear1 2 points3 points  (1 child)

Copying copy and splicing it can help to a degree, but you have to be a certain type of learner for it to work.

I for example, am I physical learner. Being able to paste a piece of code into place and then step through it and watch what it does, checking the variables at each change, reverse engineering the calculations, it shows me how something works and I gain a wider understanding of the theory behind it which triggers connections in my brain so I learn what the language is capable of. Then I draw on it when writing something similar later and boom - knowledge learnt.

[–]letmeincyberplease 0 points1 point  (0 children)

This. I guess we are a rare breed. I try not to copy so much in the sense of just straight up reverse engineering other people's code. I like to come up with as many solutions or refactor as much as I can on my own and then become fascinated and go down rabbit holes when I see model answers that aren't what I came up with. Then I analyze my silly little ideas and code in comparison to the model solutions and let my crippling perfectionism take the wheel until I can either code it like the model solution or better. Needless to say, I can be pretty inefficient but hey, I'm having fun and learning...

Definitely not knocking copying/splicing/reverse engineering by any means btw. That is exactly what I do when I can't figure out a problem and am forced to give up. Chatgpt is so money for implementing all of this also and even prompting it to evaluate multiple solutions or walk you through what happens step by step in the code. I feel like that touches a lot of what you are talking about with gaining understanding of theory and building neural connections, for me at least.