5 ms·
Show HN: A Javascript library to overcomplicate Five
- timme 12y agofinally. shame it's not written in the much more scalable coffeescript.
- oakesm9 12y agoGive it a day and someone will have ported it ;-)
- rmrfrmrf 12y agoDone. https://github.com/barretron/five https://github.com/barretron/five
- vladharbuz 12y agoBut but but I did it first! And you didn't even publish it to npm. :C https://github.com/vladh/five-coffee https://github.com/vladh/five-coffee
- rmrfrmrf 12y agoMine's class-based and compiles to javascript on install. HOLD DAT! ;)
- vladharbuz 12y agooh snap
- vladharbuz 12y agoHow about two hours? https://github.com/vladh/five-coffee https://github.com/vladh/five-coffee `five-coffee` on npm.
- nateguchi 12y agotry this: http://js2coffee.org/ http://js2coffee.org/
- jgillich 12y agofive.tooSlow = function() { var returnIn = new Date(new Date().valueOf() + 555); do {} while(new Date() < returnIn); return five(); }; Finally a way to escape callback hell. I think somebody should write a jQuery.ajax plugin that calls the function repeatedly until a request is finished.
- sfeng 12y agoThat actually wouldn't work, as the response from the request would never be processed while you were looping. You can make synchronous requests already though: req = new XMLHttpRequest req.open("some/url", "GET", false); req.send()
- mooreds 12y agoI'm a little disappointed the test doesn't verify correctness addition, subtraction, multiplication or division. Sigh. I suppose I'll have to submit an issue and pull request.
- deleted 12y ago[deleted]
- weddpros 12y agoWho's gonna write Flappy Five in JS?
- filearts 12y agoThanks for sharing, but in my app I really need five to be six. If you could address this one small issue I'm sure your lib would see much more use.
- andrey-p 12y agoWhoah. The Mongolian word for "five" means "ceiling" in Bulgarian.
- neals 12y agoWake up sheeple!
- sramsay 12y agoBut what good is a five overcomplication library without overly complicated documentation?
- dclowd9901 12y agoReally makes me wish you could invoke instance methods on numbers (ala 5.amIFive())
- Softcadbury 12y agoYou can :) Number.prototype.amIFive = function(){ return this.valueOf() == 5; } 5..amIFive();
- dclowd9901 12y agoAh, so you have to have two dots... I suppose the first one denotes the floating point value, and the second denotes the prototype accessor. Very clever.
- phpnode 12y ago(5).amIFive();
- hacliff 12y agoThis can't be right, nowhere near enough dependencies
- talles 12y agoCan't wait until it reach version... 5
- saraid216 12y agoAHA! I knew it! ALL THINGS HAPPEN IN FIVES. What can't you accomplish with this library? http://principiadiscordia.com/book/23.php http://principiadiscordia.com/book/23.php
- assertnotnull 12y agoThis will be ported to GWT 5.5.0 in a FiveLabel. It would fit nicely.
- zaptheimpaler 12y agoI poked around at the source code and this really doesn't seem to be web scale at all. Please look into mongodb to store the five, maybe throw in Redis to cache five in memory, and consider using a real-time processing framework like Storm to implement mapping and reducing five. Until then I'm afraid this is just far too slow to consider using seriously in my web-scale project. This probably cant even handle 100M+ requests/second. Right now, its just me and grandma so I need 2 requests/sec, but this really doesn't seem scalable.
- deleted 12y ago[deleted]