I have had I guess what you can call a profound revelation so to speak. I have finished up the Front End Libraries cert except for the calculator and the timer. Then I am done.
While I was working through this curr. I was also doing the Python4Everybody course in it’s entirety.
Now… when I do code camp courses, and even the ones the don’t have a cert I will literally rewrite all code examples just for posterity I guess (or maybe some would call it stupidity), but I think it just helps me reinforce things and helps me learn to debug.
So, for many of these certs, I would look at other codepen submissions and find one that I (in hindsight “thought”) I understood real well, and I concurred with how it was approached etc. etc.
I finally thought to myself that “hey this is not YOU!” doing it from scratch! Ground zero! WTF! It’s bothering me alot. Many times, I would many be just doing some very cosmetic refactoring and only at the css/ui level.
So when I started to see how other people did the calculator project, I was very obsessed with how many lines of code it took a person to meet user story reqs. Especially on the JS/React side of things.
One thing I noticed though is that some of the projects met the tests 16/16, but did not meet my exact functionality thoughts.
Specifically, kind of like the drum machine. I should be able to use the literal keyboard key and not just the mouse to execute the calculator operations.
So, I looked (and looked and looked and looked over) this one persons pen for this project and I thought, this is it. How I would do it, with almost no refactoring and 90% of how they did it I understand.
So what’s the problem I feel like it’s just cheating period. Now, I don’t ever fork outright/or select all cut-n-paste. I literally will rewrite it with more comments at least so I understand better.
But now I feel so depressed, because I never have really written any code (Whatsoever I feel) from point zero.
What I would like to do is use this persons code, and perhaps refactor it to make it more concise and less js/react code but still pass all 16/16 tests. But I honestly wonder if it can be distilled down any further. This person seems to have written it pretty good.
Here is the pen. I really don’t want to write code from scratch though, just to rewrite it based on arrogance or pride, if the code I am forking is pretty damn good to begin with.
I just wanna write correct and concise code, that is also sane, stable and secure.
But… (OMG)… I just have this feeling of imposterism/cheating. I don’t know.
I don’t even know if this made sense.
Also, if anyone has the extra energy to mentor me that would be cool as well.
I hope this made some kind of sense.
From the swamps of New Jersey.
Important: I will not use eval() or math.js.