Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
janko-m
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
1.
▲
by
janko-m
11y ago
Very interesting presentation, really on a high level, I enjoyed reading it. I noticed that many problems that you mention other uploading gems have are actually solved by Shrine: - "Transformation juggling" -- Versions are proces
2.
▲
by
janko-m
11y ago
Yes, you got it right, this is exactly what it means. Yeah, there are some rare use cases for on-the-fly processing (think a WYSIWYG editor where the user can choose the size of the image), but for me upfront definitely works best.
3.
▲
by
janko-m
11y ago
The part that I mind about both delayed_paperclip and carrierwave_backgrounder is that it doesn't really allow you to write your own job classes. This can be quite limiting for example if you want your jobs to send information to some
4.
▲
by
janko-m
11y ago
I had exactly this scenario in mind when I was building Shrine. It has a recache plugin which allows you to do additional processing after validation but before storing, and then you can do the rest of the processing in a background job as
5.
▲
by
janko-m
11y ago
I feel the same as you. Refile was first very exciting for me, because if you wanted to change a version, you don't have to reprocess them, you only have to change the URL in the HTML. But that means that if you have a page with lot of
6.
▲
by
janko-m
11y ago
"Upfront" processing means that you're doing the processing during upload, and on the "on-the-fly" processing means that you first upload the file, and then it's processed dynamically through the URL. For examp
7.
▲
by
janko-m
11y ago
I was actually contributing actively to Refile before, so in a lot of ways Shrine is similar to Refile (the idea of backends is basically the same). However, the main difference is that Refile does processing on-the-fly, while Shrine (and C
8.
▲
by
janko-m
11y ago
Yes, multiple databases are really useful for me, for some reason I often need to transfer data from one to another, e.g. legacy database to a new improved one (which I think happens often if you're in a non-startup). In ActiveRecord y
9.
▲
by
janko-m
11y ago
Sorry for that, fixed.
10.
▲
Show HN: Introducing vim-test plugin, a Vim wrapper for running tests
(github.com)
1 points
by
janko-m
12y ago
|
0 comments