-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Resource" vs "Downloader" #1188
Comments
@qparis you will need to clarify this. |
Resource uses Downloader ; it is more abstract. Resources manages:
Resources are aimed to be common accross scripts |
Ok, this was my understanding as well. So can we generalize this to the rough rule to use |
Why not use |
Because in many cases, you don't want to cache the result. For example, a 2Go game, etc... |
Strictly speaking The only disadvantage If the fact that |
This is indeed exactly the point. Resource is more abstract : it should be used when a reusable resource is downloaded. |
That is my main issue with Another benefit of |
What about: |
This sounds like an idea. But why do we need to add a module class for that? Can't we extend our current Resource module or Downloader module to support this as well? Ideally we should be able to specify this using additional builder methods that set the corresponding settings |
Yes, we could also extend the |
Any suggestions what methods an extended
|
What's the difference of |
There is none. I didn't look at the concrete implementation I only tried to list some functionality that needs to be supported. |
I see. |
Currently we are using a mix of
Resource
andDownloader
in our scripts. Both classes/modules do similar if not the same tasks, they allow downloading file(s) from the internet to a given folder/file.My question is now which of the two classes should we recommend/advocate for the script usage?
See also my arguments in #1181 (comment)
The text was updated successfully, but these errors were encountered: