2006年12月26日星期二

代码review

代码review是每个程序都经常会做的一项工作,昨天给同事做代码review时,出现了之前也经常遇到的问题,感觉需要整理一下了。
一代码规范性问题
每个行业都有自己的行业规范标准,要想在市场上立足,如果不能参与制定市场规则,就需要来遵守,相信很多程序员都有尽快实现功能然后再补充文档、注释等习惯,但这样往往并没节省那一点时间:a 严格按照统一的规范来编码,便于与别人的交互;b 思路更清楚,也有利于后期的维护

二 对于变更的处理
我们知道在编程过程中,变更是再正常不过的事情,但如何来处理变更呢?
a通知所有与之相关的人b思考这个变更对自己的编码是否有影响。通常情况下,对于前者大家都知道去做,但对后者,大家在执行过程中,总是会出现有这样那样的问题:如未意识到变更的影响,或未正确理解变更;如未仔细考虑自己需要修改自己的代码来实现这个变更(主体模块可能与自己不相关,但变更会影响到自己的)
三清晰地理解自己要完成的目标
相对来说,编码阶段已经是项目的中后期,因此面对各方面的压力会越来越大,因此大家在编码过程中难免有些尽快实现功能而不太过虑具体细节,尤其是与整个系统的关联性或有特定行业要求的情况,特别是有详细设计,指定自己要做什么之后。但知道要做什么是至关重要的,返工的代价更是不可估量,还是让自己现在多一点的思考吧。
----------------------------------------------------
Code review is the daily job of every programmer.I found several problems like ago which we often meet when i did this yesterday.So i clear up now.
First of all,we should consider the code criteron.

2006年12月25日星期一

AIX的安装与使用(初级)三

四 AIX 使用
1 如何查看本机相关硬件信息:
prtconfig
lsdev
2 AIX的存储:LVM
理解几个概念:
PV,PP,VG
LV,fileset
3 如何从提供的CD上安装更新:
可以通过smitty直接安装;
可以先mount到系统中,查看光盘的README进行安装:
mount –v cdrfs –o ro /dev/cd0 /mnt
cp /mnt/README* /tmp/readme
unmount /mnt
more /mnt.readme/README
-------------------------------------------------------
Fourth: the simplest operation of AIX
1 look for the information about the machine hardware:
prtconfig
lsdev
2 the storage of AIX:LVM
master some concepts:
PV,PP,VG
LV,fileset
3 how do you update the AIX from the CD?(the mount command)
you can use the simmty tool which is provided by the AIX;
you can mount that to the system,look the content of the 'README' of CD:
mount –v cdrfs –o ro /dev/cd0 /mnt
cp /mnt/README* /tmp/readme
unmount /mnt
more /mnt.readme/README

AIX的安装与使用(初级)二

三 初始设置
当系统成功安装后,会出现初始化设置对话框,这里建议设定以下几个选项:
1 时间:可选
2 密码:必选,并注意密码复杂度尽量大点(设定后你才可登录系统)
3 TCP/IP: 必选(设定后,你可以通过telnet或ftp在远程访问操作)
hostname:kscvicseaix,这个要求不能与已经存在的重复,可以以“地区+公司名+aix”形式;
Ip:192.168.128.19;
Subnet mask: 255.255.255.0,这个记得填写啊,否则会报错的;
Netwrok interface: en0 01-10 Standard Ethernet Network Interface;
IP address of the name server : 221.6.4.67,这个与windows下的DNS是相同的;
Domain name: ks.cvicse.com,这个我认为没有太大要求
Default gateway address: 192.168.128.200
可参考IBM官方WIKI:http://www-941.ibm.com/collaboration/wiki/display/WikiPtype/Setup+Options
----------------------------------------------------------------------------------
Third initial setup
When you succeed to install the operating system, there will show a dialog box about initial setup. Here i suggest you finish those setups:
1 time:optional
2 password:must,and you should set the password more complex(you can login until you finish this);
3 TCP/IP:must(after finish this, you can operate the system at remote client by telnet or ftp)
hostname:kscvicseaix,the host name must be only,so you can call it by 'local'+' company's name'+ aix;
Ip:192.168.128.19;
Subnet mask: 255.255.255.0,you should fill this otherwise there will report error;
Netwrok interface: en0 01-10 Standard Ethernet Network Interface;
IP address of the name server : 221.6.4.67,familiar with the DNS of windows;
Domain name: ks.cvicse.com,i think this don't have specific request
Default gateway address: 192.168.128.200
you can visit the site of IBM official WIKI: http://www-941.ibm.com/collaboration/wiki/display/WikiPtype/Setup+Options

2006年12月23日星期六

AIX的安装与使用(初级)一

工作原因需要自己亲自安装AIX系统,之前未接触过,正好是个学习机会,因此在这里写下来与大家分享。
一 安装准备
1 希望对unix有些初级的知识,可以参考购买机器时自带的“AIX系统安装”;
2 最好有台能上网的笔记本在身边,便于记录安装过程与查找在安装过程中出现的问题;
二 AIX的安装
其实在ixpub上有许多这方面的文档,大家可以下载个完整的来看看,这里我只是说一下,我认为大家在安装的时候应该注意的地方:
1 系统设定:如果是首次安装要选择:new and complete installation
2 最好修改一下更多的选项:
desktop最好也安装个GNOME,默认的CDE还是会安装的;
create JFS2 file system 选择yes;
graphic software 选择yes;
mozilla选择yes;
在这些选择过程中,会提示所需要的具体的CD名称(可以选择88来查看所选择软件的说明),都准备好,这样开始安装就可以了。
可参考IBM官方WIKI:http://www-941.ibm.com/collaboration/wiki/display/WikiPtype/Installation
-------------------------------------------------
I should install the AIX system because of the job requirement. Although i haven't know how to operate, i am glad learn to use it.And i write the process and hope share with you.
First you should prepare for:
I hope you have some little knowledge about the UNIX system, and you can read the accessary which will go with the machine you buy;
II you can put a notebook around yourself so that you can record the data about the installing process and search the answer when you meet problems, of course it is the better the the notebook can use the internet;
Second the installing of AIX
There are many documents about installing the AIX in the IXPUB in fact,everybody may download this to have a look.Here, i will takl about something i think you should consider when you do this:
the more options:
you can choose the GNOME about the desktop,and the default CDE also will be installed;
choose the yes about the 'create JFS2 file system';
choose the yes about the 'graphic software';
choose the yes about the 'mozilla';
During the process of choosing the more options,you may prepare for the CD which name will be showed when you enter 88.And you can install now.
Of course you can visit the WIKI of IBM official :http://www-941.ibm.com/collaboration/wiki/display/WikiPtype/Installation

2006年12月22日星期五

“中国式离婚”

今天晚上终于看完了。
在看的过程中,我始终夹杂着些许的气愤,对于他们的猜疑和无端生事更是愤怒,内心中一直为宋建平打不平,也比较佩服林小枫这样的人物,现在这样的无聊还能让人气愤的角色也越来越少了。
看后,我在想:
对于我们来说婚姻是什么?又想要一个什么样的伴侣呢?
---------------------------------------------------------
I have finished watching program:Chinese divorce
I am angry with them all the time because theirs doubt and unprovoked act with husband or wife.In my heart i think the actor SongJianping is good and i admire the role of LinXiaofeng,such humdrum and outrageous role which will attract you become less and less.
And this make me think:
what 's mean for us about wedding?
how do you choose your future?

appendix:
演员:
宋建平---陈道明
林小枫---蒋雯丽
刘东北---贾平
娟子----左小青
肖莉---咏梅
林母---吕中
林父---石维坚
当当---史磊
有趣的话:
哀莫过于心死---宋建平

我的名字

有趣的未来--A.I.X

有趣的未来
--------------
A.I.X----->an interesting X

如上分两部分:
汉字部分:本贴子 的内容
字母部分:用英语再说一次