Feeling like a failure, looking for few advice

Posted by Stock_Valuable7915@reddit | learnprogramming | View on Reddit | 4 comments

Hello guys!

I’ve tried to make a Calculator with The Odin Project, but after many attempts it was a failure. A huge one.

I’m sure for many of you and beginners included this project is not “easy“ but can be accomplished without a lot of difficulty, but to me, it was a 9/10 on scale of difficulty…

I know how to get the user inputs when he press the button and save it on an array but after that my brain is blank. Many of you used objects instead of arrays, but as always I don’t know how I can do it with objects too.

Anyways, I think I lack of discipline and logic. I know the syntax, loops, array, objects etc… but when I need to make a projects using them more in depth it’s a guaranteed failure.

I know I should practice a lot and have a better mindset when I’m encountering difficulties instead of ”giving up” but my brain become instantly blank and there’s no solution or idea to the problem I’m facing.

Should I try some exercises on Exercism / Codewars before retrying to do the Calculator ? Or should I give it another try because I’m not doing it right (not the right approach/technique)?

Maybe I’m not learning correctly and I don’t understand what I’m coding.. Should I add JavaScript infos when I’m learning something new in The Odin Project like objects?

I would love to have tips from people who’ve struggled too.. how I can learn effectively etc..thanks, have a great day.