为毛还要依赖 code.google 的东西的哈?!
- 其实 bitbucket.org/mikespook/go-tour-zh/ 已经包含了所有必要代码
- 应该可以直接本地编译出的吼?!
$ 6g goplay.go
goplay.go:8: can't find import: encoding/json
$ 6g local.go
local.go:14: can't find import: net/http
嗯嗯嗯,俺安装的是:
- go.weekly.2012-02-22.darwin-amd64
- mac 10.7.3
星神,吼个小白本地编译过程吧,,,
--
人生苦短, Pythonic! 冗余不做,日子甭过!备份不做,十恶不赦!
俺: http://about.me/zoom.quiet
文字协议: http://creativecommons.org/licenses/by-sa/2.5/cn/
>
> 为毛还要依赖 code.google 的东西的哈?!
好吧,我的错,local.go 里有依赖 code.google.com 的包。
已经修复了。
go get -u bitbucket.org/mikespook/go-tour-zh/gotour
即可。
另外,本地运行时,各种error 比如:
code.google.com/p/go-tour/wc: main.go:4:2: package could not be found locally
- 需要設置什么 gopath 到环境变量?
--
来自: Golang-China ~ 中文Go语言技术邮件列表
详情: http://groups.google.com/group/golang-china
官网: http://golang-china.org/
IRC: irc.freenode.net #golang-china
@golangchina
ɶ����˵google codeҲҪײǽ�ˣ�
���裬go����import��ʱ����ֱ�Ӱ�����url�Ķ����Ž�ȥ���������import
��github, google code��repository��Ŀ⡣����ܷ��㡣
���google codeҲײǽ���Ǿ�̫�����ˡ���
-Monnand
> - ��ʵ bitbucket.org/mikespook/go-tour-zh/ �Ѿ��������б�Ҫ����
> - Ӧ�ÿ���ֱ�ӱ��ر�����ĺ�?!
> $ 6g goplay.go
> goplay.go:8: can't find import: encoding/json
>
> $ 6g local.go
> local.go:14: can't find import: net/http
>
> ������,����װ����:
> - go.weekly.2012-02-22.darwin-amd64
> - mac 10.7.3
>
> ����,���С�ױ��ر����̰�,,,
>
>
- 明白的,不过,这种功能和 TurboGears 之死的原理是一样的,,,
- 模块间的版本依赖本来就是复杂难言的事儿,看各种软件仓库就知道了
- go 的包管理机制如此灵活,引发类似 dll 黑洞样的依赖黑洞就杯具了,,,
- 直觉上,每个发布的模块,应该尽力维护好自身模块的外部依赖关系
- 可以简单/安全/一次性加载完备,最有爱了,,
#41里"time.LocalTime().Weekday"应为"today := time.Time.Weekday(time.Now())"
反馈bug:#23里第3行应为"math/cmplx",下面相应为cmplx.Sqrt(-5+12i);#41里"time.LocalTime().Weekday"不知道怎么改= =||
factored怎么译?直译为元素?
大概是"重组"的意思吧-- code refactoring
你可以直接在 bitbucket 上 brench
一个分支,直接修改,我到时直接 pull 你的 repo 就可以了。
于 Thu, 1 Mar 2012 10:42:23 +0800
Oling Cat <olin...@gmail.com> 写道:
> 意思我也知道,就是在"A"和"B"作为factor被import在外面用圆括号括起来嘛..
> refactor是重组,factor就是用来组成某物的东西,factored有被组成为某物,某物化的意思...
> 我个人觉得把这个词意译比较好。原文是"factored" import statement和the
> factored form,又考虑到这是形容代码的,分别译作 “字句化”导入语句 和
> 子句化形式 怎么样? --
> Hello! This is Oling Cat!
>
我本来的想法,“factored” 翻译为 “并构” 不过觉得很奇怪,就保留了原文。
还有喵说的那个“Code point”翻译为“码点”,我也是觉得很怪的。
码点不奇怪啊,我见过好多这么译的,而且不论灵格斯金山有道都有这个词的收录。一个码点就是一个Unicode字符集里的编号,不管它是几字节还是几个部分(比如着重号或波浪线)
�������ˡ�factor���ع�ʲô��û���κι�ϵ���ǽ�����ѧ����ϲ�������ĸ�
�factor something out���Ǻϲ������������ 2x + 3x���ǾͿ���factor
out��x���(2+3)x = 5x�����Ǵ�ҳ�˵�ĺϲ�������
��ϸ���ݣ�
http://www.purplemath.com/modules/simpfact.htm
����һ�£�
2x + 6 = 2(x) + 2(3) = 2(x + 3)
The trick is to see what can be factored out of every term in the
expression. Warning: Don't make the mistake of thinking that "factoring"
means "dividing something off and making it magically disappear".
Remember that "factoring" means "dividing out and putting in front of
the parentheses". Nothing "disappears" when you factor; things merely
get rearranged.
�ص㣺
"factoring" means "dividing out and putting in front of the parentheses"
�ҾͲ������ˡ�������Сѧѧ�ĺϲ�������
����˵����νfactor out import����ֱ�ӷ���Ϊ����import��ȡ��������Ϊ����
��factor����ʿ���˵����ȣ��ô�Ұ��������ɺϲ�������ǧ�����࣬��
�������ع�ʲô�ľ����ˡ�
>
> --
> ����: Golang-China ~ ����Go���Լ����ʼ��б�
> ����: http://groups.google.com/group/golang-china
> ����: http://golang-china.org/
> IRC: irc.freenode.net #golang-china
> @golangchina
һ�㲻��һ��������רҵ������refactoringʲô�ġ�
--
歌词唱清楚,不是周杰伦
Home Page: http://glacjay.is-a-geek.org/blog/
顺便多说一下,factor的常见意是因素,因子。比如可以说一件事被很多因素影
响: It is affected by multiple factors。 也可以说一个多项式里面的哪些因
子:in 2x + 3y, the factor of x is 2。
一般不会一下子上升到专业领域,比如refactoring什么的。
mon...@gmail.com wrote, On 03/01/2012 07:59 PM:
> minux wrote, On 03/01/2012 11:09 AM:
>>
>>
>> 2012/3/1 Oling Cat<olin...@gmail.com<mailto:olin...@gmail.com>>
>>
>> 码点不奇怪啊,我见过好多这么译的,而且不论灵格斯金山有道都有这个词的
>> 收录。一个码点就是一个Unicode字符集里的编号,不管它是几字节还是几个
>> 部分(比如着重号或波浪线)
>>
>> en 码点这个翻译我也见过。我觉得可以接受。
>
> 大家想多了。factor跟重构什么的没有任何关系。是借用数学里面合并公因数的概
> 念。factor something out就是合并个公因数。比如 2x + 3x我们就可以factor
> out出x变成(2+3)x = 5x。就是大家常说的合并公因数。
>
> 详细内容:
> http://www.purplemath.com/modules/simpfact.htm
>
> 引用一下:
>
> 2x + 6 = 2(x) + 2(3) = 2(x + 3)
>
> The trick is to see what can be factored out of every term in the
> expression. Warning: Don't make the mistake of thinking that "factoring"
> means "dividing something off and making it magically disappear".
> Remember that "factoring" means "dividing out and putting in front of
> the parentheses". Nothing "disappears" when you factor; things merely
> get rearranged.
>
> 重点:
> "factoring" means "dividing out and putting in front of the parentheses"
> 我就不解释了。就是咱小学学的合并公因数。
>
> 所以说,所谓factor out import可以直接翻译为:把import提取出来,简化为……
>
> 用factor这个词可以说是类比,让大家把这个想象成合并公因数。千万别想多,扯
> 到代码重构什么的就乱了。
������������ϰ�����⣬���Ƕ�������⡣
���磬����ѧOO��ʱ����ܻ�����ӣ��㿴��Ǯ�������˽�г�Ա��ֻ�����Լ���
�ģ����˲��ܶ�����û���ܾ���ֱ���˵������ͬ־���ҵ�˽�г�Ա������������
����ˣ�
�����ڿ�go-tour-zh�������ɶ���⣬�����㱨һ�¡���лOling Cat��
-Monnand
>
> On Fri, Mar 2, 2012 at 9:32 AM, Oling Cat <olin...@gmail.com
> <mailto:olin...@gmail.com>> wrote:
>
> �ع�һ��ָ���ǴӴ��ģ�Ĵ����аѹ���������ȡ�����������������ɣ���
> ���Ͱ�ͬ���import��ȡ�������á��ع���һ���Dz����е�̫....
> --
> Hello! This is Oling Cat!
>
>
>
> 2012/3/2 Jay True <gla...@gmail.com <mailto:gla...@gmail.com>>
>
> �Ҿ��úϲ�������Ҳ���ع�������һ�������ͺ������ͬ�Ĵ�����ȡ��
> ������Ϊһ������һ��
>
> --
> ��ʳ�����������ܽ���
> Home Page: http://glacjay.is-a-geek.org/blog/
>
> --
> ����: Golang-China ~ ����Go���Լ����ʼ��б�
> ����: http://groups.google.com/group/golang-china
> ����: http://golang-china.org/
> IRC: irc.freenode.net <http://irc.freenode.net> #golang-china
> @golangchina
>
>
> --
> ����: Golang-China ~ ����Go���Լ����ʼ��б�
> ����: http://groups.google.com/group/golang-china
> ����: http://golang-china.org/
> IRC: irc.freenode.net <http://irc.freenode.net> #golang-china
> @golangchina
>
>
> --
> ����: Golang-China ~ ����Go���Լ����ʼ��б�
> ����: http://groups.google.com/group/golang-china
> ����: http://golang-china.org/
> IRC: irc.freenode.net #golang-china
> @golangchina
“C++, where friends can access your privates.”
“在C++那,对象的私处对朋友是敞开的”
- 无名氏
��������·��������ˣ����������github�����fork�����ύ�ĵط�����ҿ�
��ÿ�ι���һС���֣�Ȼ����㷢pull request������merge������Ļ�������ÿ
���˶��д�����ʱ�䡣
-Monnand
> --
> Hello! This is Oling Cat!
>
>
>
> 2012/3/2 Jay True <gla...@gmail.com <mailto:gla...@gmail.com>>
>
> ��̫�����붨��������Ҳ�ǣ��ţ�����
>
>
> On Fri, Mar 2, 2012 at 9:32 AM, Oling Cat <olin...@gmail.com
> <mailto:olin...@gmail.com>> wrote:
>
> �ع�һ��ָ���ǴӴ��ģ�Ĵ����аѹ���������ȡ�����������������
> �ɣ�����Ͱ�ͬ���import��ȡ�������á��ع���һ���Dz����е�̫....
> --
> Hello! This is Oling Cat!
>
>
>
> 2012/3/2 Jay True <gla...@gmail.com <mailto:gla...@gmail.com>>
>
> �Ҿ��úϲ�������Ҳ���ع�������һ�������ͺ������ͬ�Ĵ�����ȡ
> ��������Ϊһ������һ��
>
> --
> ��ʳ�����������ܽ���
> Home Page: http://glacjay.is-a-geek.org/blog/
>
> --
> ����: Golang-China ~ ����Go���Լ����ʼ��б�
> ����: http://groups.google.com/group/golang-china
> ����: http://golang-china.org/
> IRC: irc.freenode.net <http://irc.freenode.net> #golang-china
> @golangchina
>
>
> --
> ����: Golang-China ~ ����Go���Լ����ʼ��б�
> ����: http://groups.google.com/group/golang-china
> ����: http://golang-china.org/
> IRC: irc.freenode.net <http://irc.freenode.net> #golang-china
> @golangchina
>
>
> --
> ����: Golang-China ~ ����Go���Լ����ʼ��б�
> ����: http://groups.google.com/group/golang-china
> ����: http://golang-china.org/
> IRC: irc.freenode.net <http://irc.freenode.net> #golang-china
> @golangchina
>
>
> --
> ����: Golang-China ~ ����Go���Լ����ʼ��б�
> ����: http://groups.google.com/group/golang-china
> ����: http://golang-china.org/
> IRC: irc.freenode.net #golang-china
> @golangchina