HNHacker News
TopNewBestAskShowJobs

markburns

296 karma · joined February 18, 2012

submissionscomments
markburns··on Condoleezza Rice Joins Dropbox’s Board As It Names New CFO, COO
This is more than slightly off topic but...

Whilst I agree with the sentiment of the comment you replied to, at first I read your comment, then felt a negative reaction towards your reply. My (very much initial) thought process was to try and think of a rebuttal to your request for some details.

Just taking a few moments to think (and whilst I still think that the original post is probably correct), it's funny just how easy it is to fall into an emotional reaction and justification pattern of communication.

It's hard to admit, but I'm almost certainly emotionally biased against people that I think (whether rightly or wrongly) have been directly or indirectly involved in the deaths of others. It's logically obvious that that could occur, but it's surprising that my reaction has the potential to override my (mostly logical mind) that I agree with your point and think the original commenter absolutely should provide some supporting evidence to such strong opinions.

Apologies to anyone that found this to be an overly laboured and/or irrelevant point. It felt to me like an interesting bit of introspection.

markburns··on Vim.js - JavaScript port of Vim
_I_ use backspace for navigation. What's the alternative? Use a mouse?
markburns··on Never create Ruby strings longer than 23 characters
For anyone interested, he points to an older translation of the Ruby Hacking Guide, there is a pretty much complete translation at

http://ruby-hacking-guide.github.com

markburns··on How reddit tried to solve the "new link" problem. Why HN doesn't need a new algo
Would a graph help with the computationally difficult part? They seem suited to recommendation stuff. (Assuming the echo chamber thing is not/is not an insurmountable an issue)
markburns··on How reddit tried to solve the "new link" problem. Why HN doesn't need a new algo
Thanks, yeah that satisfies my curiosity and seems like a reasonable explanation.
markburns··on How reddit tried to solve the "new link" problem. Why HN doesn't need a new algo
> Only governments can censor.

Bit of a side issue, but that's an interesting statement, I've never heard that before. A quick google doesn't seem to back that up, so I wonder what I'm missing, or why you said that?

markburns··on Satoshi Nakamoto is probably Nick Szabo?
Thanks to you and gambiting for providing what I guessed may be the benefits, I'm still confused about the feasibility. Can you prove something doesn't exist?
markburns··on Satoshi Nakamoto is probably Nick Szabo?
Could you expand upon the feasibility and the benefits of proving you had destroyed earlier coins?

I'm not calling into question what you say, just curious as to what you mean.

markburns··on Ruby hacking guide
Absolutely :) https://github.com/ruby-hacking-guide/ruby-hacking-guide.git... I'm taking the approach of trusting first, so if your first PR isn't insane, then no reason not to add you to the team.
markburns··on Ruby hacking guide
Sounds like a good idea. After a considerable length of inactivity we've had some great translation contributions from github use ocha-. Taking it pretty much to the finish line. I'll do some proofreading too, as I know he's not a native English speaker. I guess epub formats etc would make sense too.
markburns··on The Pull Request Hack
Do you know about the compare view?

http://jbuckley.ca/2011/09/githubs-compare-view/

http://zachholman.com/talk/git-github-secrets/

markburns··on Haters Gonna HATEOAS
There's two massively under-addressed problems with the HATEOAS constraint:

1. Code-on-demand requires coupling of technology stack of client and server. (If you're going to assume your clients can run javascript or x-technology, where is the decoupling?)

2. Out-of-band communcation. Some of the recommendations I've heard have been along the lines of: let's avoid out-of-band communication in API docs etc and have it completely discoverable based on the media type. "And what happens if the media-type isn't sufficient to represent your use case?"

"That's easy, you create your own media type"

So in order to have no need for API docs for an actual API, I create a completely separate media type (which will need its own RFC type specification, or at the very least its own API docs).

This is purely academic, and I still think that nobody is doing it because only those that have tried it or seriously thought through the implications are naysayers. Nobody who's actually built a system like this is coming forth and explaining the benefits.

Maybe if we get some media type that everyone starts using because (unlike XML/JSON etc) it supports full REST-like semantics i.e. forms for POSTing and not just hyperlinks for GET requests, then we may see the purported benefits. But you still run into the problem of expressing field level validation messages in a 422 response. And expressing the valid values in a reasonable way in a template for an object.

Yes, expressing a String or a DateTime object or any other relatively primitive data type with simple validations: presence of, within array of, valid email, valid phone number may be possible.

But most of the time you can't predetermine this kind of contract up front. So there's no way of me, the producer of the API, expressing to you, the consumer of the API, that this particular regex completely satisfies my business requirements in all circumstances.

If I could nail down the expression of the required values for an API call in any sufficiently complex business system and convey it to you in some easy to digest, computer-understandable format then I'm sure we'd be gold.

But reality sets in and you realise you've added a whole bunch of cruft to every API call, and a whole bunch of unnecessary API calls to express some theoretical idea by an academic who admits that he's too busy to actually go away and start building some of these systems.

Not only that, you're making it harder for your consumers to integrate. (Unless they are using an already known media-type, which is a chicken and egg situation as the closest we have to being good enough is HTML, and you try explaining to API consumers, yes the future is HTML, and yes I want you to parse HTML to get the data from my API).

We could start saying, well hell to efficiency as technology consistently improves, but we're dealing with routing packets over the internet at approximately the speed of light. There is a real-world upper limit to this stuff and we need to improve efficiency because if you add 10 extra HTTP requests per API call, your users _will_ notice. This stuff matters.

Hell, even if these are not user critical applications and there is some as yet not understood benefit to the world as a whole having asynchronous processes running in the backends of our systems optimising some problem space and searching for solutions on their own, then we still have another real world problem. There has to be some short to medium to even long-term benefit to building this kind of system to someone.

Nobody wants to build this theoretical hypermedia, semantic web on their own dollar when there is no visible pay-off in the near future or even idealistic theoretical pay-off in the long term.

markburns··on HN2JSON: A ruby gem for HackerNews
Cool thanks. Might be nice to override the inspect method to display something nicer.
markburns··on HN2JSON: A ruby gem for HackerNews
item = HN2JSON.find 4623690

NoMethodError: undefined method `url=' for #<HN2JSON::Entity:0x007fb84cd63a88>

from /Users/markburns/.rvm/gems/ruby-1.9.3-p194/gems/hn2json-0.0.4/lib/hn2json/parser.rb:92:in `block in get_attrs_post' from /Users/markburns/.rvm/gems/ruby-1.9.3-p194/gems/hn2json-0.0.4/lib/hn2json/entity.rb:92:in `add_attrs' from /Users/markburns/.rvm/gems/ruby-1.9.3-p194/gems/hn2json-0.0.4/lib/hn2json/parser.rb:91:in `get_attrs_post' from /Users/markburns/.rvm/gems/ruby-1.9.3-p194/gems/hn2json-0.0.4/lib/hn2json/entity.rb:71:in `get_attrs' from /Users/markburns/.rvm/gems/ruby-1.9.3-p194/gems/hn2json-0.0.4/lib/hn2json/entity.rb:56:in `initialize' from /Users/markburns/.rvm/gems/ruby-1.9.3-p194/gems/hn2json-0.0.4/lib/hn2json.rb:35:in `new' from /Users/markburns/.rvm/gems/ruby-1.9.3-p194/gems/hn2json-0.0.4/lib/hn2json.rb:35:in `find'

markburns··on Kindle edition of Effective Programming by Jeff Atwood (Coding Horror) for $0.00
Presumably that is based on his assumption that once the web app receives an email via https and it is to a gmail user, they don't send the message via email (i.e. it never travels over an insecure channel). It may be a reasonable assumption, but seems a little strange to boast about exactly how secure it is.
markburns··on Kindle edition of Effective Programming by Jeff Atwood (Coding Horror) for $0.00
Do you have a reference for that? Was quite shocked by that and searching his site found a couple of sensible articles about security, but nothing about emailing yourself your passwords. May just be that my google-fu isn't good enough.
markburns··on Student Is Sanctioned for Creating Class-Registration Web Site
220,000 minutes is about 153 days. It doesn't sound like that adds up to me.
markburns··on Ask HN: Just ordered my first Mac- what apps should I know about?
thoughtbot laptop script https://github.com/thoughtbot/laptop
← PreviousPage 5 of 5