Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jbandela
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
jbandela
14y ago
I disagree. I think the accessor solution is the better solution in your example. You modification requires that File know about all extensions. It has to know if something is an image, a document, a spreadsheet, etc. Every time there is a