Ready,Set,Go!

2020/12/1423:22:02Ready,Set,Go!已关闭评论

前言

推荐一本从入门到放弃的Go语言书籍《Head First Go》,这个系列的教程我相对比较喜欢,曾经Python我也是用它来入门的,书名叫《Head first Python》,建议大家可以看英文原版,难度不高,还有图文结合,非常形象。

反正只要是想学啥都可以用Head first开头,比如:设计模式也是如此。

花了快一个小时从一个国外网站下载到了它的英文版本,简直高清无码啊!!咳 咳!

趁着睡觉前翻译一段。附件放pdf文件。

翻译

早在2007年,Google的搜索引擎团队遇到了一个问题,他们要维护成百上千万行代码,在测试新的特性时,他们不得不花费一个小时的时间来生成一个可以运行的程序。不用说,这样对开发人员的生产力来说相当的不友好。

所以谷歌的工程师Robert Griesemer, Rob Pike, 和Ken Thompson描绘出该语言要实现的目标为:

  1. 快速的编译。
  2. 更少的代码。
  3. 垃圾回收机制(大家都懂的)
  4. 易于同时执行多个操作(并发)
  5. 支持多核处理器

经过几年的开发,Google发布了Go:它是一门代码编写非常高效,编译和运行速度都非常快的编程语言。该项目于2009年进行了开源,现在每个人都可以免费使用它。建议大家来学习使用,GO是真的是棒到不要不要滴!!哦嚯~~~

如果你要写一个命令行工具,使用Go可以在Windows,MacOS,和Linux系统中创建可执行程序而不需要修改代码,如果你正在写一个WEB服务器,它能帮你并发处理多用户连接,不管你要实现什么功能,它能确保你的代码编写简单而且易于维护和扩展,简直牛逼克拉丝(简直自信心爆炸啊)

原文

Back in 2007, the search engine Google had a problem. They had to maintain programs with millions of lines of code. Before they could test new changes, they had to compile the code into a runnable form, a process which at the time took the better part of an hour. Needless to say, this was bad for developer productivity.

So Google engineers Robert Griesemer, Rob Pike, and Ken Thompson sketched out some goals for a new language:

  1. Fast compilation
  2. Less cumbersome code
  3. Unused memory freed automatically (garbage collection)
  4. Easy-to-write software that does several operations simultaneously
    (concurrency)
  5. Good support for processors with multiple cores

After a couple years of work, Google had created Go: a language that was
fast to write code for and produced programs that were fast to compile and
run. The project switched to an open source license in 2009. It’s now free
for anyone to use. And you should use it! Go is rapidly gaining popularity
thanks to its simplicity and power.

If you’re writing a command-line tool, Go can produce executable files for
Windows, macOS, and Linux, all from the same source code. If you’re
writing a web server, it can help you handle many users connecting at once.
And no matter what you’re writing, it will help you ensure that your code is
easier to maintain and add to.

Ready to learn more? Let’s Go!

最后奉上下载地址:
链接:https://pan.baidu.com/s/1hxjfr7KAV0mfdOK8R1wPNw
提取码:oorn

  • 微信扫码赞助
  • weinxin
  • 支付宝赞助
  • weinxin