News for hackers. Stuff that matters.

michaelfairley

Re:A bit of math around Cloudflare's R2 pricing model on Thursday September 30, 2021 @11:41AM (#28707637)
Durability is not availability.
Re:Announcing Rust 1.13 on Thursday November 10, 2016 @05:33PM (#12925161)

  baz(foo).expect(format!("Cannot do baz, foo={}", foo)).bar().expect("Cannot do bar");
Re:The Beauty of Concurrency in Go on Monday April 29, 2013 @01:11AM (#5624189)
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

Re:So, I tried Dwolla on Thursday April 18, 2013 @06:17PM (#5573513)
Venmo now has payout business accounts: https://venmo.com/payouts
Re:Today's Email Incident on Tuesday March 19, 2013 @09:42PM (#5405025)
The "backwards-incompatible change" was part of a security fix, not an unrelated non-security change.
Re:Introducing Braintree.js on Friday March 08, 2013 @09:11AM (#5343469)
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.
Re:Introducing Braintree.js on Friday March 08, 2013 @12:03AM (#5342157)
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).

Re:Writing Web Applications in Go on Sunday March 03, 2013 @05:44PM (#5315540)
Closing the server is easy; making sure all in flight requests finish successfully, not so easy.
Re:Writing Web Applications in Go on Sunday March 03, 2013 @05:43PM (#5315538)
My favorite โ€“ the method that determines the size of the connection pool: http://golang.org/src/pkg/database/sql/sql.go#L227
Re:Writing Web Applications in Go on Sunday March 03, 2013 @02:52PM (#5315009)
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.

Re:Why we don't hire programmers based on puzzles and tricks on Friday February 22, 2013 @03:03PM (#5266422)
You can also follow the letter in C, Java, etc.:

  a ^= b
  b ^= a
  a ^= b
Re:Heroku Blog: Routing Performance Update on Saturday February 16, 2013 @02:08AM (#5230721)
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.
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...
Re:Multiple vulnerabilities found in Rack on Friday February 08, 2013 @12:24AM (#5186444)
Almost all Ruby web apps are deployed on top of Rack.
Re:What I Expect From a Programming Language on Sunday January 06, 2013 @11:15PM (#5019291)
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...

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

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

Re:When REST isn't Good Enough on Tuesday November 20, 2012 @04:57PM (#4811580)
Not your typical book, but it's very good: http://designinghypermediaapis.com/

Older ยป