Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mark242
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
241.
▲
by
mark242
11y ago
"I am really failing to understand how this could be broadly useful." For one, it is a huge step forward from existing payment processor communication. Most card acquirer software is vintage 1997, either by sending large amounts
242.
▲
by
mark242
11y ago
The token comes from your acquirer (eg Stripe), not the bank-- the acquirer is the one holding the card info, then when you submit a request to your acquirer, they perform a lookup on the token, grab the card data, and do the real lifting o
243.
▲
by
mark242
11y ago
https://developer.visa.com/images/cybersource.png https://developer.visa.com/products/cybersource/reference#cy... Ugh. Using this means that your application is in scope for PCI controls, sin
244.
▲
by
mark242
11y ago
Blatant Show HN plug: https://octave.is is a paid version of SoundCloud without the ads, Youtube-esque comments, and other garbage that clutters up individual artists' pages. Consider it the Vimeo to SC's Youtube.
245.
▲
by
mark242
11y ago
This is all you need to read: https://web.archive.org/web/20050715000000*/http://www.fucke...
246.
▲
by
mark242
11y ago
"With that being said given the state of the public market (going down + low dividends) startups will still look sexy for a long time. I wouldn't worry about it." This is such a ridiculous comment that it needs to be highligh
247.
▲
by
mark242
11y ago
The Scala landscape is very, very quickly creating their own libraries for similar popular Java libraries/frameworks. It is entirely possible to create an application, web or otherwise, that uses no Java libraries at all (save for the
248.
▲
by
mark242
11y ago
Am I missing the obvious? They're using text columns as blob stores for JSON data? How on earth do you query that in MySQL? How do you run a secondary index, on say the user_id? Is it just one gigantic instance of Elasticsearch or Luc
249.
▲
by
mark242
11y ago
That's fine for simple one-off apps that don't require serious infrastructure, but Heroku is just ridiculous with its pricing if you need any kind of complexity. I can burn through 1GB of Redis cache really easily; on Heroku, that
250.
▲
by
mark242
11y ago
James Archer, author of the piece, is Chief Creative Officer of both Crowd Favorite, and Forty, both of which use -- surprise -- the hamburger menu in their mobile sites. Is this another case of "do what I say, not what I do"?
251.
▲
by
mark242
11y ago
Except most people deploy dual HAProxy servers connected via heartbeat, which share a floating IP. There's no SPOF. Deploying new microservices is as simple as managing the HAProxy config file via Chef or Puppet.
252.
▲
by
mark242
11y ago
case class Foo(bar: String, baz: String)
253.
▲
by
mark242
11y ago
val immutableString = "foo" val immutableList = List(1, 2, 3) val immutableMap = Map("foo" -> "bar") var mutableString = "foo" val mutableList = collection.mutable.List(1, 2, 3) val mutableMap = co
254.
▲
by
mark242
12y ago
"As someone who would like to avoid going to the trouble to implement HTTP2 (...)" Good luck with that. Google has been incredibly adept at using the leverage of their search engine to make webmasters adhere to best practices. (&q
255.
▲
by
mark242
12y ago
I would imagine that once HTTP/2 becomes a serious implementation, this kind of thing will be unnecessary.
256.
▲
by
mark242
12y ago
"The asynchronous, non-blocking approach, is always wrong." http://en.wikipedia.org/wiki/Fallacies_of_Distributed_Comput... If you have a method that relies upon a DNS query, and your DNS server starts to r
257.
▲
by
mark242
12y ago
Don't take my comment as "quit living in the past". Take it as "here's how exciting the future is". I'm not telling you your startac phone is crap, I'm telling you there's this great new thing ca
258.
▲
by
mark242
12y ago
Blocking in Play should be foreign. On modern hardware architectures, writing code that blocks is the equivalent of throwing up your hands and saying "I can't trust myself to write efficient code so I'll just scale out my h
259.
▲
by
mark242
12y ago
It's funny. An "Introduction to Modern Java Web Development" sounds like a primer for the Play Framework, Scala, and Akka. Each of the examples looks like the starter documentation for Play, in that you've got your json
260.
▲
by
mark242
12y ago
Surprisingly enough, before the 2014 season with brake-by-wire, drivers would have to adjust the brake bias (forward vs rear) by moving a little lever down next to their knees. They'd be taking their hands off the wheel all the time .
261.
▲
by
mark242
12y ago
The reason that -- at least on the Sauber -- the speed is displayed so large is that it's the number that's changing the most rapidly. It isn't a primary piece of information, but when the car is accelerating away from a corn
262.
▲
by
mark242
13y ago
Having worked with Scala for the past almost two years, I can tell you this: you're missing out by not using IntelliJ. It is a huge timesaver, not just from the code completion or the inspections, but also by being able to fire up FSC
263.
▲
by
mark242
13y ago
Specifically, "Requires immediate total cooperation from everybody at once"
264.
▲
by
mark242
13y ago
An Akka actor simply must not issue a DB call That's untrue. With Akka's pipe pattern, you can take the results of any future and pipe it back to the sender, including using a map on the future if you like. This is how we do rea
265.
▲
by
mark242
13y ago
A good Scala programmer will never write the word null in their code. Ever. If I was overly concerned that the method was going to be called by Java code, I'd put this: Option(s).getOrElse(List[String]()).filter(str => Option(st
266.
▲
by
mark242
13y ago
Here is the magic of Scala. A collection designed for concurrency: val users = List("seanmcdirmid", "mark242").reverse That same collection, designed for parallelism and concurrency: val users = List("seanmcdirmid&q
267.
▲
by
mark242
13y ago
Ah, synchronizedCollection, the... hang on... wait a sec... one more sec, someone's doing something... now? no, not yet, wait... how about... NOW! synchronizedCollection, the global lock for Java's mutable datatypes. Here's t
268.
▲
by
mark242
13y ago
-- I'm not convinced that the overhead of copying immutable data doesn't outweigh the benefits of the ability to trivially parallelize the code. Let me introduce you to my friend, Mister ConcurrentModificationException. He'
269.
▲
by
mark242
13y ago
This is completely untrue. Every single Java developer that I introduce to Scala-- every single one-- six months later, they tell me "please don't make me go back to Java". The "disenchanted" piece, I think, comes f
270.
▲
by
mark242
13y ago
I don't think that's right. TraversableLike, and FilterMonadic will both size up the resulting return value based upon the length of what's passed to it. You'll get a List of N items, and the call to flatMap will also tr
More ›