gopencils

Languages and libraries

api client library

SHOW HN2014

51points
6comments
#624of 2,272 in 2014
Top 28%of 2014 by points

How HN took it

QuietFewer than 5 comments about the project

0 positive, 1 neutral or asking, 0 mixed, 3 critical, out of 4 comments about the project.

Design: 0 for, 1 againstDocs: 0 for, 1 againstIdea: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple and easy to use

    From 1 comment
    • Looks simple enough, but I simply cannot push myself to using Go with json because the approach feels so static and unnatural. Also note that this library has no tests, which…
      mriehl on HN

Objections

  • Chained method calls hide errors and are unsafe

    From 2 comments
    • I have some constructive criticism for the author, please take this in the manner that it is intended :) 1) Nothing I see here is restful at all. Please consider changing your…
      jalfresi on HN
    • >api.Res("users", resp).Id(1).Get() >What happens if the argument passed to api.Res is not "users"? Or "users" is incorrect? Or if Id 1 doesnt exist? Or you cant use the HTTP…
      aksx on HN
  • Not actually RESTful; misleading name

    From 1 comment
    • I have some constructive criticism for the author, please take this in the manner that it is intended :) 1) Nothing I see here is restful at all. Please consider changing your…
      jalfresi on HN
  • No tests

    From 1 comment
    • Looks simple enough, but I simply cannot push myself to using Go with json because the approach feels so static and unnatural. Also note that this library has no tests, which…
      mriehl on HN
  • Does not handle network failures or HTTP status codes

    From 1 comment
    • I have some constructive criticism for the author, please take this in the manner that it is intended :) 1) Nothing I see here is restful at all. Please consider changing your…
      jalfresi on HN
  • Go's static typing makes JSON handling feel unnatural

    From 1 comment
    • Looks simple enough, but I simply cannot push myself to using Go with json because the approach feels so static and unnatural. Also note that this library has no tests, which…
      mriehl on HN

Requests

  • Document as JSON web API client rather than REST

    From 1 comment
    • I have some constructive criticism for the author, please take this in the manner that it is intended :) 1) Nothing I see here is restful at all. Please consider changing your…
      jalfresi on HN
  • Add error handling

    From 1 comment
    • I have some constructive criticism for the author, please take this in the manner that it is intended :) 1) Nothing I see here is restful at all. Please consider changing your…
      jalfresi on HN

Questions

  • What happens on invalid resource names or missing IDs

    From 1 comment
    • I have some constructive criticism for the author, please take this in the manner that it is intended :) 1) Nothing I see here is restful at all. Please consider changing your…
      jalfresi on HN
  • Is 'dynamic' an accurate description in Go

    From 2 comments
    • Is creating a new named type, creating a instance, and passing a pointer really what passes for "dynamic" in the Go world?
      TylerE on HN
    • There isn't much in Go that is dynamic. This looks to me to be some convenience around commonly consumed patterns applied to normal static struct definitions in Go. Go does have…
      themartorana on HN

Alternatives named

  • JAX-RS (Java)

    From 1 comment
    • It's interesting to see how project like this gained attention for the HN crowds because it's written in Go while in platform like Java, client-side REST library like JAX-RS is a…
      edwinnathaniel on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/7935138)