Better HN
topnewbestaskshowjobs
Log inSign up

hadriendavid

8 karma · joined Oct 20, 2016 (10y ago) · 11 submissions

[ my public key: https://keybase.io/hadrien; my proof: https://keybase.io/hadrien/sigs/y3rQe4rrVOBAc_8sDsi78T69mnHf0TXy3T6oieApw9k ]
Submissions

comment 1y ago · link · parent

He was a far right extremist…

comment 1y ago · link · parent

« Anytime you store Boolean, a kitten dies » Nobody has ever said that but nobody wants any kitten to die so nobody has ever challenged me anytime I use that statement.

comment 1y ago · link · parent

I remember playing on the computers at university. Someone had modded the campus map, was so fun to play.

comment 8y ago · link · parent

Take money where it is: in poors’ pockets! They do not have much but they are so many!

comment 8y ago · link · parent

Take money where it is, in poors’ pockets: they do not have much but they are so many!

comment 9y ago · link · parent

How I interpret HATEOAS:

The client knows what and how it can access on the behalf of the authenticated user. Examples:

Representation for a user with no privileges:

    {
        "articles": [{
            "id": 123
            "title": "A title",
            "links": {
                "self": {
                    "href": "http://blog.com/articles/123",
                    "methods": ["GET"]
                }
            }
        }],
        "links": {
            "self": {
                "href": "http://blog.com/articles",
                "methods": ["GET"]
            }
        }
    }

Representation for a user who is authorized to add/edit/delete articles:

    {
        "articles": [{
            "id": 123
            "title": "A title",
            "links": {
                "self": {
                    "href": "http://blog.com/articles/123",
                    "methods": ["GET", "DELETE", "PUT"]
                }
            }
        }],
        "links": {
            "self": {
                "href": "http://blog.com/articles",
                "methods": ["GET", "POST"]
            }
        }
    }

This reduces the authorization logic on the client side.

comment 9y ago · link · parent

$ echo V2hlcmUgaGF2ZSB5b3UgYmVlbj8 | base64 -d Where have you been?

comment 9y ago · link · parent

I've used Pyramid for the last 5 years to deploy highly available http api (>500K unique users daily).

- Super Modular, easy to achieve separation of concern;

- Powerful routing system;

- Consistent API;

- Elegant;

- Performant;

- Pyramid folks are super nice and super helpful on irc

comment 10y ago · link · parent

I use pylama, it wraps pylint and other code checking tools. It also has a cool logo.

https://github.com/klen/pylama