Better HN
topnewbestaskshowjobs
Log inSign up

jonahkagan

50 karma · joined Mar 24, 2012 (14y ago) · 25 submissions

Submissions

comment 3y ago · link · parent

What's your brown rice approach? I've tried a few diff ones I've found online but none have turned out amazing

comment 12y ago · link · parent

(They are very good points though! Thanks for sharing them)

comment 12y ago · link · parent

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?

comment 12y ago · link · parent

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?

5.

How to Test Private Functions in JS Modules(engineering.clever.com ↗)

15 points · by jonahkagan · 12y ago · 17 comments

comment 12y ago · link · parent

Yep, we use CoffeeScript.

comment 12y ago · link · parent

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?

8.

The Best Tool for the Join: Scaling Node.js with Unix(engineering.clever.com ↗)

13 points · by jonahkagan · 12y ago · 10 comments

9.

Solving hard technical problems in education at Clever(engineering.clever.com ↗)

11 points · by jonahkagan · 12y ago · discuss

comment 12y ago · link · parent

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.

comment 13y ago · link · parent

Link seems to be down, but I'd be interested.

comment 13y ago · link · parent

Does anybody know of other flat companies? I've heard Valve is somewhat like this. What about outside of the software industry?

13.

Show HN: Import Google Calendar events into when2meet(jonahkagan.github.com ↗)

1 points · by jonahkagan · 13y ago · discuss

comment 13y ago · link · parent

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...

comment 13y ago · link · parent

> 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).

comment 13y ago · link · parent

Someone should implement CoffeeScript as macros. That would get everyone's attention.

17.

Show HN: Schematic Ipsum - generate realistic fake JSON data(schematic-ipsum.herokuapp.com ↗)

3 points · by jonahkagan · 13y ago · discuss

comment 13y ago · link · parent

I can't believe it. I was looking for this functionality just yesterday and now here it is.

comment 13y ago · link · parent

Apparently Noir is deprecated in favor of Compojure, according to http://news.ycombinator.com/item?id=5027560.

20.

Church Numerals and the Y Combinator(youtu.be ↗)

2 points · by jonahkagan · 14y ago · discuss

comment 14y ago · link · parent

> Come up with 2-3 more scenarios like those and...

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

comment 14y ago · link · parent

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?

comment 14y ago · link · parent

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

24.

Ask HN: Know of a library/platform for Google Docs style comments?

6 points · by jonahkagan · 14y ago · discuss