Personal Characters

You employer can't force you to be a good programmer; a lot of times your employer isn't even in a position to judge whether you're good. If you want to be great, you're responsile for making yourself great. It's a matter of your personal character.

Curiosity. In the development of a superior programmer, curiosity about technical subjects must be a priority.
1. Build your awareness of the development process.
The more aware you are of the development process, whether from reading or from your own observations about software development, the better position you're in to understand changes and to move your group in a good direction.
2. Experiment.
One effective way to learn about progrmming is to experiment with programming and the development process. One key to effective programming is learning to make mistake quickly, learning from them each time. Making a mistake is no sin. Failing to learn from a mistake is.
3. Read about problem solving.
4. Analyze and plan before you act.
5. Learn about successful projects.
One especially good way to learn about programming is to study the work of the great programers.
6. Read other books and periodicals.
If you read even one good programming book every two months, roughly 35 pages a week, you'll soon hava a firm grasp on the industry and distinguish yourself from nearly everyone around you.
7. Make a commitment to professional development.
It's no sin to be a beginner or an intermediate. It's no sin to be a competent programmer instead of a leader. The sin is in how long you remain a beginner or intermediate after you know what you have to do to improve.

Intellectual honesty
1. Refusing to pretend you're an expert when you're not.
2. Readily admitting your mistakes.
3. Trying to understand a compiler warning rather than suppressing the message.
4. Clearly understanding your program-not compiling it to see if it works.
5. Providing realistic status reports.
6. Providing realistic schedule estimates and holding your ground when management asks you to adjust them.

Communication and cooperation
Truly excellent programmers learn how to work and play well with others.

Creativity and discipline.
Some creative programmers view the discipline of standard and conventions as stifling to their creativity. The opposite is true. Without standards and conventions on large projects, project completion itself is impossible.

Laziness
Laziness manifests itself several ways:
1. Deferring an unpleasant task.
2. Doing an unpleasant task quickly to get it to out of the way.
3. Writing a tool to do the unpleasant task so that you never have to do the task again.
Some fo these manifestations of laziness are better than others.

Persistence
Depending on the situation, persistence can be either an asset or a liability. Most of the time, persistence in software development is pigheadedness, it has little value. Persistence when you're stuck on a piece of new code is hardly ever a virtue. Try redesigning the class, try an alternative coding approach, or try coming back to it later. When one approack isn't working, that's a good time to try an alternative.

用C++编写程序,实现以下问题2、题目ID Codes(POJ1146) Time Limit: 1000MS Memory Limit: 10000K 描述: It is 2084 and the year of Big Brother has finally arrived, albeit a century late. In order to exercise greater control over its citizens and thereby to counter a chronic breakdown in law and order, the Government decides on a radical measure--all citizens are to have a tiny microcomputer surgically implanted in their left wrists. This computer will contains all sorts of personal information as well as a transmitter which will allow people's movements to be logged and monitored by a central computer. (A desirable side effect of this process is that it will shorten the dole queue for plastic surgeons.) An essential component of each computer will be a unique identification code, consisting of up to 50 characters drawn from the 26 lower case letters. The set of characters for any given code is chosen somewhat haphazardly. The complicated way in which the code is imprinted into the chip makes it much easier for the manufacturer to produce codes which are rearrangements of other codes than to produce new codes with a different selection of letters. Thus, once a set of letters has been chosen all possible codes derivable from it are used before changing the set. For example, suppose it is decided that a code will contain exactly 3 occurrences of a', 2 of b' and 1 of c', then three of the allowable 60 codes under these conditions are: abaabc abaacb ababac These three codes are listed from top to bottom in alphabetic order. Among all codes generated with this set of characters, these codes appear consecutively in this order. Write a program to assist in the issuing of these identification codes. Your program will accept a sequence of no more than 50 lower case letters (which may contain repeated characters) and print the successor code if one exists or the message No Successor' if the given code is the last in the sequence for that set of characters. 输入: Input will consist of a series of lines each containing a string representing a code. The entire file will be terminated by a line consisting of a single #. 输出: Output will consist of one line for each code read containing the successor code or the words 'No Successor'. 样例输入 abaacb cbbaa # 样例输出 ababac No Successor
05-22
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值