Google
 

Thursday, June 21, 2007

写code要认真

最近发现自己写code还是有不少问题,总是会在一些小地方犯重要的错误。
这里,还是要学习Comars他们在ACM比赛中的一个经验,不要Copy/Paste code,所有的code都自己认真敲键盘,就算有重复的code也要再敲一遍,虽然费点时间,但是这样会避免很多错误。比如你可能copy一段code,还需要改一些变量名或者做小的修改,可能稍微少改了一处,结果导致一个bug。这种bug还很难查找......所以,宁可多花一点时间写更solid的code了

恩 要solid啊 恩 恩

4 comments:

Casablanca said...

强烈re阿。。偶写code常常copy/paste..于是常常莫名其妙bug...

Anonymous said...
This comment has been removed by a blog administrator.
Anonymous said...

Good day, sun shines!
There have been times of hardship when I didn't know about opportunities of getting high yields on investments. I was a dump and downright pessimistic person.
I have never imagined that there weren't any need in large initial investment.
Nowadays, I'm happy and lucky , I started to get real money.
It gets down to select a proper companion who uses your money in a right way - that is incorporate it in real deals, parts and divides the profit with me.

You can ask, if there are such firms? I have to tell the truth, YES, there are. Please get to know about one of them:
http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]

Anonymous said...

good read, post more!