Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
eldude
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
121.
▲
by
eldude
12y ago
Of course. I didn't want to muddie the issue, but I would consider compilation flags, transpilation (e.g., coffeescript) and linting (e.g., jshint, etc...) to reside between "Language rules" and "Unit tests."
122.
▲
by
eldude
12y ago
This is fundamentally what I call the Tower Defense[1] model, borrowed from my old manager here at LinkedIn, Rino Jose[2]. The Tower Defense model is an approach to software reliability that focuses on catching bugs at the lowest level, to
123.
▲
by
eldude
12y ago
> They are nestable trycatch is nestable as well. > they can store arbitrary values, timers Nice. I am currently decoupling trycatch's hooking layer to allow for this arbitrarily[1]. The continuation-local-storage library[2] allo
124.
▲
by
eldude
12y ago
tldr; Node.js' super light-weight cooperative-multitasking[1] allows IO optimizations only humans understand. I agree with this whole-heartedly, but it does put the limitation on the human, and not on the computer, which is actually th
125.
▲
by
eldude
12y ago
A major limitation of using try/catch is that V8 will DEOPT your function call, which can be a 5-10x performance hit (to the current closure). The best way to avoid this is with a silly hack: function trycatchit(fn, that, args) {
126.
▲
by
eldude
12y ago
Ah, sorry then for my strong rebuke. I am making the incorrect assumption then that this was a StrongLoop marketing line, not a coincidental similarity.
127.
▲
by
eldude
12y ago
> Up until recently that was pretty much all we had. [Edit: see my comment below[0]. This is more a coincidence of wording than a StrongLoop marketing line] When StrongLoop talked at my south bay node.js meetup group, BayNode[1], at Hack
128.
▲
by
eldude
12y ago
Yes, that's wrong. Empty comments can be ok if they're positive. From http://ycombinator.com/newswelcome.html
129.
▲
by
eldude
13y ago
Seriously, check out the demos, http://demo.famo.us/ . Pretty impressive.
130.
▲
by
eldude
13y ago
I think the human subconcious mind is capable of levels of pattern-matching and intuitions that manifest as vision: aka something you "know" but can't necessarily explain. Visions aren't always correct, but they're
131.
▲
by
eldude
13y ago
This is the result of placing the burden of proof on vision and innovation. Companies optimize for local maxima at the expense of global maxima because proving that both the mountain exists in the distance and that you can reach it, turns o
132.
▲
by
eldude
13y ago
co(function *(){ let promiseA = makeHttpRequestA() let promiseB = makeHttpRequestBFromA(yield promiseA) var res = new Foobar(yield promiseA, yield promiseB); })();
133.
▲
by
eldude
13y ago
Unfortunately, a great deal of the perceived "racism" in the US is actually cultural. The greatest example of this are Blacks. Yes, African Americans have an extensive, awful and horrific national history of racism and abuse, but
134.
▲
Kit Kat Conspiracy (2002)
(everything2.com)
147 points
by
eldude
13y ago
|
164 comments
135.
▲
by
eldude
13y ago
Put one of the following in your package.json "postinstall" hook: npm link lib link -s lib node_modules/lib Then: require('lib/models/user') No matter where you are.
136.
▲
by
eldude
13y ago
http://github.com/CrabDude/trycatch
137.
▲
by
eldude
13y ago
I addressed your point and you are acknowledging it and I can see you understand it from you various other responses. Promises catch "synchronous" exceptions, however unlikely. You can optionally rethrow them / manually crash
138.
▲
by
eldude
13y ago
FWICT, I fully understand the example and addressed your points directly. You can wrap callbacks to catch everything or always crash, aka while allowing non-caught async errors to be handled in a custom manner as you point out. An
139.
▲
by
eldude
13y ago
You're talking about the core/userland boundary beyond the origin tick, and we're both right. Promises coerce caught exceptions occurring on the origin tick to errors (bad), while allowing non-caught async errors to be handle
140.
▲
by
eldude
13y ago
The problem with discussions of promises vs ... is there's usually a great deal of misunderstanding about what problem promises are solving: enforcement of the callback contract. I could go on for hours about the subtleties in the conv
141.
▲
by
eldude
13y ago
There is currently a great deal of potential for disruption of engineering business organization hierarchy. At the heart of the problem is how to cohesively address the limited distribution of control, freedom, money, stability and reward.
142.
▲
by
eldude
13y ago
See AGen Spec[1] & gens[2], which implements it. [1] https://github.com/AsynchronousGenerators/agen-spec [2] https://github.com/Raynos/gens
143.
▲
by
eldude
13y ago
Checkout the movie Europa Report to feed your SciFi fantasies.
144.
▲
by
eldude
13y ago
Here's a philosophical question, as technology progresses to the point that virtual reality is so good that it is able to replace real children in cases like these and satisfy child predators thus eliminating victims is this a fundamen
145.
▲
by
eldude
13y ago
You're missing the distinction; Nobody kept their MySpace around or created a new one once is was replaced because it was unnecessary. You could say it's like AOL Instant Messenger, but if anything that's a weaker analogy sin
146.
▲
by
eldude
13y ago
I bet you'll never forget the memory and ironic imagery of walking in with celebratory champagne for a startup that lost one of its founders to a room full of founders. Also, would love an opportunity for a seat at one of those poker g
147.
▲
by
eldude
13y ago
Facebook isn't just losing ground to a specific demographic, they're losing centrality and relevance in a market they defined. While Facebook may be pervasive, it's pervasive in the way that Microsoft Office was in an era of
148.
▲
by
eldude
13y ago
Very cool to see a fellow Arkansan and Little Rocker on HN![1] Ping me if you're ever in the valley, would love to grab lunch. [1] https://news.ycombinator.com/item?id=6730823
149.
▲
by
eldude
13y ago
This is just about the most absolutely bizarre thing in the world for me to see my High School football coach on the front page of Hacker News. I attended Pulaski Academy (PA) 6th-10th grade and played football there from 7th-10th grade, 1
150.
▲
by
eldude
13y ago
Good stuff. This will come in handy if node.js 0.12 takes much longer. Watching the use of generators in JavaScript and especially node.js is going to be very exciting over the coming years. We're excited at LinkedIn because we write a
More ›