r/programmingchallenges • u/BladeRunner2020 • Dec 18 '18
Programming is making me crazy I need some help !
I have tried to quit programming over a hundred times but somehow everytime I am coming back to programming.
I enjoy requirement analysis , designing and even testing but I hate when I get stuck and I am spending allot of time solving a small problem.
95% of my code i get from youtube video tutorials and Google searches the only time that I am coding is when I am modifiying the code to make it fit into my project. Is this pratice acceptable at the work place ?
I have made couple projects using HTML CSS , JavaScript , PHP and MYSQL but 95% of my code is taken from other sources I'm I a fraud ?
I need some hard truth advice from professional programmers that are working in the field .
4
u/CoderMonkey123 Dec 18 '18
Copying and pasting code snippets from the internet, and then modifying it to suit your needs is the bread and butter of any professional programmer's craft. Don't feel bad for doing that.
3
u/Buju83 Dec 18 '18
Not a professional (I'm working towards it), however, I think you should try and start some programming courses from scratch, in whatever form they might be. While a lot of professionals get inspired and might use snippets of code found online, you sound like you really need to get down the basics of how to think about a problem so you can then stop getting stuck on small issues and start writing more code yourself. It's not all about knowing the functions and stringing them together, you could in a sense say that code comes from the heart, you need to feel it and get to know it and work with it until it clicks. I suggest also looking into the game Human Resource Machine to start learning to solve programming challenges around limitations. You're not a fraud, just inexperienced.
1
u/rickityrixkityrick Dec 19 '18
Make something yourself, come up with a project and work on it. Don't copy whole snippets of code try doing it yourself, if you do have to copy reason it out ask yourself what did I not know that I had to look it up and try to understand it. You'll be surprised at how much you've picked up
1
u/KillerCodeMonky Dec 19 '18
Copy-paste is perfectly normal when you're *learning* a new technology. You simply don't know enough to do anything else and still have output. But what you need to be doing is learning *what* that code does and *why* it works.
There's a story about the difference between making 1000 mistakes and making the same mistake 1000 times. Copying code should work exactly like that. It's an admission that you don't know enough to have written the code yourself -- aka, you're learning. But if you have to copy the same code over and over, that is not learning. And I have a name for people like that: Wizards. Wizards use magical incantations to cast spells from their book, but it's all opaque to them. The components of the spell have no individual meaning.
That is what happens if you don't actually learn what the code is doing and why it works. Everything will just be a series of magical incantations that you string together and hope the spell does what you wanted.
If you are learning, on the other hand, you *will* progress to writing code without any external reference. The same patterns tend to occur over and over, and will become muscle memory to write them. But, of course, nothing will ever become muscle memory without practice!
So when you start to feel comfortable, challenge yourself to write something without looking anything up. It doesn't have to be meaningful; the point is the practice, not the result. Like how calligraphers will write the word "minimum" over and over to practice spacing. They obviously don't care about having a paper covered with the word minimum.