Better HN
topnewbestaskshowjobs
Log inSign up

argentpyro

14 karma · joined Aug 27, 2012 (14y ago) · 6 submissions

Submissions

comment 12y ago · link · parent

Ben Noordhuis reverted a commit that had removed gendered language from libuv documentation:

https://github.com/joyent/libuv/commit/804d40e

Joyent received a lot of flak because people believe that Ben was a Joyent employee (he actually worked for Strongloop). Joyent came out with a post separating themselves from Ben, saying that they were in support of gender neutral language:

https://www.joyent.com/blog/the-power-of-a-pronoun

comment 12y ago · link · parent

I've never used F#, but I found an SO question [0] which provided the following:

- Functors (https://realworldocaml.org/v1/en/html/functors.html)

- OCaml-style objects (https://realworldocaml.org/v1/en/html/objects.html)

- Polymorphic variants (https://realworldocaml.org/v1/en/html/variants.html#polymorp...)

- The camlp4 preprocessor (https://realworldocaml.org/v1/en/html/the-compiler-frontend-...)

- Stronger guarantees from type system. F# allows null values, it seems, while you would need to use an Option type in OCaml.

[0] http://stackoverflow.com/questions/179492/f-changes-to-ocaml

comment 12y ago · link · parent

I've used this library before and really liked it. I made a really simple roguelike with it:

https://github.com/melloc/roguelike

I remember running into some minor issues, but for the most part it's an awesome, mature library.

comment 13y ago · link · parent

Your API could be mapped to a filesystem. (Although you might consider consider a filesystem a database.) If this were the case, it would make sense to use PUT for commands like chown and chmod, which are idempotent. Calling "PUT" "CREATE" here would (IMO) be confusing. I'm not creating something. I'm performing an action, putting things in their proper place, if you will. Another example could be home automation. You might design a REST API where you can PUT cameras to turn them on.

The way I see it, the great thing about HTTP verbs is that they are mostly (not all) unbiased about what they map to, and allow us to be more descriptive. If I'm inspecting the requests my browser is making, I'd much rather see "DELETE /path/to/resource" than see "POST /path/to/resource" and only discover that that call deleted my resource because the body of the request contained '{ "action" : "delete" }'.

comment 13y ago · link · parent

Thanks for posting that. I'm quite impressed by what's in there, especially the bit of cleverness involved with the bilby.Do() syntax.

comment 14y ago · link · parent

Before today, I never heard of Mark Crispin. After reading your post and the e-mails sent for him, I wish that I had. Like whitewhim, thank you for enlightening me for a man I will never know.