DEV Community

Discussion on: Once you start writing a lot of code you're surely doing it wrong

Collapse
 
phantas0s profile image
Matthieu Cneude

This is highly depending on the context. Sometimes you'll need "a lot" of code, sometimes you won't. No silver bullet here.

It's hard to get it your code right the first time, so here's what we should really do:

  1. Writing some code.
  2. Refactoring when you have more knowledge about the business domain / your functionality / other.

When you write something a bit consequent, you often write a draft first. It's the same for programming.

Collapse
 
akumzy profile image
Akuma Isaac Akuma

I agree