The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: 肖海彤 <red...@gmail.com>
Date: Mon, 21 Sep 2009 20:36:08 -0700 (PDT)
Local: Mon, Sep 21 2009 11:36 pm
Subject: Re: {技术}代码的坏味道——你们的项目有这些问题吗?
问题是, 原来有一半的代码是通过全局变量来耦合的, 这些 .cpp 几乎引用所有的 .h; 完成同样的功能的代码, 每个地方各写一份; 超
过 800行的函数有不少个, 我是想不出可以怎么写测试代码了 :) 我只能当所有的 .cpp 是一个单元, 所有的上层脚本是我的测试代码了. On Sep 22, 10:55 am, Tiny fool <tinyf...@gmail.com> wrote: > 无法写出单元测试的情况下重构,确实可以表现你的功底,但是为了质量还是最好在单元测试的前提下重构吧
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||