News for hackers. Stuff that matters.

jonahkagan

Re:Ask HN: What sub $200 product improved your 2022 on Friday January 06, 2023 @01:30PM (#34278813)
What's your brown rice approach? I've tried a few diff ones I've found online but none have turned out amazing
Re:How to Test Private Functions in JS Modules on Tuesday July 29, 2014 @07:30PM (#8105569)
(They are very good points though! Thanks for sharing them)
Re:How to Test Private Functions in JS Modules on Tuesday July 29, 2014 @07:29PM (#8105561)
What if the private methods are complex but also module-specific? For instance, if they deal with a data type that is private to the module?

When you pull out complex code like this into another module, how do you specify that the new module is actually private to the old module?

Re:How to Test Private Functions in JS Modules on Tuesday July 29, 2014 @07:26PM (#8105551)
That's a great point. I definitely agree that erring on the side of modules is better. I just worry about times when the purpose of a module is not clearly defined at the outset (e.g. when it only contains one function that is only used in one other module). I have often seen that devolve into the "helper" module, where random functions collect.

I'm also not sure I buy the assertion that all code you would want to test is code you would want to export publicly. Do you have any reasoning to support that idea?

Re:The Best Tool for the Join: Scaling Node.js with Unix on Thursday June 19, 2014 @01:47PM (#7917321)
Yep, we use CoffeeScript.
Re:The Best Tool for the Join: Scaling Node.js with Unix on Wednesday June 18, 2014 @05:45PM (#7913064)
Good find! I can't seem to find a comment that indicates what the new limit is though. Experimentally, we were seeing processes dying at around the 1.7GB to 2GB range.

Did you find anything indicating what the expected new limit is?

Re:Roshi: a CRDT system for timestamped events on Thursday May 22, 2014 @01:33PM (#7785030)
sagichmal, could you elaborate on "we were able to map a fan-in-on-read stream product to a data model that could be implemented with a specific type of CRDT"? The post (which is awesome btw) glosses over exactly how Roshi is used to solve the problem presented in the first half of the post - or at least it seems that way to me as I am unfamiliar with CRDTs.
Re:As Math Grows More Complex, Will Computers Reign? on Tuesday March 05, 2013 @01:04AM (#5323186)
Link seems to be down, but I'd be interested.
Re:Steve Smith On Optimizing For Happiness on Saturday March 02, 2013 @01:00PM (#5310313)
Does anybody know of other flat companies? I've heard Valve is somewhat like this. What about outside of the software industry?
Re:Try JavaScript macro expansion using Sweet.js in the browser on Thursday January 17, 2013 @10:47AM (#5073236)
Yeah, that's a good point, but if you got all the CoffeeScripters' attention and then showed them that CoffeeScript is just one possible improved syntax...
Re:Try JavaScript macro expansion using Sweet.js in the browser on Thursday January 17, 2013 @10:45AM (#5073223)
> Sweet.js doesn't have the ability to make whitespace significant

Feature, not a bug? But yeah, I guess that would be an impediment to implementing CoffeeScript. I'd like to see some of the CoffeeScript syntax implemented but without whitespace dependency (so it would have to be a modified version of the syntax).

Re:Try JavaScript macro expansion using Sweet.js in the browser on Thursday January 17, 2013 @01:13AM (#5071323)
Someone should implement CoffeeScript as macros. That would get everyone's attention.
Re:Create and delete branches on Wednesday January 09, 2013 @07:38PM (#5034542)
I can't believe it. I was looking for this functionality just yesterday and now here it is.
Re:How Lisp is Going to Save the World on Wednesday January 09, 2013 @05:14AM (#5030914)
Apparently Noir is deprecated in favor of Compojure, according to http://news.ycombinator.com/item?id=5027560.
Re:Introducing human.io on Friday August 31, 2012 @04:18AM (#4458791)
> Come up with 2-3 more scenarios like those and...

...ask users to vote on them using human.io

Awesome stuff. John Resig, if you're in here, can you give any details on the challenges of instantly updating the Processing sketch? I can just wait for the blog post, but I'm really curious.

Also, what components exactly are you planning to release open source? The other work in this area that I've been able to find is very tightly coupled to the rendering library (d3 or PJS). Is the Khan Academy system open to alternate rendering libraries?

Ah, so not National Institutes of Health. Makes more sense now