My question is mostly to those, who’ve finished / is going through algorithms.
I’ve just finished basic algorithms section, and I’m pretty sure that I have created the ugliest code for Caesars Cypher this site has ever seen. But the question is not about this particular challenge.
After I finish a challenge, I always chech hints to compare my code to the answer. And gosh, that’s hideous.Unnecessary variables, ugly loops, and I’m not even talking about ternary operators, arrow functions and other stuff. And I feel like - I’m happy that I solved the problem. It’s working! But at the same time, if I’m not doing it the correct way, it’s like I’m not learning, and this will lead to problems with advanced stuff.
So, the question (or two). After you see the answer, and it’s not quite like your code, do you change yours? Do you consider it a failure? How do you work with new knowledge, you get from these answers?
And overall, was this section difficult for you?
Thank you all for your feedback!