DEV Community

Discussion on: Care about your code, like an artist about their painting

Collapse
 
jmfayard profile image
Jean-Michel πŸ•΅πŸ»β€β™‚οΈ Fayard

Regarding your (good !) point on consistency, in my case I would put it under "refactoring", because I'm just unable to start with something consistent and coherent first.

So

  1. I start with what Anne Lamott would call a shitty first draft
  2. Later I notice the inconsistencies
  3. Then I refactor it to sanity - JetBrains IDE do wonder here
  4. Then I write unit tests ensuring that my naming conventions stay coherent forever
Collapse
 
nombrekeff profile image
Keff

Not a bad point at all. I separated them because I feel we must think of consistency on it's own and refactoring encapsulated a lot more than just this. But I agree, first make it work, then make it good. But, if you can make it decent from early on, it will be easier to do so.