Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

构建功能完整的Github SDK #5

Open
void-main opened this issue May 10, 2013 · 41 comments
Open

构建功能完整的Github SDK #5

void-main opened this issue May 10, 2013 · 41 comments
Assignees

Comments

@void-main
Copy link
Contributor

咱们的好多项目都使用了github的api,但是却没有一个比较完整的封装,咱们是不是考虑开发一套?

可以先从python、ruby版本开始~~

;)

@ghost ghost assigned hit9 May 10, 2013
@zhf
Copy link

zhf commented May 10, 2013

做个 gem 吧。

张鸿峰
zhanghongfeng.com

On Friday, May 10, 2013 at 7:22 PM, Void Main wrote:

咱们的好多项目都使用了github的api,但是却没有一个比较完整的封装,咱们是不是考虑开发一套?
可以先从python、ruby版本开始~~
;)


Reply to this email directly or view it on GitHub (#5).

@void-main
Copy link
Contributor Author

嗯嗯~~这个一定要~~

@hit9
Copy link
Contributor

hit9 commented May 10, 2013

支持!ruby世界里不知道如何。Python世界里的众多github api 都不大喜欢。

不过按照Github v3的文档来看,还是很简单的。封装了的话也就是加个简单的wrapper

@void-main
Copy link
Contributor Author

@hit9 最希望的结果是咱们用着方便就行~~有些api挺麻烦的~~比如 http://developer.github.com/v3/activity/events/ 这个要对head做一些处理和缓存的~~咱们可以先从简单的开始~~慢慢完善~~

@hit9
Copy link
Contributor

hit9 commented May 10, 2013

@void-main 可以。 我做过几个 github api 的了。 每次都要现做。每次看Python的相应封装,要么缺文档,要么没那个功能。可以做的。起repo吧

@void-main
Copy link
Contributor Author

@cliffwoo 大师来给起名啊~~

@zhf
Copy link

zhf commented May 10, 2013

里面 Octokit 那个名字不错:
http://developer.github.com/v3/libraries/

张鸿峰
zhanghongfeng.com

On Friday, May 10, 2013 at 7:36 PM, Void Main wrote:

@cliffwoo (https://github.com/cliffwoo) 大师来给起名啊~~


Reply to this email directly or view it on GitHub (#5 (comment)).

@ultragtx
Copy link

大师在Dota

在 2013年5月10日星期五,Void Main 写道:

@cliffwoo https://github.com/cliffwoo 大师来给起名啊~~


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-17715884
.

@void-main
Copy link
Contributor Author

@zhf 看到这么多就不想做了~~

@zhf
Copy link

zhf commented May 10, 2013

reinventing the wheels..

张鸿峰
zhanghongfeng.com

On Friday, May 10, 2013 at 7:42 PM, Void Main wrote:

@zhf (https://github.com/zhf) 看到这么多就不想做了~~


Reply to this email directly or view it on GitHub (#5 (comment)).

@void-main
Copy link
Contributor Author

okay~~

不过得想个更好玩的名字了~~

@zhf
Copy link

zhf commented May 10, 2013

how about "lame-pussy"?

张鸿峰
zhanghongfeng.com

On Friday, May 10, 2013 at 7:48 PM, Void Main wrote:

okay~~
不过得想个更好玩的名字了~~


Reply to this email directly or view it on GitHub (#5 (comment)).

@hit9
Copy link
Contributor

hit9 commented May 10, 2013

GithubAPI 就挺好的。。 达意即可。 :)

@void-main
Copy link
Contributor Author

@zhf 求轻黑~~哈哈~~

@void-main
Copy link
Contributor Author

@hit9 咱俩可以起不同的名字~~就像 libgit2 那样~~

@hit9
Copy link
Contributor

hit9 commented May 10, 2013

都可以~ 达意即可。

@void-main
Copy link
Contributor Author

@hit9 来吧~~起repo把~~

@tonyzhu
Copy link

tonyzhu commented May 10, 2013

这个哥们儿搞了一个 https://github.com/copitux/python-github3

@hit9
Copy link
Contributor

hit9 commented May 10, 2013

是啊,成型的已经不少了。 你们来测试下v0.2.1 啊!! ...

@tonyzhu
Copy link

tonyzhu commented May 10, 2013

做的话,咱们是否可以做到差异化,或者更好用?或者说怎么做到柴艺华,怎么做到更好用,这个可以讨论下然后再动手。

@void-main
Copy link
Contributor Author

@hit9 老板还在实验室。。等再晚一点吧。。

@void-main
Copy link
Contributor Author

@ultragtx 换了设备必须测试一下~~

@tonyzhu
Copy link

tonyzhu commented May 10, 2013

@hit9 去哪实习定了么?

@hit9
Copy link
Contributor

hit9 commented May 10, 2013

哈哈。 嗯哈

在 2013-05-10 20:27:06,"Void Main" [email protected] 写道:

@hit9 老板还在实验室。。等再晚一点吧。。


Reply to this email directly or view it on GitHub.

@hit9
Copy link
Contributor

hit9 commented May 10, 2013

@tonyzhu 哦,去知乎呢。

@cliffwoo
Copy link

@void-main GitMask 如何?
@zhf 我也觉得那个Octokit不错

@zhf
Copy link

zhf commented May 11, 2013

我觉得 pussy 很好啊,既符合 cat,又有 interface 的意思。

张鸿峰
zhanghongfeng.com

On Saturday, May 11, 2013 at 7:18 PM, Wu Jin wrote:

@void-main (https://github.com/void-main) GitMask 如何?
@zhf (https://github.com/zhf) 我也觉得那个Octokit不错


Reply to this email directly or view it on GitHub (#5 (comment)).

@void-main
Copy link
Contributor Author

@zhf pussy好像还有胆小鬼的意思?~

@cliffwoo
Copy link

@zhf pussy还是让人会有不健康的联想,不适合做为名字传播。特意请教了一个专门研究英语文学的朋友,他也不建议这么使用。可能我们觉得这么用很有趣,但用英语做母语的人,会有抵触情绪。

我刚才又查了一下github上项目名字中含有pussy的项目,一共有23个,几乎没有很popular的,最好的一个才有7个star,其中有几个看着就是色情类,已经无法访问,貌似被ban了。虽然不确认这种情况是否说明一定的价值取向,但是起码代表多数的欧美程序员不会轻易用pussy做为项目名称。

@void-main 让秋秋分析 gitarchive ,可以考虑先看看开源项目命名,做一个词频统计,我觉得这个会有点意思. ♐

@zhf
Copy link

zhf commented May 11, 2013

@cliffwoo u r really funny! u made my day/night!

张鸿峰
zhanghongfeng.com

On Saturday, May 11, 2013 at 11:03 PM, Wu Jin wrote:

@zhf (https://github.com/zhf) pussy还是让人会有不健康的联想,不适合做为名字传播。特意请教了一个专门研究英语文学的朋友,他也不建议这么使用。可能我们觉得这么用很有趣,但用英语做母语的人,会有抵触情绪。
我刚才又查了一下github上项目名字中含有pussy的项目,一共有23个,几乎没有很popular的,最好的一个才有7个star,其中有几个看着就是色情类,已经无法访问,貌似被ban了。虽然不确认这种情况是否说明一定的价值取向,但是起码代表多数的欧美程序员不会轻易用pussy做为项目名称。
@void-main (https://github.com/void-main) 让秋秋分析 gitarchive ,可以考虑先看看开源项目命名,做一个词频统计,我觉得这个会有点意思.


Reply to this email directly or view it on GitHub (#5 (comment)).

@DeathKing
Copy link

之前我就有这个想法了,但是你这个是要做成一个DSL还是一个抽象层?

@DeathKing
Copy link

Octokit + 1 / Gito

@hit9
Copy link
Contributor

hit9 commented May 11, 2013

Gito 很赞啊

@cliffwoo
Copy link

Gito这个比较容易想到Gitosis,Gitolite 这两个比较知名的项目
查了一下,Gito也有人用了,不过基本没有Star,可以考虑使用

@cliffwoo
Copy link

@void-main GitShell , GithubShell , gh-shell
GitShell 这个有几个repo在用,基本没有star,还有一个是国内的git托管服务。

@void-main
Copy link
Contributor Author

@cliffwoo 赞老师的词频分析发~~哈哈~~求数据结果啊~~

@zhf
Copy link

zhf commented May 12, 2013

@DeathKing 的看法很新颖。做成 DSL 能是什么形式呢?感觉 REST API 已经很语义化了。

@void-main
Copy link
Contributor Author

@DeathKing 基本算是对HTTP verb的封装吧~~提供更好用的支持~~比如session管理什么的~~

@void-main
Copy link
Contributor Author

接着 @DeathKing 的思路,如果做成DSL的话,是不是能做的更好玩儿一点?~

比如:

github = Github.new
github.get "page 1 of activities of secreek" { |activities| puts activities }
=>  [{activity1}, {activity2} ...]

@zhf
Copy link

zhf commented May 14, 2013

Just for fun:
https://github.com/secreek/sucker

@void-main
Copy link
Contributor Author

....Minimal working SDK ever...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants