News for hackers. Stuff that matters.

argentpyro

Re:Moving the joyent/libuv repository to libuv/libuv on Wednesday November 26, 2014 @11:53AM (#8663197)
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

Re:Why We Use OCaml on Wednesday July 16, 2014 @06:06PM (#8044886)
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

Re:Lanterna – Easy console text GUI library for Java on Wednesday July 16, 2014 @02:55PM (#8043822)
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.

Re:Let's remove verbs from HTTP 2.0 on Friday August 09, 2013 @07:52PM (#6189341)
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" }'.

Re:Lemonad: Functional JavaScript Library on Thursday June 27, 2013 @02:56AM (#5951017)
Thanks for posting that. I'm quite impressed by what's in there, especially the bit of cleverness involved with the bilby.Do() syntax.
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.