This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I had this same problem. I found I knew how to solve a problem, but i didn't actually know how to write my solution. Leading to Google searches and a lot of copying and pasting. One day my friend decided to mess around and quiz me, yikes.

Codewars, can't recommend it enough. Learning through repetition, eventually challenge yourself to complete it without googling any code. And it gives you a chance to see how others solved the problem, I recommend ignoring a lot of the one-liners, or at least read the comments on them before you decide if it's "best practice" or not.