I've been teaching myself programming for while now, however, I have an inner conflict from time to time due to the following:
>think of a program i want to write
>work on it independently for a bit
>reach function i don't know how to write
>look up online how to write it
>feel bad for essentially copying code
>can't call the program my own
Is this a valid work ethic for learning?
Everyone copies code
People learn best by copying others.
>>61784730
If you were just programming you wouldn't give a fuck and only care about the thing that the program does getting done.
If you are a hacker (which is like being an artist,) then the thing the program does isn't as important as the statement the program makes.
You just have to judge if what you are copying is reasonable or not for the statement your program makes.
>>61784730
this is how i learn
>>61784801
thats how humans learn , we learn by copying others , since day one
>>61784730
Feeling bad for copying code is like feeling bad for solving a math problem the same way someone else did.
For any given CS problem there are only some few ways to approach it, and one is going to be quantifiably optimal.
>>61784730
If you were trying to learn carpentry, would "copying" someone else's methods bother you?
It shouldn't. Swinging a hammer is swinging a hammer. The end result is the thing you call your own.
>>61784730
If you copy it and understand it enough to reproduce and modify it in your own code its yours. Its not like writing a book.
>>61784747
it's perfectly valid to adapt other people's code and integrate it into your code. emulation is how people learn.
>>61784730
Bit of a non issue unless you're coding on your own kernel and compiler.