Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [code-complete]

a seminal software development book by Steve McConnell

1
vote
1answer
130 views

One-person, informal project - creating good requirements

(For more backstory/explanation, see my previous question.) I'm a middle school student working on a very, very informal project; my problem statement is as follows: There is no way for ...
10
votes
1answer
3k views

Creating a good problem statement

< backstory > I grabbed a book called Code Complete at a used bookstore the other day because I heard it was a great book, and started reading it. After around 10 pages I realized that I've been ...
7
votes
4answers
3k views

Code formatting: is it worth to make bad code to look bad? [closed]

In Code Complete 2nd Edition, Steve McConnell wrote the following (page 732): Techniques that make good code look good and bad code look bad are more useful than techniques that make all code ...
25
votes
1answer
2k views

What does the author of Code Complete mean when talking about hiding global data?

In section 6.4 of Code Complete 2nd Edition there is a paragraph about hiding global data. What I am particularly interested in, is that McConnell (the author of the book) gives examples of the ...
3
votes
2answers
1k views

In an if statement, what are an “if clause” and a “then clause”?

I am a bit confused about the nomenclature for the parts of an if statement. Consider the following example: 1: if condition then 2: statement_1; 3: else 4: statement_2; 5: end if; What ...
4
votes
1answer
281 views

What recent studies point to the possible improvement a programmer can make as a result of personal character traits? [closed]

In Chapter 33, Personal Character of Code Complete (Second ed.) McConnell cites some studies such as those listed below in support of the assertion that 10-1 improvement is possible from efforts in ...
3
votes
5answers
2k views

Why sequential cohesion for operations in a method is not a good idea?

I read from the seminal Code Complete book that method statements that require to be executed in order passing parameter from one to the next is a code smell and is an example of a sequential ...
2
votes
1answer
3k views

Analogy of a class being a cookie cutter and objects being cookies

I came across the analogy of the class being a cookie cutter and the cookies being objects while reading Code Complete. I fail to see why this analogy was drawn.How is it related to the concept of ...
5
votes
1answer
1k views

Explanation of Object-parameter-coupling as mentioned in Code Complete book

I have been reading up on the seminal and excellent book Code Complete. It discusses about the various kinds of couplings that can happen between modules(which may be classes as well as methods): ...
8
votes
2answers
570 views

Is this paragraph in Code Complete 2 backwards, or am I misunderstanding it?

In chapter 13, when talking about pointers, there is a paragraph: Sometimes, however, you would like to have the semantics of pass by reference—that is, that the passed object should not be ...
3
votes
2answers
480 views

Why is design by contract considered an alternative to the pseudo programming process?

Right now I'm reading Code Complete by Steve McConnell and in chapter 9 he talks about the Pseudo Programming Process (PPP). From what I've understood, the PPP is a way of programming in which the ...
10
votes
3answers
631 views

Programming *into* a language vs. writing C code in Ruby

Code Complete states that you should aways code into a language as opposed to code in it. By that, they mean Don't limit your programming thinking only to the concepts that are supported ...
2
votes
3answers
337 views

What is the Most Expedient Way to Make Legacy Code Conform to 'The Principle of Proximity'?

On page 242 of Code Complete 2, Steve McConnell touts The Principle of Proximity. Put simply, Mr. McConnell advises programmers to keep related actions together. In my case, the applicable emphasis ...
17
votes
4answers
5k views

When one should read 'Code Complete'?

I'm pretty sure about Who but when ? The one with proficient knowledge of programming and software development or the one who's just a beginner in cyber ( programming, to be precise ) world ? I'm ...
70
votes
2answers
21k views

What are the key points of Code Complete? [closed]

I have heard a lot of people mention Code Complete as a book worthwhile reading. Unfortunately, I am so busy that I don't have time to read it, so can anyone tell me what the key points of the book ...