HNHacker News
TopNewBestAskShowJobs

bct

1,293 karma · joined August 14, 2007

<http://diffeq.com/bct>
submissionscomments
bct··on Eve: A Python REST API Framework
http://www.ietf.org/rfc/rfc5023.txt

There's no need to be sarcastic.

bct··on Eve: A Python REST API Framework
I think you're being too hard on it. It's difficult for me to see how a general-purpose library could cover many of those things.

Could it go further, and do a better job of encouraging people to use REST? Sure. But it's trying to be pragmatic, and right now we're dealing with a world where people think that their unwillingness to learn is an argument against an architectural style.

bct··on Eve: A Python REST API Framework
I thought just the opposite. I was pleasantly surprised to see that it looks pretty in line with Fielding's thesis. What are you objecting to?
bct··on The US government has betrayed the internet. We need to take it back
Government and industry can't betray the Internet, because they never had an obligation to it. You were naive if you ever thought you could trust them to be "ethical internet stewards".

Yes, we should be angry. But we should also check the assumptions that led us to misplace our trust.

bct··on Python module that makes working with XML feel like working with JSON
A significant portion of that grammar is for parsing DTDs, which isn't really a fair inclusion.
bct··on Don't Fly During Ramadan
"Concentration camp" is just a Boer War-era euphemism for "prison camp".
bct··on A Week with Mozilla's Rust
I'm new to Rust and I'm not familiar with this code, but here's an attempt at an explanation anyways:

The "error" function returns a struct containing the error string. I suspect the intention is to allow dynamically constructed error messages like "syntax error at line 4, char 3" (although it doesn't seem to be doing this anywhere). Since the string might be dynamically allocated, it has to be freed when the struct is freed, which obviously can't happen if the struct just has a pointer to the literal in static memory. (You could flag the string somehow as "should be freed/should not be freed", as you suggest in your other comment, but this has its own tradeoffs)

If you wanted an "error" function that would take string literals directly (and only string literals) you would do something like this: https://gist.github.com/bct/6300740

The "parse_ident" function doesn't return any portion of the input string, so it can just use a borrowed reference.

bct··on Forced Exposure
Organize. It's the only course of action that has ever worked.

Voting/not voting/protesting/etc. are tactics that are only useful as part of a larger campaign, and as part of a large group committed to a particular goal.

bct··on Let's remove verbs from HTTP 2.0
That would depend on what kind of service you're implementing.

"HTTP/1.1 does not define how a PUT method affects the state of an origin server."

I don't think it was ever the design or intent of PUT to store the exact representation that you gave it, and I would be surprised to see evidence otherwise.

Conceptually it's no different from POSTing (or PUTting) application/json to produce a resource that will be represented as text/html. How do you convert JSON to HTML? Depends on the service.

bct··on Let's remove verbs from HTTP 2.0
The server can do whatever processing it likes to a PUT's request body. If you upload a PNG it can convert it to a JPEG or an SVG or OCR it or invert the colors, etc. It's perfectly valid to turn application/x-www-form-urlencoded into something else.
bct··on Let's remove verbs from HTTP 2.0
It's not an artificial restriction, it's a design constraint that allows the resulting system to have certain properties that are desirable in some circumstances.

(And GET/POST/PUT/DELETE isn't CRUD.)

bct··on GNU MediaGoblin – A decentralized alternative to Flickr, YouTube, SoundCloud
What do you mean by "self-organizing system"?
bct··on Comments in JSON
It's both.
bct··on The bomb in the garden
The consistency of PDF rendering has nothing to do with it being an ISO standard. It's based on a completely different model that made different tradeoffs with respect to user-end flexibility. It was also controlled by a single company for 15 years.

TimBL and the W3C were pushing for new payment models 15 years ago (and probably earlier). This is why HTTP has 402 Payment Required. There was a W3C micropayments working group back in 1998: http://www.w3.org/ECommerce/Micropayments/ .

This stuff would be hard to get right in a vacuum. It's even harder when you're trying to get groups with competing interests to agree on something, especially when you have as little leverage as standards organizations tend to have. The view put forward in the last half of this essay is naive.

bct··on Fuck Off As A Service (FOAAS)
Calling it a joke is a real stretch. Apparently HN is populated entirely by preteen boys who think that the word "fuck" is hilarious.
bct··on RSS mistakes: let's not make them again
> JSON is also easier for humans to read than XML.

That's extremely debatable.

bct··on RSS mistakes: let's not make them again
That's the same kind of attitude that caused the decade of "XML for everything, and damn the technical requirements".
bct··on RSS mistakes: let's not make them again
I would hope that they wouldn't do it that way; they should be sending a GET with If-Modified-Since. The same result, making half the requests.
bct··on RSS mistakes: let's not make them again
People are (slightly?) less likely to do the stupid "let's generate this structure by gluing strings together" thing that produced the need for liberal Atom and RSS parsers.

(But yes, I agree that "turn this already-existing thing into JSON just because" is a stupid trend.)

bct··on What is Programmer Anarchy and does it have a future?
PaperclipTaken, your comment was excellent but has been marked "dead" for no reason that I can see.
bct··on Want to help the poor and transform your economy? Give people cash.
It also helps ensure that it stays achieved.
bct··on Want to help the poor and transform your economy? Give people cash.
You didn't read past the first line, did you? The experiment was in Dauphin, Manitoba.
bct··on U.S. Secretly Obtains Two Months of A.P. Phone Records
No: I'm not saying you're wrong because you're a moron, I'm saying you're wrong and you're a moron.

It's not an ad hominem, it's an insult.

bct··on Apparently standing desks can hurt too
Another option is a stool. Having the option to stand can make a big difference, even if you're sitting most of the time.
bct··on U.S. Secretly Obtains Two Months of A.P. Phone Records
That's quite a leap you're making, from Allende to Gulags and famine.

You should stick to subjects you actually know something about.

bct··on Excision in Datomic
Your comment is not a response to the comment you replied to. In particular, it was quite clear about the flaw in question:

> Mutable state makes reasoning about program behavior more difficult than necessary.

You could dispute that claim, but bringing up performance characteristics is totally irrelevant to it.

bct··on Atoms star in world's smallest movie from IBM
> Tiny self-replicating machines which produce other things to atomic precision

Don't expect it to happen soon - we can't even make big self-replicating machines yet.

We don't even know what machines would look like at such a small scale. Structures behave very differently than they do at human scale; fundamental components like ropes, gears and pulleys might not be possible.

And then there's the problem of programming these machines; you can't exactly put an AVR inside them.

bct··on I made an example app to show how Google map URLs should look
> (the logic goes like this: if the address is the resource, the browser as a resource getter should only get the address, not the surrounds).

The browser doesn't retrieve the resource, it returns a representation of the resource. A map centered on a location is a valid representation of a resource identified by an address.

bct··on I made an example app to show how Google map URLs should look
> RESTful URLs have to be nice

Not by any meaningful definition of REST.

bct··on Twitter Should Shut Me Down
Power existing where capital pools is exactly what capitalism is. What did you expect?
← PreviousPage 4 of 18Next →