Git Product home page Git Product logo

Comments (9)

raimohanska avatar raimohanska commented on August 21, 2024

[2,7,8] more likely. I like the idea, and this is easy to impl. but
could you please describe the actual use case? For the example you
could use lodash instead;)

from bacon.js.

wolfflow avatar wolfflow commented on August 21, 2024

Yes, I know that I can use classic reduce way:-) But the main thought is: if there is a way to map asynchronounsly, there ought to be a way to reduce the async collection too. Also, Linq has a ToArray method for the same purpose.

from bacon.js.

raimohanska avatar raimohanska commented on August 21, 2024

Computes. Use case still missing though. I don't want to sound like a party pooper, but there's a shitload of things that could be added and would be quite easy to add. Still, if there's no convincing use case, I don't want to include functions to the core just for the sake of it. Everything we add will be transmitted over a network connection to the end-user browsers, you see.

Maybe it's time to introduce Bacon.js Enterprise Edition? Just kidding, but some extra lib might be a good idea for collecting the not-so-core-but-still-potentially-useful funcs.

from bacon.js.

eskimoblood avatar eskimoblood commented on August 21, 2024

Maybe the lib could have a build process like lodash where you can select the components for the compiled minified version.

from bacon.js.

wolfflow avatar wolfflow commented on August 21, 2024

So, extending BaconJS in BaconJS.UI way is suitable?
Thanks for your attention =)

from bacon.js.

raimohanska avatar raimohanska commented on August 21, 2024

The purpose of Bacon.UI is to introduce jQuery UI specific helpers, that are not suitable for the Bacon.js core.

And don't get me wrong: if there is a real-world need for fold, we'll add it to the core in no time :)

from bacon.js.

raimohanska avatar raimohanska commented on August 21, 2024

Btw, here's fold for your pleasure

https://gist.github.com/4686503

from bacon.js.

wolfflow avatar wolfflow commented on August 21, 2024

Thanks a lot!)

from bacon.js.

mileskin avatar mileskin commented on August 21, 2024

@eskimoblood I have thought about the exact same thing :-) It would be really neat to be able to create custom builds where you get only the methods you are using.

bacon include="Bacon.combineTemplate, Bacon.Bus"

would yield a really tiny js.

from bacon.js.

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.