News for hackers. Stuff that matters.
Re:Never use a dependency that you could replace with an aft... by earthboundkid on Tuesday August 11, 2020 @08:02PM (#24127334)
Specifically on the SVG filtering example, which I think is a good illustration of when to use or not use a dependency:

Writing an SVG (or at least XML) parser is a necessary task for writing a filter that doesn’t get stuck due to weirdo issues. That is way more than an afternoon of work! But once you have a parser, dropping tags you don’t want or transforming them somehow is totally an afternoonable task size. So, do use a dependency for SVG parsing, but don’t look for a special “SVG filter all” package. Just do the filtering yourself.

There are no comments on this comment yet.