技术宅,fat-man

增加语言的了解程度可以避免写出愚蠢的代码

导航

2013年3月30日 #

一次还算成功的重构实例

摘要: 帮朋友重构的,重构的原则:消除过多的变量,消除控制结构的嵌套重构之前 1 protected void btnSubmit_Click(object sender, EventArgs e) 2 { 3 string content = this.txtContent.Value; 4 string phones = ""; 5 string[] arrphone = null; 6 7 int mobilenum = 0; //输入的号... 阅读全文

posted @ 2013-03-30 21:43 codestyle 阅读(284) 评论(0) 推荐(0)