Did I ruin it for myself?

Posted by SUPERWARRIOR345@reddit | learnprogramming | View on Reddit | 10 comments

I’m fairly new to programming. I’ve been learning quite a bit for the past bit. Learncpp.com is an amazing website along with thecherno YT channel. Anyways, I wanted to fuel my passion with putting a bit of my skills to the test. I wanted to make a simple calculator. In the end I did a simple one where you could do the addition, subtraction, multiplication or division of equations containing two or more numbers. Now, what I had built could only handle one operation at a time. I.e. if you had to add five numbers then it’ll add them all up but if you need to multiply and add then it can’t. I wanted to attempt to do that (it is beyond my expertise) but as all programmers do I hit some snags and walls. I have a stupid habit of “looking up the answer” in a way to put it. I’ve been working on it for the past couple hours and just looked up “C++ calculator make”. Something like that in google. There I saw the google AI’s code and I looked at it and understood some of it. I felt stupid for doing so and it kinda made me feel like shit. I don’t like what I did and that I understood some of what the AI did. There were concepts there I looked up and were things I haven’t touched on yet but it all seemed like it was the perfect thing for what I had wanted to do.

My question is: Did I ruin it for myself? Should I continue making it or continue on with the lessons and find another small thing to do? I just hated how I caved in like a fool. I know asking for help is good but this was beyond. I love coding and programming but idk why I did that. If y’all have any advice for not being an idiot like that then that’ll be appreciated too. Sorry for the format I’m on mobile.