- 博客(21)
- 收藏
- 关注
原创 Personal Characters
You employer cant force you to be a good programmer; a lot of times your employer isnt even in a position to judge whether youre good. If you want to be great, youre responsile for making yourself
2004-10-29 23:16:00 1753 1
原创 Documentation
Kind of comments:1. Repeat of the code. A repetitious comment restates that the code does in defferent words. It merely give the reader of the code more to read without providing additional informatio
2004-10-28 23:14:00 973
原创 Layout and Style
Objective of good layout1. Accurately represent the logical structure of the code.2. Consistently represent the logical structure of the code.3. Improve readability4. Withstand modifications.Guideli
2004-10-27 23:04:00 793
原创 Integration
Benefits you can expect from careful integration:1. Easier defect diagnosis2. Fewer defects3. Less scaffolding4. Shorter time to first working product5. Shorter overall development schedules6. Improve
2004-10-26 23:23:00 1118
原创 Managing Construction
Encouraging good codingSince code is the primary output of construction, a key question in managing construction is "how do you encourage good coding practices?"Techniques for a achieving good codin
2004-10-24 22:35:00 825
原创 Performance Tuning Techinques.
Logic1. Stop testing when you know the answer.Some languages provides a form of expression evaluation known as "short-circuit evaluation", which means that the compiler generates code that automatical
2004-10-22 22:25:00 831
原创 Performance Tuning Strategies.
Think about efficiency from each of these viewpoint1. Program requirements. Performance is stated as a requirement far more often than is actually is a requirement. Before you invest time solving a pe
2004-10-22 22:10:00 767
原创 Refactoring
Reasons to refactor:1. Code is duplicated.2. A routine is too long.3. A loop is too long or too deeply nested.4. A class has poor cohesion.5. A class interface does not provide a consistent level of a
2004-10-21 23:48:00 811
原创 Debugging
Like testing, debugging isnt a way to improve the quality of your software; its a way to diagnose defects.Effective approach for finding a defect:1. Stabilize the error.2. Locate the source of the
2004-10-20 22:38:00 841
原创 Developer Testing
Recommended approach to developer testing1. Test for each relevant requirement to make sure that the requirements have been implemented. Plan the test cases for this step at the requirements stage or
2004-10-19 23:10:00 956
原创 Collaborative Development
Collaborative construction refers to pair programming, formal inspections, informal techinical reviews and document reading, as well as other techniques in which developers share responsibility for cr
2004-10-18 23:26:00 929
原创 The Software-Quality Landscape
Characteristics of software qualityExtenal chracteristics that a user is aware of:1. Correctness. The degree of which a system is free from faults in its specification, design and implementation.2. Us
2004-10-16 23:27:00 1058
原创 General Control Issues
Boolean Expressions1. Break complicated tests into partial tests with new boolean variables.Rather than creating a monstrous test with half a dozen terms, assign intermediate values to terms that allo
2004-10-15 23:46:00 942
原创 Table-Driven Methods
First, an example of table-driven method in P2How to look up entries in the table1. Direct AccessFor example, you want to the days number for every month, store the days in an array and use month as
2004-10-14 23:02:00 1079
原创 Control-Unusual Structures
Multiple Returns from a Routine1. Use a return when it enhances readability.2. Use guard clauses(early returns or exits) to simplify complex error processing.3. Minimize the number of returns in each
2004-10-12 23:31:00 765
原创 Control-Loops
Entering the Loop1. Enter the loop from one location only.2. Put initialize code directly before the loop.3. In C++ and Java, use for(;;) or while(true) for infinite loops.4. Dont use a for loop when
2004-10-10 23:36:00 1009
原创 Control-Conditionals
Guidelines when writing if statements1. Write the nominal path through the code first; then write the unusual cases.2. Make sure that you branch correctly on equality.3. Follow the if clause with a me
2004-10-09 22:05:00 709
原创 Control-StraightLine Code
Statement that must be in a specific order1. Organize code so that dependencies are obvious.2. Name routines so that dependencies are obvious.3. Use routine parameters to make dependencies obvious.4.
2004-10-08 22:34:00 849
原创 Unusual Data Types
Structures1. Use structures to clarify data relationship.2. Use structures to simplify operations on blocks of data.3. Use sturctures to simplify parameter lists.4. Use structures to reduce maintenanc
2004-10-08 22:21:00 823
原创 Data Types
Numbers in General1. Avoid "magic numbers".2. Use hard-coded 0s and 1s if you need to.3. Anticipate divide-by-zero errors.4. Make type conversions obvious.5. Avoid mixed-type comparisons.Integer1. C
2004-10-06 22:36:00 814
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人