All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
中移动将成立在线服务公司 - 中国移动
玩手机被骂,11岁男孩怒切左手食指:父母惊呆 - 教育,手机控
More advanced driving recorder, BMW’s cooperation with the GoPro,
Siemens CEO: competition of beauty and acquisitions library card? Not interested,
Self-study: Secrets of why the United States half of non-trained programmers,
三网融合方案实施,电视台与运营商或结盟 - 三网融合,宽带,电信,广电
商业广告入侵智能电视,开机动画也不放过 - 智能电视,开机广告
Adobe云协作平台,让创作者们再也不需要纸和笔 - Adobe,iPad Pro
那位入侵吉普车的黑客,现被Uber招为安全专家 - Uber
互联网人才大热:传统行业争抢 - 互联网
Reading number is top 10 pictures
程序员的悲哀
The money of more than 100 countries and regions12
人造器官和铁肺人
鸡也看毛片
壮丽的云彩2
The money of more than 100 countries and regions14
各种囧况!玩游戏最不喜欢出现的十件事
Beautiful vacuum girl1
大年初五接财神
Household design of gorgeous series
Download software ranking
Adobe Flash Player(IE) 10.0.32.18 浏览器专用的FLASH插件
WebService在.NET中的实战应用教学视频 → 第1集
Eclipse 4.2.2 For Win64
美女游泳记
Tram sex maniac 2 (H) rar bag1
星际争霸1.08硬盘免安装版
Boxer's Top ten classic battle2
Sora aoi's film--cangkong_Blue.Sky
Ashlynn Video4
Boxer Classic video3
published in(发表于) 2013/11/12 12:32:31 Edit(编辑)
Law of programming June

Law of programming June(编程的六月定律 )

Law of law of programming in June-June, programming, programmer-it information Law of programming June

Last week, I was forced to make some changes to an old project. The trouble is, when you started, I really can't remember exactly how old this item.

This one I actually use Codeigniter to achieve first MVC project. Open the project file, a lot of things are making me dizzy. First, there is no version control, second, there is no comment.

Reading the code, my "F*CK/minutes" project has been started to break through the roof.

Very few Model projects. Controller has a lot of duplicate code, View mast creepy. I believe the logical View is actually better than Model and Controller layers add up to much.

Should I be ashamed?

The answer is NO. (If it were, I wouldn't be writing this blog. )

And why not?

Because there is a law of June. June law says is that every programmer should look back at their own 6 months ago to write code, and should be rejected at that time to write the code.

That brings the focus of this article: If you're a programmer, when you look at 6 months ago when I wrote the code, if you find the same as now write the code level, please don't write, you should learn some new things.

That's why when I saw the previous write ugly code, but am glad that reason. Very happy. That means my progress. So, instead of feeling shame for those ugly code, rather than delighted to accept them, it means you are growing up.


(

编程的六月定律 - 六月定律,编程,程序员 - IT资讯
编程的六月定律

上周,我被迫对一个很老的项目做一些修改。麻烦是,当开始着手时,我真的记不清这个项目究竟有多老了。

这实际上是我使用Codeigniter实现的第一个MVC项目。打开项目文件后,很多东西都让我头晕。首先,没有版本控制,第二,没有注释。

读起代码,我的“F*CK/分钟”的值一直冲破屋顶。

项目里面的Model很少。Controller层有大量重复的代码,View层肥大的令人毛骨悚然。我相信View层里的逻辑实际上比Model层和Controller层的加起来都要多。

我该为此感到羞耻吗?

答案是NO。(如果是的话我也不会写这篇博客里。)

为什么不?

因为有个六月定律。六月定律说的是,每个程序员都应该回头看看自己6个月前写的代码,并且应该会唾弃当时写的那些代码。

这就引出了本文的重点:如果你是个程序员,当你看6个月前写的代码时,如果发现跟现在写代码的水平一样,请别写了,你应该学习一些新东西了。

这就是为什么当我看到以前的代码写的奇丑无比时反而很高兴的原因。非常高兴。这说明我进步了。所以,与其为那些丑陋的代码感到羞耻,不如高兴的接受它们,这意味着你在成长。


)


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.