Git Product home page Git Product logo

Comments (2)

ruuda avatar ruuda commented on August 23, 2024

I would not use it; Claxon has zero dependencies and that is a feature.

There are two extremes for the scope of a library: on the one end, there are the big frameworks, and on the other hand there are “microlibraries” (libraries that contain just one or a few functions). Big frameworks are undesirable if you only need a small part of them, because you nonetheless need to download and compile the entire thing. But microlibraries are also undesirable: they too increase download and compile time (more requests, the metadata is often larger than the code itself, the build tool needs to start a compiler process, the linker needs to do more work, etc.). Furthermore, microlibraries put more burden on the end users: they now need to check for license compatibility, keep an eye out for vulnerabilities, read the changelogs, hope that the library supports the Rust version they use, etc.

Where the benefits of reuse start to outweigh the cost of adding a dependency, is something that people should decide for themselves. I personally think the cost of dependencies is often underestimated.

For Vorbis comments specifically, the code has already been written, so the main advantage would be that bugfixes or other improvements could be shared (I don’t expect any binary size advantages, because most of the code will be inlined). But as you say, there is very little code in the first place, so I do not expect this piece of code to need a lot of maintenance. Therefore I do not think the advantages outweigh the cost in this case.

from claxon.

est31 avatar est31 commented on August 23, 2024

Okay, I see. I'll close this then, thanks for the reply.

from claxon.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.