Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But why not have a 30 minute option by default then allow users to opt-in to either more or less as needed?
 help



But why not have a 5 minute option by default then allow users to opt-in to more as needed?

Why not have no default and make it explicit?

You break backward compatibility

True! Every single option have no default! Your curl should look like a book every invocation.

No, just that one.

mine usually does...

beautiful

because it's a footgun, pls follow thread you're answering to, it was already discussed

It's not any more of a footgun than setting a default to a more expensive option.

You're advocating for a change therefore it's your burden to provide a positive argument which you're presupposing.


Isn’t the shorter cache time more expensive for the user?

Depends on the usecase.

I have to wonder if you have even coded with any of these APIs before. I have been using them far before caching was even an option and for a lot of workflows you build you don’t necessarily want to use any caching. These APIs are not that complex and I am kind of shocked people would even think it’s a footgun. There are a handful of configurable items and if this a footgun I fear for engineering.

Because 5min is cheaper for users. Look at API costs

Because that doesn't minimise their costs?

Because that's more expensive for any single request.

API users who care could opt-in to less caching though.

The default is already NO CACHING. You have to enable caching explicitly in the first place!

API users who care can opt-in to more caching though.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: