News for hackers. Stuff that matters.
Re:Software development topics I've changed my mind on after... by dkarl on Wednesday February 05, 2025 @02:27PM (#42953785)
> I (16+ years developer) prefer to iteratively go between coding and designing

I have an extra ten years on you and couldn't agree more.

There are two jokes:

- A few months of programming can save weeks of design.

- A few months of design can save weeks of programming.

Inexperience is thinking that only one of these jokes is grounded in truth.

Recognizing which kind of situation you're in is an imperfect art, and incremental work that interleaves design with implementation is a hedge against being wrong.

Re:Software development topics I've changed my mind on after... by spartanatreyu on Wednesday February 05, 2025 @07:13PM (#42957294)
I like to say:

- One hour of planning saves ten hours or programming...

- and one hour of research saves ten hours of planning.

You can also invert it:

- Ten hours of programming saves one hour of planning...

- and ten hours of planning saves one hour of research.

Re:Software development topics I've changed my mind on after... by baud147258 on Thursday February 06, 2025 @04:43AM (#42960736)
> - Ten hours of programming saves one hour of planning...

If the planning is done with 5 or more people in a meeting, there still might be some time savings...

Re:Software development topics I've changed my mind on after... by jfengel on Wednesday February 05, 2025 @07:48PM (#42957560)
The difference between DRY and YAGNI is experience. Both are predicting the future, and you can only do that by having watched code evolve.
Re:Software development topics I've changed my mind on after... by bena on Thursday February 06, 2025 @09:49AM (#42962887)
What's that saying? "Once is a mistake, twice is a coincidence, three times is a pattern".

Having to write something once, just write it.

Having to write something twice with small differences, think about it.

Having to write something three times? Consider refactoring.