News for hackers. Stuff that matters.
Re:My favorite principle for code quality by some_account on Tuesday May 22, 2018 @04:58PM (#17129354)
I agree. Developers should never build anything more complicated than it has to be at the moment.

Simplicity is key to happiness and productivity.

Re:My favorite principle for code quality by wolco on Tuesday May 22, 2018 @05:53PM (#17129723)
We shouldn't go too far with this line of thinking either.

When things are immutable design early.

Consider an api. You can build a basic api without a version parameter when you release. When you need to change the api and keep backwards compability you introduce a version parameter. You are forever stuck with the first version being the default.

Re:My favorite principle for code quality by toast0 on Wednesday May 23, 2018 @11:10AM (#17134763)
Whatever version is in the documentation people read is the default. If it's not compatible to use v2 when expecting results from v1, you can't change the behavior for no version specified anyway.

More important for an API is building in a way to signal users that the version they're using will be or has been discontinued, and a way for the users to test that.

Re:My favorite principle for code quality by vorpalhex on Tuesday May 22, 2018 @10:17PM (#17131042)
Versions, timestamps and unique IDs are definitely base design requirements on anything.