Questions tagged [code-complete]

A seminal software development book by Steve McConnell, first in the Developer Best Practices book series and the top answer to the Stack Overflow question, "What is the single most influential book every programmer should read?" (Link in usage guidance details)

Filter by
Sorted by
Tagged with
5 votes
2 answers
886 views

What is the difference between detailed design and design for construction?

I am currently reading Code Complete. And I was confused when the author in one case uses the term "detailed design", and in the other "design for construction". What is their ...
user avatar
32 votes
6 answers
7k views

Do inline expressions obstruct readability of code?

Currently, I'm reading "Code Complete" by Steve McConnell, 24.3 chapter "Specific Refactorings". I've become kind of confused with 4th paragraph, that looks like: Move an ...
CoderDesu's user avatar
  • 1,015
51 votes
3 answers
7k views

Are front-end state management tools an anti-pattern?

I'm currently reading "Code Complete" by Steve McConnell. In section 13.3 "Global data" in last paragraph "Don’t pretend you’re not using global data by putting all your data ...
CoderDesu's user avatar
  • 1,015
0 votes
1 answer
65 views

Type Aliasing and platform switching

I'm currently reading "Code Complete" by Steve McConnell. In section 12.9 "Creating Your Own Types (Type Aliasing)", in the pre-last paragraph of "Guidelines for Creating Your ...
CoderDesu's user avatar
  • 1,015
-4 votes
1 answer
130 views

Loops for enumerated types

I'm currently reading Code Complete by Steve McConnell. In section 12.6, Enumerated Types, he says that we can define first and last entries like limits: Define the first and last entries of an ...
CoderDesu's user avatar
  • 1,015
1 vote
1 answer
107 views

Variable binding time (Steve McConnell)

Currently reading Steve McConnell "Code complete". "General issues in using variables" chapter, "Binding time" section. He says about variable's binding time in such ...
CoderDesu's user avatar
  • 1,015
1 vote
1 answer
164 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 ...
auden's user avatar
  • 1,637
11 votes
1 answer
5k 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 ...
auden's user avatar
  • 1,637
7 votes
4 answers
4k 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 ...
uqk's user avatar
  • 79
26 votes
1 answer
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 ...
Kapol's user avatar
  • 398
4 votes
2 answers
4k 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 ...
rick's user avatar
  • 1,965
4 votes
1 answer
291 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 ...
MauMen's user avatar
  • 169
5 votes
5 answers
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 ...
Geek's user avatar
  • 5,167
2 votes
1 answer
5k 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 ...
Geek's user avatar
  • 5,167
5 votes
1 answer
2k 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): ...
Geek's user avatar
  • 5,167
7 votes
2 answers
603 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 ...
mowwwalker's user avatar
  • 1,149
3 votes
2 answers
674 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 ...
Mihai Bişog's user avatar
10 votes
3 answers
788 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 ...
bastibe's user avatar
  • 1,359
2 votes
3 answers
392 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 ...
Jim G.'s user avatar
  • 8,005
20 votes
4 answers
7k views

When should one 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 programming? I'm pursuing bachelors right now, when ...
Ayush Goyal's user avatar
  • 1,175
81 votes
2 answers
29k 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 ...
Casebash's user avatar
  • 7,652