News for hackers. Stuff that matters.
Re:Good Software Development Habits by mewpmewp2 on Sunday November 17, 2024 @06:20PM (#42168241)
Looking at the definition, I do believe I wasn't referring to the original definition. I didn't actually know that original definition was specifically limited to the information/knowledge part. I have to assume there's industry wide misunderstanding on this term?

To avoid the confusion, it seems like DRY would be better named something like "Single source of truth". Because I do agree with that.

Re:Good Software Development Habits by dllthomas on Sunday November 17, 2024 @09:53PM (#42169323)
> I have to assume there's industry wide misunderstanding on this term?

The "misunderstanding" is at least as prevalent as the original, yes. I wasn't trying to say the original is "correct" - language is determined by usage - just wondering which you were discussing.

> To avoid the confusion, it seems like DRY would be better named something like "Single source of truth".

It could probably do with a better name, but "single source of truth" is usually about the information operated on by the program, rather than information embodied in the program.

Re:Good Software Development Habits by mewpmewp2 on Monday November 18, 2024 @03:17AM (#42170685)
You mean it's databases rather than what is in code?

If so, then that's also news to me. I'd have thought that e.g. something like input validation code that can be reused both in backend and client would go under single source of truth. Which I would always prefer not to be repeated, but frequently hard to do unless you have same language in backend and frontend or codegen.

Re:Good Software Development Habits by dllthomas on Thursday November 28, 2024 @05:27PM (#42268986)
With a sufficiently broad definition of "database", yeah, that's my understanding.