r/programmingchallenges • u/BladeRunner2020 • Dec 24 '18
Programming has beaten me
I have tried to learn programming for the last couple years on my own. I have completed several projects using HTML , CSS , JavaScript , PHP and MYSQL.
The problem is that all I am doing is searching on Google and watching Youtube video tutorials of how other people are coding and then I would copy their code.
I am not writing any code I am just copying the code from external sources and making slight modifications. This makes me not a programmer but a fraud who steals code.
I cannot write code because I struggle to memorize the syntax.
I can analyse requirements and think of solutions that I can use to solve problems but I cannot code my solutions i need to copy external code from Google or Youtube.
If all I am doing is copying code and I cannot write code should I just quit programming ?
Another problem that I am having is lack of patience. When I encounter bugs and I am not able to fix them after several hours of trying I become frustrated and I start to question if I am even right for this field.
Are some people not just meant to become programmers ?
4
u/userax Dec 24 '18
Programming is fundamentally about solving problems. If you can meet the requirements, it doesn't matter if you coded it from scratch, or used a library, or copied snippets from the internet.
I would say that most programmers, even senior engineers, copy code from the internet. The difference is more experienced programmers know what to copy and how to adapt it into the codebase. Copying is also a great way to learn best practices.
Since you have problems with memorizing syntax, I suggest you still copy code as needed. But instead of doing a copy/paste, look at the code and learn it. Then re-implement the solution yourself. It's like paraphrasing a book report. By typing out the solution, you will slowly learn the syntax. Good luck!
1
u/Payf Dec 25 '18
Alright here's the thing chief ill give you some tips if you are having problems with learning to code. 1. Pick a language. Don't pick it based on which one is easiest or whatever just pick on language. I would recommend c++ or C or c# which are hard languages but they will teach you all the fundamentals of every single language. 2. Find a book. For example, try the book by the creator of C++ or tom Gaddis. It seems counterintuitive to learn from books but trust me coding isn't something you can learn through videos. Also learn how compilers and computers work together(most books have a section in the beginning for that.) Also, books section what parts you should learn first unlike videos who have classes, variables, loops, libraries, functions all in one video(it's too much to take in). 3. Practice a lot. Make small calculator programs that run in the output window at the bottom of your desired text editor. Don't be discouraged when you can't remember some things syntax-wise. Keep practicing. Also, experiment. remember this isn't something you can learn how to do in a weekend or in a week. If you are committed and take it slow you can learn pretty fast. I recommend eclipse for java visual studio for c++ and c and python, and Komodo (might have miss spelled) for python.
3
u/realestLink Dec 24 '18
r/learnprogramming You posted in the wrong sub
1
u/domox Dec 24 '18
Find a good book, or grab something like Swift playgrounds, sit down and learn what makes it all work. Write some simple/useful tools you like. If it’ll take hold it’ll happen then, and you’ll start to understand why things work and come up with your own answers rather than cargo-cult everything.
1
u/realestLink Dec 24 '18
Write tic tac toe or blackjack from scratch in python. Python has barely any syntax. If you can't write simple programs like tic tac toe by yourself without copying code, coding might not be for you. I don't know what to tell you, it's not for everyone. My advice though is to stop watching videos, they lock you into someone else's thinking. Just look up syntax on google. Don't look up problem solutions and don't watch videos.
1
u/softwage Dec 24 '18
I would suggest working through some programming textbooks. Work some excercises at the end of each chapter. To find a good textbook, Google "top 10 textbooks on <programming language of choice>". Otherwise, I would suggest Structure and Interpretation of Computer Programming by Abelson and Sussman, MIT press. Programming is hard in the beginning. If you have the perserverance to learn it, it will become easier and very rewarding.