思念
当思念成为一种习惯,没经过大脑的思考就在去做。
做的事情是为了你?错,是为了自己,虽然收益方是你,但当做了这件事,自己的心情也会变得更加的舒服、高兴,是另一种倾诉方式。
有些人喜欢接受来自友爱的“思念”的产物,而有些相反。当你不经意的去做服务于对方的事时,其实给对方带来了一种负担。倘若是你,如何理解呢,当然假设你是属于不太喜欢接受的一方。
一方是禁不住的,未经过当大脑,习惯使然,另一方对恩惠却心含“内疚”。咋办?
放弃。
善意的提醒。
冷落。
“刺激”对方。
代码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.
标签: code review
四 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
三 初始设置
当系统成功安装后,会出现初始化设置对话框,这里建议设定以下几个选项:
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