取消蓝牙配对代码

I discussed the value of pair programming with friends recently. A lot has been written on the topic, but I realized that I have an interesting experience with a less mentioned tool: pair code review.

我最近与朋友讨论了结对编程的价值。 关于该主题的文章很多,但是我意识到我对使用一个较少提及的工具有很好的体验:结对代码审查。

If pair programming doesn’t work for you for any reason, we can do better than the regular code-review-comment-fix-repeat loop. Here is a personal account of my experience, the pros and cons, and when I would use it.

如果结对编程由于某种原因对您不起作用,我们可以比常规的code-review-comment-fix-repeat循环做得更好。 这是我的经历,利弊以及何时使用的个人说明。

充分利用配对编程 (Making the most of pair programming)

Pair programming has been an established practice with many benefits (even some less obvious like keeping the WIP low). I usually find most of the value in three things: knowledge sharing, making better design decisions from the start, and getting unstuck faster.

结对编程已成为一种既定做法,它具有许多 优点 (甚至有些不那么明显,例如将WIP保持为较低)。 我通常会从三件事中找到大部分价值:知识共享,从一开始就做出更好的设计决策以及更快地解决问题。

The knowledge-sharing aspect is strongest when working with new people. That’s when we can learn the most from each other, get exposed to our different experiences. Beyond fixing typos or simple errors, we can share the reasoning behind our design choices, discuss the underlying principles we follow, exchange productivity tips, … Even with colleagues I have been in the office with for a long time, I often don’t get the feeling that I really know them until our first pair coding or debugging session, and it helps to build mutual respect.

与新人一起工作时,知识共享方面最强。 那是我们可以互相学习最多,接触到不同经验的时候。 除了纠正错别字或简单的错误外,我们还可以分享设计选择背后的理由,讨论我们遵循的基本原理,交换生产率提示,...即使与我在办公室工作了很长时间的同事, 我经常也没有在我们第一次进行编码或调试会话之前,我一直真正了解它们,这有助于建立相互尊重

The knowledge sharing advantages increasingly diminish over time, however. We have fewer new inputs to exchange. The better we know each other, the better I can simulate the other’s opinion in my mind and predict what I will hear during a code review. In a way, I have a little virtual colleague in my head I can pair up with.

但是,随着时间的流逝,知识共享的优势逐渐减少。 我们需要交换的新投入更少。 我们彼此之间了解得越多,就越能在我的脑海中模拟对方的意见并预测在代码审查期间将听到的内容。 在某种程度上,我的脑海中有一个可以与之配对的虚拟同事。

This has happened to me several times. Looking back, though, I learned the most from a really smart colleague who never liked pair programming. So how did I learn so much from him?

这发生在我身上好几次了。 但是,回顾过去,我从一个真正聪明的同事那里学到了很多东西,他从不喜欢结对编程。 那么我如何从他那里学到很多东西呢?

配对代码审查 (Pair code review)

My colleague preferred coding alone but he also disliked electronic tools for code review. He would write his code review notes down on a tiny sheet of paper and then we would sit together and he would guide me through the notes — all the things I missed, poor design choices, opportunities for improvement, etc. This was exactly the opportunity where we would discuss our guiding principles, productivity tips, and everything. And the next time I would do the same for him.

我的同事只喜欢编码,但他也不喜欢用于代码审查的电子工具。 他会把他的代码审查笔记写在一张小纸上,然后我们坐在一起,他会指导我完成笔记 -我错过的所有事情,糟糕的设计选择,改进的机会等。这正是机会在这里我们将讨论我们的指导原则,生产率提示以及所有内容。 下次我会为他做同样的事情。

It felt just like pair programming, just more compressed, limited to only what deserved the increased attention. In some regards, it was even better — when you are forced to tackle a problem on your own and then get feedback, you often learn more than if you are guided through every step. And over time, this was enough to reach the state where I could hear his voice in my head when I was making design choices.

感觉 就像结对编程一样,只是更加压缩 ,仅限于应引起更多关注的内容 。 在某些方面,这甚至更好-当您被迫独自解决问题然后获得反馈时,与逐步指导每个人相比,您经常学到更多。 随着时间的流逝,这足以使我在做出设计选择时可以听到他的声音。

Another important practice was that we wouldn’t just explain the review notes, we would often go and fix things together — in a pair programming session. This prevents the frequent cause of long lead time when the code review bounces back and forth in several rounds.

另一个重要的做法是,我们不仅会解释审阅说明,还会经常在成对编程会话中一起解决问题 。 这样可以避免在几轮回合中反复执行代码回顾时导致交货时间长的常见原因。

In short, pair code review often gave us many of the benefits of pair programming in less time.

简而言之,经常对代码进行审查 在更少的时间内为我们提供了结对编程的许多好处。

配对代码复习我不是什么意思 (What I don’t mean by pair code review)

I should emphasize that by pair code review I don’t mean inspecting the changes (pull request) together. I have tried that too but never found it effective. The pressure of the author’s presence interfered with my concentration and depth of inspection.

我应该强调的是,通过配对代码审阅我并不是要一起检查更改 (拉动请求)。 我也尝试过,但从未发现它有效。 作者在场的压力干扰了我的专心和检查的深度。

Sometimes it’s difficult to get your idea over through a code review tool, asynchronously, as the lead time grows (several hours and several context switches in this case)
有时,随着交付时间的增加,很难通过代码查看工具异步地传达您的想法(这种情况下需要几个小时和几个上下文切换)

陷阱 (The traps)

Of course, there are hidden traps and many ways how not to do a pair code review. Probably more so than with regular pair programming.

当然,这里有隐藏的陷阱,还有许多不进行配对代码审查的方法。 可能比常规的结对编程更多。

后期反馈 (Late feedback)

The most obvious problem is that getting feedback late can be very inefficient if it means rewriting a lot of code or you no longer have the willpower to change a poor design choice.

最明显的问题是,如果这意味着重写大量代码,或者您不再具有改变糟糕的设计选择的意愿,那么迟到的反馈可能会非常无效率。

Not everything is lost, though. The reviews should be done frequently, preferably on small pieces of code. Most importantly, we learned to reach out for advice early and often whenever we got to a decision that might be difficult to change.

但是,并非一切都丢失了。 评审应经常进行,最好是在少量代码上进行。 最重要的是,我们学会了尽早地寻求建议,并且经常在每一次做出可能难以改变的决定时寻求帮助。

Keep in mind it requires a certain level of maturity, trust, and understanding to discern the right questions and time to ask. Disrupting flow is a factor; on the other hand, juniors are often too hesitant to ask for help when they get stuck on a problem (and that’s where pair programming can really save loads of time).

请记住,它需要一定程度的成熟度,信任度和理解力,才能识别正确的问题和提出问题的时间。 扰流是一个因素。 另一方面,初中生在遇到问题时常常不愿寻求帮助(这是结对编程可以真正节省大量时间的地方)。

公开反馈 (Openness to feedback)

Trust and openness are also important to accept a constructive critique and change one’s mind after the code is finished, otherwise, the effect of pair code review will be strongly reduced.

信任和开放对于接受建设性的批判并在代码完成后改变主意也很重要,否则,将大大降低配对代码审查的影响。

草率的代码审查 (Sloppy code review)

Conversely, the reviewer must not be afraid to speak her mind and point out things that are worth changing or discussing. The coder and reviewer can rely too much on each other without making it explicit and let problems slide unnoticed.

相反,审稿人一定不要害怕说出自己的想法并指出值得更改或讨论的内容。 编码人员和审阅者可能彼此过度依赖,而又没有使之明确,并使问题不被注意。

何时使用配对验证码 (When to use pair code review)

As a rule of thumb, I have a higher preference for pair coding until we get to know each other really well, harmonize our approaches, build trust, and learn when to ask to get unstuck. Then as advantages of pair programming for daily work diminish, I would transition to pair code review.

根据经验,我对结对编码有较高的偏爱,直到我们真正了解彼此,协调我们的方法,建立信任并了解何时要求解脱为止。 然后,随着配对编程在日常工作中的优势减弱,我将过渡到配对代码审查。

I would prefer pair programming with juniors (though not all the time) and new team members, when starting a new project, or to bounce ideas off each other when trying to crack a tough bug or problem.

在开始一个新项目时,我更喜欢与初级人员(尽管不是所有时间 )和新团队成员结对编程,或者在尝试破解一个棘手的错误或问题时互相激发想法。

I would prefer pair code review when I know the colleague well enough to know what to expect, especially if pair programming is not so practical, e.g., because we have a too different pace of work. Alternatively, you may find pair review useful to ease colleagues with an aversion to pairing into pair programming.

当我对同事足够了解并期望会发生什么时,我更希望使用配对代码复习,尤其是在配对编程不那么实际的情况下,例如,因为我们的工作节奏差异太大。 另外,您可能会发现配对复习对缓解同事对配对编程的厌倦很有用。

摘要 (Summary)

By pair code review, I mean a practice where the reviewer inspects the code, then sits together with the author, and guides the author through the comments, fixing them together.

通过配对代码审查,我的意思是 做法是,审阅者检查代码,然后与作者坐在一起,并指导作者完成注释,然后将注释固定在一起。

I don’t mean to argue that code reviews are better than pair coding. I’m trying to say that in situations where pair coding is not the best option, we can do better than just regular code review — and pair code review can go a long way.

我的意思不是说代码审查比配对编码更好。 我想说的是,在配对编码不是最佳选择的情况下,我们可以做得比常规的代码审查还要好-配对代码审查可以走很长一段路。

Even though it is not a practice that’s mentioned a lot, I’m glad to have it in my toolbox. I invite you to experiment and see how useful it is for you.

即使没有大量提及这种做法,我也很高兴能在工具箱中使用它。 我邀请您尝试一下,看看它对您有多有用。

翻译自: https://medium.com/@jan.michelfeit/pair-code-review-4f6ef6c81b57

取消蓝牙配对代码


http://www.taodudu.cc/news/show-4839887.html

相关文章:

  • 通过升级cmake版本解决NDK编译报错:no member named ‘signbit‘ in the global namespace;
  • 关于开放自动化的思考:模型,协议与算法
  • 工业互联网大数据中心使用 KubeEdge 实践
  • WSO2 ——(7)ESB功能:协议转换
  • WSO2 apim 安装使用的全过程详解
  • Word文件批量转PDF格式超实用
  • 什么?你还不知道 Word 批量转 PDF?python来教你
  • JavaScript es6 五种常见继承方式
  • Es5的几种继承方式
  • js继承的几种方式
  • JavaScript中6种常见的继承方式
  • js常见的的6种继承方式
  • js对象:实现继承的几种方式及优缺点
  • JS 总结之原型继承的几种方式
  • js继承的六种方式详解--认真看完你就会了
  • CA-CFAR代码实现
  • 数字信号处理——CFAR检测器设计(4)
  • 雷达编程实战之恒虚警率(CFAR)检测
  • 基于Matlab计算经典CFAR阈值
  • 数字信号处理5——CFAR算法及matlab实现
  • 工字型钢弹性截面模量计算公式_截面模量的计算公式是什么?
  • 金万维异速联手机版 领军远程接入市场
  • Mac打开所有分辨率的HiDPI
  • MacBook Air M2无需虚拟屏启用Hidpi+任意缩放(22年9月)
  • m1芯片mac为2K显示器开启hidpi
  • 如何在黑苹果上开启HiDPI分辨率
  • MacOS Big Sur、Monterey、Ventura 开启 HIDPI
  • Big Sur 2K显示器HiDPI修改
  • Apple M1 开启HiDPI的新方法,无需虚拟屏,无需SwitchResX
  • 数组模拟静态链表

取消蓝牙配对代码_配对代码审查相关推荐

  1. 蓝牙配对不弹配对框_配对编程在工作场所的好处和陷阱

    蓝牙配对不弹配对框 Pair programming is two programmers working together at one workstation. 结对编程是指两个程序员在一个工作站 ...

  2. python蓝牙编程代码_以编程方式通过python将蓝牙设备绑定到rfcomm

    我用python编写了一个脚本,用于M5Stack Stick C(如raduino)与树莓派之间的串行通信.一切正常.我可以将树莓派中的" X"," Y"或& ...

  3. arduino蓝牙通讯代码_一种基于Arduino的蓝牙通信系统的制作方法

    本实用新型涉及无线通信技术领域,具体来说,涉及一种基于Arduino的蓝牙通信系统. 背景技术: 随着通信技术的发展,无论是在物联网,还是互联网,传统的有线传输技术已经越来越不能满足企业和个人的需求. ...

  4. arduino蓝牙通讯代码_在两块Arduino开发板之间实现蓝牙通信

    HC-05蓝牙模块是任何Arduino项目必不可少的蓝牙模块!很容易进行连接以及在Arduino IDE中编写代码.在大多数项目中,我们通常将HC05连接至Arduino,并使用它与其他智能设备(如手 ...

  5. arduino蓝牙通讯代码_通过手机控制蓝牙串口模块与Arduino通讯

    功能 通过手机APP向蓝牙模块发送指令,蓝牙模块通过串口将指令传递给Arduino开发板,并由Arduino做出反馈,传递给手机. 工具材料Arduino 开发板 ×1 蓝牙串口模块×1 Androi ...

  6. arduino蓝牙通讯代码_「Arduino」OLED屏使用教程,显示内容听谁的?我不管,听我的...

    玩转Arduino小伙伴肯定都接触过OLED屏吧,不管是在Arduino还是树莓派中都起到浓墨重彩的一笔,会写编程的同学也可以变换更多的花样. 材料清单: Arduino驱动板 x 1 OLED模块 ...

  7. arduino蓝牙通讯代码_蓝牙4.0模块 无线数据传输模块 无线蓝牙串口 Arduino

    产品介绍: 蓝牙4.0模块是专为智能无线数据传输而打造的.该模块遵循BT2.1+EDR/3.0/4.0(BLE)蓝牙规范,支持SPP 蓝牙串口协议等.本模块集成了MCU 和蓝牙芯片,支持UART.SP ...

  8. 展锐平台 取消蓝牙配对码弹框

    文档说明 适用于 展锐8541E平台 Android 10 代码 取消蓝牙配对码弹框,实现蓝牙自配对 修改方法 /packages/apps/Settings下 diff --git a/src/co ...

  9. 蓝牙配对不弹配对框_人工智能和字体配对

    蓝牙配对不弹配对框 First, a quick ML vs AI difference to make me sound cool.

最新文章

  1. 如何查看服务器一个端口的占用情况(netstat -an)
  2. linux服务器登录时慢出现卡顿
  3. linux下rip服务启动失败,RIP协议_linux系统管理与服务的技术博客_51CTO博客
  4. 2021牛客暑期多校训练营1
  5. php字符串与数字比较,PHP容易被忽略而出错陷阱 数字与字符串之间的比较
  6. ASUS K401L安装Windows8.1注意事项
  7. linux服务器程序乱码,Linux安装GBK/GB2312程序显示乱码的五种解决方法
  8. 基于JAVA+SpringMVC+Mybatis+MYSQL的在线超市管理系统
  9. jquery 判断是否是浮点数_jquery或者js获取到元素宽高精确到小数
  10. opencv打开的图片应用于nn.Conv2d()(二)
  11. 中英文对照 —— 图表等的可视化
  12. android 字体设置方正,(技术)Android 默认非衬线字体修改为衬线字体
  13. 把百度首页放到博客里看看
  14. aspUpload有组件上传文件
  15. PyQt5 与 PySide2 所有事件大集合,一段代码包括键盘、鼠标和窗口所有事件
  16. 逆向记录Assaultcube for Mac OS
  17. 【elementUI】el-table树形结构样式修改-gif展示说明 按要求自取即可
  18. 从零开始做自媒体短视频,新手一样可以操作!每月稳定5000多
  19. 量化干货 | 机器学习能否助力风险投资?
  20. 压缩PDF文件的一个绝妙做法

热门文章

  1. C#使用Emgu CV来进行图片人脸检测
  2. 网络安全现状:揭秘白帽黑客的真实收入
  3. 多径效应、符号内干扰、符号间干扰ISI、ICI
  4. 实验二 倒计时页面的实现 淘宝秒杀页面
  5. 动手实现简易PHP一句话连接工具——FruitKnife
  6. 摩尔斯电码转换python编码_python-摩尔斯电码查询器
  7. matlab 利用iris工具做季节调整
  8. 通过Exiv2读取照片的Exif信息获取GPS,焦距等信息
  9. bat批处理文件按顺序执行exe
  10. Robo 3T的安装与使用教程