Better HN
topnewbestaskshowjobs
Log inSign up

michaelfairley

5,605 karma · joined Jun 3, 2009 (17y ago) · 437 submissions

michaelfairley@gmail.com

[ my public key: https://keybase.io/michaelfairley; my proof: https://keybase.io/michaelfairley/sigs/x20u7wynQvXsQ1nPkc0bf816WB13Uz5r0KbiIfOCCOc ]

Submissions

comment 5y ago · link · parent

Durability is not availability.

comment 10y ago · link · parent

  baz(foo).expect(format!("Cannot do baz, foo={}", foo)).bar().expect("Cannot do bar");

3.

Launching Instant Payments for Our European Merchants(braintreepayments.com ↗)

12 points · by michaelfairley · 12y ago · discuss

4.

Introducing Trustworthy: The "Two-man rule" for your data(jtdowney.com ↗)

1 points · by michaelfairley · 13y ago · discuss

comment 13y ago · link · parent

Goroutines are green threads[1], and thus are threads, just like Ruby 1.8s threads are threads.

Also, you can easily run 10s of thousands of kernel threads (provided you decrease the threads' stack size).

1: http://en.wikipedia.org/wiki/Green_threads

comment 13y ago · link · parent

Venmo now has payout business accounts: https://venmo.com/payouts

comment 13y ago · link · parent

https://github.com/cwales/cwales.github.com

comment 13y ago · link · parent

The "backwards-incompatible change" was part of a security fix, not an unrelated non-security change.

9.

Dance the flip-flop(robinsloan.com ↗)

1 points · by michaelfairley · 13y ago · discuss

comment 13y ago · link · parent

Braintree.js cuts down PCI scope as much as tokenization. We've worked with banks and auditors to make sure that this doesn't add any headaches for our merchants.

comment 13y ago · link · parent

We recommend that you don't store or log credit card data encrypted with Braintree.js.

As far as PCI compliance, Braintree.js minimizes your PCI scope as much as tokenization. As long as you serve your site over SSL and maintain adequate security around access to servers, administrative passwords, etc., when using Braintree.js, you'll fall under SAQ A (the lowest possible PCI scope for online merchants).

comment 13y ago · link · parent

Closing the server is easy; making sure all in flight requests finish successfully, not so easy.

comment 13y ago · link · parent

My favorite – the method that determines the size of the connection pool: http://golang.org/src/pkg/database/sql/sql.go#L227

comment 13y ago · link · parent

I've run Go in production for a web application, and I'll say that Go is not a great choice for this task. The built in HTTP server doesn't have a way to shut down gracefully, there's not a good zero-downtime restart story, and the standard library SQL package (and abstractions on top of it) has some nasty warts that only show up under concurrent load.

If you build a webapp in Go, be prepared to spend a lot of time monkeying around with problems that are solved issues on most other platforms.

15.

Introducing Braintree.js: The easiest way to accept credit cards online(braintreepayments.com ↗)

4 points · by michaelfairley · 13y ago · discuss

comment 13y ago · link · parent

You can also follow the letter in C, Java, etc.:

  a ^= b
  b ^= a
  a ^= b

comment 13y ago · link · parent

There's another large issue with queueing requests on the dyno: when the app restarts, all the requests currently queued up on that dyno get dropped and the client receives a 503.

comment 13y ago · link · parent

There's another fun issue that falls out of this: any requests sitting in the dyno queue when the app restarts get dropped with a 5xx error. https://github.com/michaelfairley/unicorn-heroku/issues/1#is...

comment 13y ago · link · parent

Almost all Ruby web apps are deployed on top of Rack.

20.

Multiple vulnerabilities found in Rack(groups.google.com ↗)

21 points · by michaelfairley · 13y ago · 7 comments

21.

Venmo Touch: In-app payments with one tap(touch.venmo.com ↗)

2 points · by michaelfairley · 13y ago · discuss

22.

Simple NYE Postmortem(status.simple.com ↗)

2 points · by michaelfairley · 13y ago · discuss

comment 13y ago · link · parent

He wants "x is declared but never used" to be an error that halts compilation. Go's philosophy on this[1] is "if it's worth complaining about, it's worth fixing in the code."

1: http://golang.org/doc/go_faq.html#unused_variables_and_impor...

comment 13y ago · link · parent

This affects all versions of Rails, not just 3.x.

This is a really, really bad hole, and you should patch or upgrade ASAP.

comment 13y ago · link · parent

http://www.whoownsmyavailability.com/

26.

A guide to working with Riemann(aphyr.github.com ↗)

4 points · by michaelfairley · 13y ago · 3 comments

27.

On Twitter, at Twitter(antirez.com ↗)

1 points · by michaelfairley · 13y ago · discuss

28.

MIG-in-the-middle(danteslab-eng.blogspot.com ↗)

3 points · by michaelfairley · 13y ago · 1 comment

12345
15