Giter Club home page Giter Club logo

Comments (5)

ahdinosaur avatar ahdinosaur commented on May 12, 2024 1

@timwis i think the intention behind bundling xhr within choo as choo/http is for choo to be an opinionated grab-bag of what you need for common applications. since the choo/http module is separate from the top-level choo module, if you don't need to make http requests then you can choose to not require('choo/http') and thus your bundle will not include xhr, so the only penalty is the minimal time it took to install xhr when you installed choo (which is not much since xhr is tiny). i personally like this approach of grab bag modules, but it is a slight departure from a pure "batteries not included" approach.

from choo.

kristoferjoseph avatar kristoferjoseph commented on May 12, 2024

yes, I feel that choo should have http, but something like yo-yo should not.

from choo.

yoshuawuyts avatar yoshuawuyts commented on May 12, 2024

Yeah, I'm not overly convinced http should be in choo, as the framework has evolved slightly - that said: http is super staple to most apps so having a strong opinion on how to do it isn't bad I think (e.g. definitely stay away from Fetch)

So not too fussed - if people strongly feel it should go, it goes; if that's not the case I reckon it's okay to leave it in as there's no cost to it.

from choo.

timwis avatar timwis commented on May 12, 2024

if you don't need to make http requests then you can choose to not require('choo/http') and thus your bundle will not include xhr, so the only penalty is the minimal time it took to install xhr when you installed choo

good point! i can see both sides. I don't feel strongly either way, just wanted to put it out there. Feel free to close the issue unless you think there's more feedback to be had, @yoshuawuyts. Thanks for the responses.

from choo.

yoshuawuyts avatar yoshuawuyts commented on May 12, 2024

Hah yeah, think it's alright to keep it for now and close this then. If someone feels strongly about it discussion is def welcome, always welcome to reopen!

from choo.

Related Issues (20)

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.