Web Analytics

Go程序设计语言(三)

本文译自Rob Pike的Go语言PPT教程 – "The Go Programming Language Part3(updated June 2011)"。由于该教程的最新更新时间早于Go 1版本发布,因此该PPT中的一些内容与Go 1语言规范略有差异,到时我会在相应的地方做上注解。 第三部分大纲 ------ * 并发与通信 * Goroutines * 通道(Channel) * 并发相关...

August 28, 2012 · 11 min · Tony Bai

Go程序设计语言(二)

重写工作方式正如字段一样。 type NamedPoint struct {     Point     name string } func (n \*NamedPoint) Abs() float64 {    return n.Point.Abs() \* 100. } n := &NamedPoint{Point{3, 4}, "Pythagoras"} fmt.Println(n.Abs...

August 27, 2012 · 10 min · Tony Bai

Go程序设计语言(一)

int          uint int8      uint8 = byte int16       uint16 int32       uint32         float32      complex64 int64       uint64         float64      complex128 还有uintptr,一个大小足够存储一个指针的数值。 这些都是互不相同的类型;...

August 23, 2012 · 13 min · Tony Bai

也谈Go语言编程 – Hello,Go!

_**Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system ena...

August 17, 2012 · 11 min · Tony Bai

项目跳票成常态,组织基因难逃干系

上周得知今年一个重点项目跳票了!项目计划正在重新修订中,原计划今年10月末完成的项目很可能因此推迟到明年上旬了。 工作这么多年,印象中除了一些短期小项目外,50人月以上的项目就少有未跳票的,无论是我带的项目还是其他负责人带的项目,莫不如此。无论是产品负责人,还是项目负责人,高质量按期交付都是第一目标。但残酷的现实真切地摆在我们面前。问题到底出在哪里呢? 项目成功的原因都是相似的,但项目跳票的原因却...

August 15, 2012 · 3 min · Tony Bai