HNHacker News
TopNewBestAskShowJobs

sunkarapk

621 karma · joined September 12, 2011

submissionscomments
sunkarapk··on Ask HN: What is HN reading?
Currently Reading:

Good Strategy, Bad Strategy https://www.goodreads.com/book/show/11721966-good-strategy-b...

sunkarapk··on A look at Assembly, the community that founds companies
People from assembly fronts the initial costs of running a company/product and take 25% of the profits every month once it's profitable.

Their FAQ is at https://assembly.com/help/basics

sunkarapk··on Your REST API should come with a client
No, as far as I know, alpaca is the first of its type. As the author of the code, I can guarantee good quality of the generated client code. I have written the templates such that they follow their respective language conventions and ecosystems.
sunkarapk··on Your REST API should come with a client
I think https://github.com/pksunkara/alpaca is a good starting point. Given a web API, it generates client libraries in ruby, python, php and node.js
sunkarapk··on Ask HN: What's your greatest epiphany?
God and Luck both doesn't exist.
sunkarapk··on Gitter – Chat, for GitHub
I have been using this since the beginning for my open source project https://github.com/pksunkara/alpaca. They provide very good support. And the features are awesome.

Short story, Gitter is awesome!

https://gitter.im/pksunkara/alpaca

sunkarapk··on Show HN: Unbabel API – Human Corrected Machine Translation
Have you guys looked at https://github.com/pksunkara/alpaca to generate API client libraries (SDK) instead of spending time on developing them?
sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
You can go through the generated code examples at https://github.com/alpaca-api.

I tried to make them a lot more readable. :)

sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
If you are talking about API definition, there need not be many changes since api.json do not define any objects.

If you are talking about the code of the program, they wont be changed because, the program just compiles and executes the templates.

If I didnt answer your question properly, could you please elaborate?

sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
I agree its nice to do it that way. But I found that not all APIs use hypermedia format. So, I did it this way. :)
sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
I am just a single guy. I always make a point to reply back to issues/pull-requests on my open source projects within 24hrs.

Yes, sometimes I fail to make it. But it's a rule I want to live by.

sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
JSON Schema is too complex for this project. I just chose the fields which needs to be populated so that I can generate the code.
sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
Tests is one of the main priority and I am planning to do them soon.

This current program just a small step in the right direction. :)

EDIT: Currently, I have a test suite at https://github.com/pksunkara/alpaca/tree/testing which tests the generated client libraries of an example API with the respective server.

sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
Being a WSDL is not the aim here. Generating client libraries in multiple programming languages is.

But, to do that I need a format using which people can define their API. I used JSON and only supported the elements that I needed to generate the client libraries.

sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
I tried searching for a program which generates client libraries in different programming languages and failed.

Could you please link if something does it? From what I gather, the above mentioned sites only provide methods of describing the API and/or Automating the API on the server side. Nothing is said about client libraries.

Thanks

sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
Currently, I am supporting 3 authentication strategies. Basic, Token in header and OAUTH.

These will cover most of the APIs. And I am open to include other kind of authentication strategies too.

https://github.com/pksunkara/alpaca#authorization-strategies

EDIT: OAUTH Consumption is not the main priority here. The problem I intended to solve is automating the development and maintaing of API client libraries in several different languages.

That said, I intend to add support for OAUTH consumption too.

sunkarapk··on Show HN: Given an API, Generate client libraries in Node, Python, PHP, Ruby
Author here. I covered almost everything in the documentation. And there is also a small example which is hosted at https://github.com/alpaca-api.

Please ask if you have any questions. Thanks

sunkarapk··on Code & Conquer: A War Game for Coders
The problem with these kind of competitions is replayability. I would love to see a programming game which is PvP and has good replayability.
sunkarapk··on Idea: git push requests
Something like this what I think github needs. Github should complement developers working using the cli. (git-send-email, git-format-patch, git-am). I hope they concentrate on this soon.
sunkarapk··on Semicolon: A language of semicolons
I added a special glyph for the reversed semicolon and used it in @font-face for the website. Can you reload the page and try again?
sunkarapk··on Semicolon: A language of semicolons
Now the reversed semicolon renders with perfect reversion of normal semicolon.

http://pksunkara.github.com/semicolon