seandenigris / Resources-Live

GNU General Public License v3.0
4 stars 0 forks source link

Can we generalize from File to Location? #1

Open seandenigris opened 8 years ago

seandenigris commented 8 years ago

The original title of this issue was "Model File or Domain Object?" e.g. Email vs. EmailFile. In my experience so far, it seems important that the Domain is the primary object. Maybe it uses a specialized file object underneath. In fact, the question seems to be even bigger: maybe there's a generalized location underneath, of which a file could be one, but a pointer to a physical resource (e.g. "in my file cabinet under 'z'", or a resource on the web (e.g. an article, youtube video)

seandenigris commented 5 years ago

Right now, there is RlPhysicalResource and it's a subclass of RlResource, but the problem is that all the other subclasses represent digital files, so it has very little in common with them. OTOH, it's convenient to be a subclass for e.g. Magritte to fill options with #allSubclasses.