代码可读性培训流程 SA16225461 郑航.

Slides:



Advertisements
Similar presentations
Which TV program is the video? 中国达人秀 China’s Got Talent 选秀节目 talent show talent n. 天资;天赋.
Advertisements

allow v. wrong adj. What’s wrong? midnight n. look through guess v. deal n. big deal work out 允许;准许 有毛病;错误的 哪儿不舒服? 午夜;子夜 快速查看;浏览 猜测;估计 协议;交易 重要的事.
高考短文改错专题 张柱平. 高考短文改错专题 一. 对短文改错的要求 高考短文改错的目的在于测试考生判断发现, 纠正语篇中 语言使用错误的能力, 以及考察考生在语篇中综合运用英 语知识的能力. 二. 高考短文改错的命题特点 高考短文改错题的形式有说明文. 短文故事. 书信等, 具有很 强的实用性.
高考英语阅读分析 —— 七选五. 题型解读: 试题模式: 给出一篇缺少 5 个句子的文章, 对应有七个选项,要求同学们根据文章结构、 内容,选出正确的句子,填入相应的空白处。 考查重点: 主要考查考生对文章的整体内容 和结构以及上下文逻辑意义的理解和掌握。 (考试说明) 选项特点: 主旨概括句(文章整体内容)
考研英语复试 口语准备 考研英语口语复试. 考研英语复试 口语准备 服装 谦虚、微笑、自信 态度积极 乐观沉稳.
第七课:电脑和网络. 生词 上网 vs. 网上 我上网看天气预报。 今天早上看了网上的天气预报。 正式 zhèngshì (报告,会议,纪录) 他被这所学校正式录取 大桥已经落成,日内就可以正式通车 落伍 luòw ǔ 迟到 chídào 他怕迟到,六点就起床了.
SanazM Compiled By: SanazM Here Are Some Tips That May Bring You A Beautiful Life! Music: 美麗人生 Angel ( 主題曲 ) Revised By: Henry 以下是一些能帶給你一個美麗人生的秘訣 中文註解:
全国卷书面表达备考建议 广州市第六中学 王慧珊 Aug. 24th, 2015.
2014 年上学期 湖南长郡卫星远程学校 制作 13 Getting news from the Internet.
Section B Period Two.
-CHINESE TIME (中文时间): Free Response idea: 你周末做了什么?
神愛世人, 甚至將他的獨生子賜給他們, 叫一切信他的, 不至滅亡, 反得永生。 約翰3:16.
How can we become good leamers
广德二中2006届高考 英语专题复习 单项填空 答题指导.
Java Programming Hygiene - for DIDC
初中进阶 (2346 期 ) 1 版. 1. What types of bullying do you know about? Physical hitting, tripping, stealing and hair pulling Social telling other kids.
摘要的开头: The passage mainly tells us sth.
Section A Period One. 每课时单词和短语的预热温习 环节,要求学生快速读出英文单词, 说出汉语意思。 该环节可帮助学生在课初对早 读时间已熟读记忆过的单词及短语 进行快速温习回顾,巩固记忆,为 接下来的学习做好词汇准备。研究 表明,词汇的熟悉度越高,阅读的 速度越快,理解力也越高。
Unit 2 What should I do? Period 1.
Module 7 Computers 第2课时.
What do you think of game shows?
Could you please clean your room?
Unit 4 I used to be afraid of the dark.
Module 5 Shopping 第2课时.
Unit 2 What should I do?.
馬太福音 Matthew 11: 那時,耶穌說:「父啊,天地的主,我感謝你!因為你將這些事向聰明通達人就藏起來,向嬰孩就顯出來。26 父啊,是的,因為你的美意本是如此。27 一切所有的,都是我父交付我的; 25 At that time Jesus said, “I praise you,
Here Are Some Tips That May Bring You A Beautiful Life!
英语教学课件系列 八年级(上) it! for Go.
Write a letter in a proper format
Guide to Freshman Life Prepared by Sam Wu.
Sports I - About exercises Objectives
但是如果你把它发给最少两个朋友。。。你将会有3年的好运气!!!
Remember the five simple rules to be happy 快樂的五個簡單常規
Lesson 28 How Do I Learn English?
Lesson 44:Popular Sayings
Unit 4.
Could you please clean your room?
基于课程标准的校本课程教学研究 乐清中学 赵海霞.
英语教学课件 九年级全.
Hobbies II Objectives A. Greet a long time no see friend: Respond to the greeting: B. Ask the friend if he/she likes to on this weekend? She/he doesn’t.
Lesson One She Says/He Says 男生女生各說各話
Here Are Some Tips That May Bring You A Beautiful Life!
Here Are Some Tips That May Bring You A Beautiful Life!
Remember the five simple rules to be happy 快樂的五個簡單常規
Here Are Some Tips That May Bring You A Beautiful Life!
Good Karma 善因緣 This is a nice reading, but short. Enjoy! This is what The Dalai Lama has to say for All it takes is a few seconds to read and think.
Good Karma 善業 原稿:牛Sir 配楽:懺悔經 捕頭恭製 按鍵換頁.
中央社新聞— <LTTC:台灣學生英語聽說提升 讀寫相對下降>
Cisco Troubleshooting and Maintaining Cisco IP Networks (TSHOOT)
Unit 5 First aid Warming up 《和你一样》 中国红十字会宣传曲 高二年级 缪娜.
Unit 7 Lesson 20 九中分校 刘秀芬.
Philosophy of Life.
高考应试作文写作训练 5. 正反观点对比.
Good Karma 善因緣 This is a nice reading, but short. Enjoy! This is what The Dalai Lama has to say for All it takes is a few seconds to read and think.
Remember the five simple rules to be happy 快樂的五個簡單常規
Remember the five simple rules to be happy 快樂的五個簡單常規
冀教版 九年级  Look into Science!.
Remember the five simple rules to be happy 快樂的五個簡單常規
M; Well, let me check again with Jane
為什麼要考國中教育會考 學生:了解自己的學力水準,並為下一學習階段作準備。
Good Karma 善因緣 This is a nice reading, but short. Enjoy! This is what The Dalai Lama has to say for All it takes is a few seconds to read and think.
英语单项解题思路.
A Presentation By: Mike Sharobim Pictures By: Unknown source
怎樣把同一評估 給與在不同班級的學生 How to administer the Same assessment to students from Different classes and groups.
Sun-Star第六届全国青少年英语口语大赛 全国总决赛 2015年2月 北京
A Presentation By: Mike Sharobim Pictures By: Unknown source
Train Track and Children
Climbing a Rock Wall 攀岩 选自《多维阅读第10级》.
陳情表之外     with 三仁 三樂 歐陽宜璋製於 /10/23.
Section 1 Basic concepts of web page
Presentation transcript:

代码可读性培训流程 SA16225461 郑航

There's no formal internal training

Mandatory training Google codelabs提供指导,教程和动手编码练习。 大多数codelabs将引导您完成构建小型应用程序的过程,或向现有应用程序添加新功能。 它们涉及广泛的主题,如Android Wear,Google Compute Engine,Project Tango和iOS上的Google API。

 Choose your preferred programming language  (C++, Java, Python, etc.) a single machine with two keyboards and mice  Bring you up to speed with particular libraries or testing framework

Culture-Driven Process You can't get anything submitted unless you go through a code review

Getting a code review is necessary, but not sufficient and efficient Getting a code review is necessary, but not sufficient and efficient.  You must get the change approved by someone who's marked as a maintainer of the package being changed and you must get it approved by someone who has readability in the language(s) you're programming in.  It could be the same person approving the change for both. you will want to earn your readability for your languages of choice.  Getting readability involves making a significant, sizable change or code contribution, that is comprehensive enough to show that not only you're capable of following the coding style, but also that you "get" how code is written and tested at Google.  You only get readability for one language at a time, because different languages have different styles and conventions. 进行代码审查是必要的,但不够足够和高效。 您必须获得由被标记为要更改的package的维护者的人员批准的更改,并且您必须获得具有您所编程语言具备可读性的人员的批准。这两者可能是同一人。 您将需要为您选择的语言获得可读性。 具备可读性包括进行重大的,相当大的更改或代码贡献,这足以显示您不仅能够遵循编码风格,还可以“获取”代码如何在Google编写和测试。 一次只能读懂一种语言,因为不同的语言有不同的样式和惯例。 Code readbility

Once you have code readability, say in C++, you only need to get your C++ changes reviewed by somebody else, and maybe also get approval from package maintainers when making changes to other packages. I thought that this system was pretty effective in practice.  Most people play the game, and it does help in a big way to get a more consistent, higher quality code base.  Mandatory code reviews are sometimes seen as a burden, especially when reviewers are slow to get back to you, but overall I think the benefits far outweigh the downsides. 一旦你具备代码可读性,以C ++为例,你只需要让其他人对C ++进行的更改进行审查,也可以在得到软件包维护者的批准对其软件包进行更改。我认为该系统在实践中非常有效。 大多数人遵守这一约定,它有助于获得更一致,更高质量的代码库。 强制性的代码审查有时被认为是一种负担,特别是当你成为审查者的时候,总体而言,我认为这些好处远远超过了缺点。 Code readbility

Developer Handbook: It describes what subset of C++ features are used, along with the justification for using or not using each feature. Features of C++11 are being slowly opened up for usage after looking at their pros and cons. Style Guide: Publicly available as http://google-styleguide.googlec..., the style guide embodies a lot of conventional wisdom from experienced developers. It's the most cited document in code reviews.

Internal wiki and other pages: Some Googlers tend to write down their opinions about programming style, best practices and other acquired wisdom about internal technologies. You can often see both sides of an argument argued on different pages, and ultimately it's up to you or your team to choose the right approach. Codelabs: These are mini-tutorials to get you up and running in a certain technology. Apart from Google internal technologies (Protocol Buffers being one publicly known example), there are a few Codelabs on C++ best practices, like efficient string usage, multithreading, etc.

Code Search: One of the perks of being at Google is that you have access to the entire codebase, even as an intern. For certain internal technologies, the code is your only source of documentation and you often end up on Wikipedia-like trips through the source. The code search team does some stunning code analysis, making it really easy to navigate the source code and learn how certain things are done. You can do seriously complicated searches to (for example) find the exact use case of a certain function. It gets rid of a lot of frustrations people feel when working on a new codebase. Code Reviews: These are one of the most useful resources if your reviewer is nice enough to include personal experiences and anecdotes, or cites documents like the style guide or the C++ FAQ (mine was). I thoroughly enjoyed my code reviews because my mentor often gave interesting insights into why certain things are done the way they are.

谢谢观看!