Is it normal to have the feeling that my code is too complicated? #2946
Replies: 2 comments 5 replies
-
It is easier to remove complexity than to not write it in the first place. So I wouldn't say there's anything wrong with your programming. In time, you may be able to remove complexity earlier in the process, but there is nothing wrong with iterating on ( refactoring ) your solutions, occasionally even going back and changing the design. Thinking about design before starting to crank out code is certainly useful, but you don't have to invent the perfectly round wheel before starting to code it. You know what they say about premature optimisation right? |
Beta Was this translation helpful? Give feedback.
-
I've only just started using CodeWars and the thing which makes it great for me is to see other developers solutions to the problems after my attempt has passed. My initial thoughts on my version of the solution are usually that it is too basic / unpolished and seeing others more efficient code helps me to learn and improve. I think the fact your solutions work shows that you have the skills in the first place but being able to compare and learn from others should help you to feel better about your efforts and ease any imposter syndrome jitters! |
Beta Was this translation helpful? Give feedback.
-
Hey Guys, I look forward to your replies!
So, I am coding for a little while now, and I would say, that I am maybe an advanced beginner.
And while I was working on a Keta to succeed it, I had the feeling that my approach and implementation was way too complicated
BUT at the end of the day the code works and the keta was done.
So far, so good.
But sometimes these thoughts of overcomplicating the approach makes me doubt that I am maybe not "thinking right" and it slows my workflow over all.
So is it a normal state of thinking about it and I just have to avoid the "imposter syndrome" which could come with it, or do you guys have a certain approach to get into a better workflow?
Beta Was this translation helpful? Give feedback.
All reactions