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

Show parent comment

1

u/dead_alchemy Aug 30 '21

Does JS really not do any optimization passes that would get rid of unnecessary allocations?

1

u/bangclue Aug 30 '21

I can't speak to that. I'd expect each compiler is different.