Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
andrewvc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
241.
▲
by
andrewvc
12y ago
To add to this, the schema.rb or structure.sql files rails makes are never 'accurate'. By which I mean, they simply record the state of the database at the time of the last migration. If you are switching between branches, for ins
242.
▲
by
andrewvc
12y ago
If you've ever bought bandwidth at a colo you know the AWS rates have extremely high margins. I'd wager that DO can afford it, it just eats at their margins.
243.
▲
by
andrewvc
12y ago
Recall that PUT / DELETE aren’t official HTTP requests, rather extensions implemented via WebDav. Modern applications don’t bother with these requests since its easier / more secure to perform those same actions with a server sid
244.
▲
by
andrewvc
12y ago
Interesting, I'm looking at it right now, and it's saying that the multiple regexes are ~ 50% slower in both chrome and firefox. Am I missing something? It looks like the single regex actually is a significant win. It is interesti
245.
▲
by
andrewvc
12y ago
You are 100% correct, I forgot about that extra group (that doesn't need to be there). That being said, most frameworks don't have multiple matching routes, and I can't imagine that many people miss them. I've never used
246.
▲
by
andrewvc
12y ago
Ah, I did miss that, but it does still work. Run the following code below, you'll see multiple groups match. "/foo/bar/3".match(/((^\/foo\/bar\/.*)|(^\/foo\/bar\/(\d+)$)
247.
▲
by
andrewvc
12y ago
You're right that it's O(n), but it's still faster than express js. It's not iterating through the array that's slow, its evaluating the members of that array. Express must check each route using JS functions that e
248.
▲
by
andrewvc
12y ago
First off, you don't need to handle the 'multiple' case, since the "|" has precedence rules applied to it. The leftmost match is the match. Second, you know which one matched based on the index of the capture groups
249.
▲
by
andrewvc
12y ago
What I'm saying is that the pipe (or) "|" is a cheap way to combine regexps. It has its limitations, but its better than an O(n) search through an array. The regexp parser can create an NFA that is far more optimized.
250.
▲
by
andrewvc
12y ago
A lot of people here are right, the right way is with an NFA. I just want to add that the solution is not even hard, you can do it with string concatenation and capture groups using regexps. Regexps are NFAs, and are highly optimized C code
251.
▲
by
andrewvc
12y ago
We were in a similar spot. Our startup is building a relatively large flux app. We interviewed Ian Obermiller of FB on a lot of the concerns of a large app. You can find a lot of answers to tough questions in our transcript: http:/&#x
252.
▲
by
andrewvc
12y ago
Why are they demoing this 'ergonomic' desk, with such an unergonomic monitor configuration? If you don't raise the monitor up, and keep the keyboard level down to keep the right angles you'll be asking for pain. The poin
253.
▲
by
andrewvc
12y ago
I love it on the mac. I'm sure running it in the browser would suck It's more ephemeral than email. I appreciate having a lot of messages come through slack rather than clutter up my inbox. As far as all the stuff it 'already
254.
▲
by
andrewvc
12y ago
I think the thing you might not be aware of is that your posts are attempting to sidestep real issues. Instead of focusing the discussion around acknowledging and preventing abuse and discrimination, you're quibbling over whether women
255.
▲
by
andrewvc
12y ago
So you're seriously equating getting an unwanted job offer with a threat of sexual violence? What?
256.
▲
by
andrewvc
12y ago
What I urge people in this thread to do is not to pick up a google search, or read a book, but to just go out and ask a few female friends what their thoughts are about being online, being safe, and being respected, and to listen with an op
257.
▲
by
andrewvc
12y ago
You're right, you didn't 'quote' them. You merely summarized the articles inaccurately in order to make a point. I think that's actually far worse. It seems that you're intent on quibbling semantics, selectivel
258.
▲
by
andrewvc
12y ago
You're really selectively quoting those studies. From the first link (the pew poll): Young women, those 18-24, experience certain severe types of harassment at disproportionately high levels: 26% of these young women have been stalked
259.
▲
by
andrewvc
12y ago
One thing this is leaving out is that IBM existed, and was very successful, long before mainframes. The company has existed since the 1880s for christ's sake. Additionally, during the mainframe era it had a number of other successful p
260.
▲
by
andrewvc
12y ago
I fully agree! He should have just said "I know it's a huge problem, and candidly I don't have the answer, the research shows that women get short shrift for asking for raises, and there doesn't seem to be a clear good w
261.
▲
by
andrewvc
12y ago
Excited to see this get more press, a lot of Graal/Truffle stuff has been going into jruby lately! https://github.com/jruby/jruby
262.
▲
Detailed Interview on FB's React/Flux Framework with Ian Obermiller
(ianobermiller.com)
2 points
by
andrewvc
12y ago
|
0 comments
263.
▲
Why Aren't Women Advancing at Work? Ask a Transgender Person
(newrepublic.com)
4 points
by
andrewvc
12y ago
|
0 comments
264.
▲
by
andrewvc
12y ago
Well, react/flux completely replaces backbone except for the router. The models go away completely, as do the views.
265.
▲
by
andrewvc
12y ago
I'm actually using 'director' which works great, much simpler.
266.
▲
by
andrewvc
12y ago
What, no React/Flux? How can this be a serious comparison without React?
267.
▲
by
andrewvc
12y ago
Totally agree! FWIW, I'm betting on Hindley-Milner in the long run. The thing is, is it as important as something like library availability, good docs, etc.? Often times the answer is no.
268.
▲
by
andrewvc
12y ago
And herein lies the issue. As engineers we long to solve 'special' problems, and fool ourselves into thinking we need to do something novel and hard when something simple will do. We fool ourselves into thinking we NEED a faster l
269.
▲
by
andrewvc
12y ago
Also interesting, the cutting edge work lucene has done to make this possible in 4.x, using universal automatons to speed up fuzzy, regex, and other searches. http://blog.mikemccandless.com/2011/03/lucenes-fuzzyque
270.
▲
by
andrewvc
12y ago
Well, people do use these tools, but honestly, do you really want a language with multiple build tools / package managers? The java world is a mess here. Leiningen is pretty great, no need to fragment the community. As far as editors g
More ›