构建之法2,3,4,11章

来源:互联网 发布:嘉实优化红利股票基金 编辑:程序博客网 时间:2024/05/14 20:22
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">每个工程师在软件生命周期中所做的工作应该有一个流程。单元测试结果应该是一成不变。单元测试必须由熟悉代码的人写。在软件开发过程中,个人也有独立的流程。个人要在团队内容中成长并及时反省。代码是给人看的,所以个人代码要有一定的规范。要有搭档在旁边复审,避免自己找不到自己的错误。而两人合作必定要有一定的磨合适应阶段,才能更好的默契合作。</span>
<div class="line number1 index0 alt2" style="line-height: 15.3999996185303px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; margin: 0px !important; padding: 0px 1em !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; min-height: inherit !important; white-space: pre !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"><p><!-- 广告组件 -->    <activity android:name="net.youmi.android.AdBrowser"         android:configChanges="keyboard|keyboardHidden|orientation|screenSize"        android:theme="@android:style/Theme.Light.NoTitleBar" >    </activity>    <service         android:name="net.youmi.android.AdService"          android:exported="false" >    <rvice>    <receiver android:name="net.youmi.android.AdReceiver" >        <intent-filter>            <action android:name="android.intent.action.PACKAGE_ADDED" />            <data android:scheme="package" />        </intent-filter>    </receiver>    //广告    private void loadYMAds() {        // 实例化 LayoutParams(重要)        FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(             FrameLayout.LayoutParams.FILL_PARENT, FrameLayout.LayoutParams.WRAP_CONTENT);        // 设置广告条的悬浮位置        layoutParams.gravity = Gravity.BOTTOM | Gravity.RIGHT; // 这里示例为右下角        // 实例化广告条        AdView adView = new AdView(this, AdSize.FIT_SCREEN);        adView.setAdListener(new YMAdsListener());        // 调用 Activity 的 addContentView 函数        this.addContentView(adView, layoutParams);    }</p></div><div class="line number1 index0 alt2" style="line-height: 15.3999996185303px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; margin: 0px !important; padding: 0px 1em !important; border-top-left-radius: 0px !important; border-top-right-radius: 0px !important; border-bottom-right-radius: 0px !important; border-bottom-left-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; box-sizing: content-box !important; min-height: inherit !important; white-space: pre !important; background-image: none !important; background-attachment: initial !important; background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;">整整一天,我们俩椅子靠椅子的坐在电脑前,一边讨论一般敲代码,那次才真正的体会到结对真的能够带来效率。一整天的写代码是容易走神的事,还好有同学在旁边指导,总是不断在我敲某某变量之前提前告诉我成员变量的名字,数据修改时帮忙检查是否有漏掉的,变量和函数定义的时候一起为其取名字,感觉有点眼花了,就换了个角色,我也开始对他“指指点点”了,一个人<span style="font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 14px; line-height: 15.3999996185303px; white-space: pre; background-color: rgb(240, 240, 240);">敲代码</span>,一个人检查,确实能减少一些不必要的错误,减少一些漏洞,算法实现后一起做些简单的测试,看到漏洞了再一起分析,我能明显的感觉到与以前的个人编程不一样,我们能比较快的找到bug初始点,并能提出比较的修改方法。特别是当看到功能进一步实现时,心里确实挺高兴的,更重要的这份感受有同伴与你一起分享。</div>
0 0
原创粉丝点击