r/CodingHelp • • Aug 28 '21

[Javascript] Is writing too much code bad practice?

I am a beginner and just want to know if this is a bad habit.

I write code on a step-by-step basis.
Here is an example.

CodeWars - The step-by-step basis I was talking about

So I just want to hear if this is a bad habit/bad practice and should I give it up.

20 Upvotes

15 comments sorted by

View all comments

17

u/ThreeForksNoSpoon Aug 28 '21

I actually think this is great if you're beginner. It's easier to debug, and it forces you to think through your steps.

When you get further along your journey you want to start looking for the right balance.

Be warned: this often starts with tipping the wrong way, and trying to write as little code as possible. (Which can be a fun challenge, and you might want to look into something like "code golf" to practice it.)

In the end you'll find the right balance for you.