Iām currently doing to front end intermediate algorithm challenges and it is a daily experience for me to write the code run it and have it inevitably fail. I donāt mind it failing so much as the fact that it can take me as long as 3 hours to be able to finally get it to work
Am I doing something wrong? Should it really take this long?
I really need advice, I donāt think I can continue programming if everyday will be as hard as this. I have to drag myself to the computer and am really easily distracted because I donāt feel like Iām doing anything
any suggestions would be appreciated, thanks
Donāt feel like that!!! Itās ok, and itās a process!!! Many feel the same as youā¦ Iāve felt the same beforeā¦ Sometimes spent days in just one challengeā¦ Iād like to share one answer I wrote in other post, Iām sure it will give you more energy!!!
Thanks!Tthat really makes me feel better; I love what you said about being independent. I usually give up and look up a tutorial or look at freecodecampās answer after 2 hours of debugging and stress. Is that bad? Should I keep going longer?
Iām glad the motivation words helped!!! I got so many nice words from the community tooā¦ Itās great to have this community.
About going longer, give up, look tutorials and answersā¦ well, itās hard to sayā¦ I guess youāll find your pace.
Of course thereās no point in staying like 2 hours with no evolution, so itās good to get some hints and try to overcome one step that you got stuck,ā¦ but same time thereās no point in getting the complete solutions in every challenge.
If you spend ten hours in a challenge, but many of these hours you spent reading docs and trying (getting used to) some properties and methods, (Ex.: Array.forEach( ), String.join( ) ) ā¦then youāre doing pretty good, because youāre actually learning, testing and youāre building a solid undesrtanding for your future.
Keep going! There will be easy ones and hard ones, donāt rush, take your timeā¦ sometimes leave it at night and try to tackle next morning, with a full relaxed brainā¦ It helps a lot!
ļø:smiley:
Thanks! Yeah, sometimes Iāll just be staring at the computer screen being like "I honestly have no god damn clue how to solve this ". But yeah, I think Iām gonna start sticking with challenges longer before giving in. Iām gonna start using all my resources: documentation, hints, and posting my problem on help, whatever.
Thanks for the guidance
Yeah i struggled, but it taught me a lot about debugging and logic when coding. Everyone struggles, iām not saying that in a cheesy way, iām saying that in a way that coding is very hard but very satisfying once you figure something out. Its great for increasing your problem solving and logic skills. Its also keeps your brain active, watching TV 12 hours a day is not good for your brain. Coding is like a playground for your creativity, Its also a very useful skill too.
This is the quote i always think of when iām coding.
Getting stuck on one algorithm problem for days or weeks is a waste of time. Thereās no value to taking that long to solve one of those questions. Most of the time you have the algorithm thought out and are approaching it the correct way and you just have a simple syntax error, or at least thatās the case with me.
Try them for a couple hours. If you get stuck look up the answer and understand how it works and why your approach didnāt.
Smallest Common Multiple took me 2 weeks.
After a week of banging my head against it, I did some Khan Academy to figure out the maths I was missing.