jfroelich / rss-reader

A simple Chrome extension for viewing RSS feeds
Other
10 stars 0 forks source link

Remove name and version parameters from open #793

Closed jfroelich closed 5 years ago

jfroelich commented 5 years ago

It took awhile for the concept to crystallize but now I think I have a better idea of how to implement the open function.

The straightforward approach is to enumerate the use cases for this functionality, and then design in a direction towards those use cases that maximizes overlap (e.g. avoiding DRY violations) while also minimizing unused features (e.g. unused parameters).

There are three use cases (I think?):

What this tells me, I think, is that the best way to design the feature is the following:

Originally I was trying to support the 3rd use case using db/open, and that was where I went down the wrong path, because the name and version never change in the first two use cases, only the timeout does. I also made the mistake of not timing out by default, which is actually the typical case.