Questions tagged [code-complete]

"Code Complete" is a software development book, written by Steve McConnell and published in 1993 by Microsoft Press.

"Code Complete" is a software development book, written by Steve McConnell and published in 1993 by Microsoft Press. It is widely regarded as one of the best practical guides to programming.

23 questions
1
vote
1 answer

Recommendation on using abbreviations in CamelCase from Code Complete

In the latest code review I was asked, why did I change the method name from GetHDRFrame to GetHdrFrame, while HDR is an abbreviation. I'm pretty sure there was such recommendation in Code Complete: when using abbreviations in CamelCase names, treat…
Mikhail
  • 20,685
  • 7
  • 70
  • 146
1
vote
0 answers

Eclipse code completion for Sencha Touch 2.3 without the official Eclipse plugin

I wish to use Aptana Studio/Eclipse for writing an app using Sencha Touch 2.3. Is it possible to add code completion to Eclipse somehow without resorting to the official (paid) version of the Sencha Touch Eclipse plugin? Some approaches such as this…
mr_js
  • 949
  • 12
  • 29
0
votes
1 answer

Simple Eclipse Code Templates - Issue

Hi I have Code Templates enabled in Eclipse. I just installed Eclipse for Java and Enabled Code Templates (From Code Assist Settings). I typed "sysout" Ctrl+Space, but I do not System.out.println. Also, what exactly does Automatically Insert mean in…
blacks0ul
  • 143
  • 2
  • 10
0
votes
2 answers

Grouping of related variables and operations?

In Code Complete, chapter 10, it is advised to group related statements, and the following example is given: void SummarizeData(...) { ... GetOldData( oldData, &numOldData ); GetNewData( newData, &numNewData ); totalOldData = Sum(…
voithos
  • 68,482
  • 12
  • 101
  • 116
0
votes
1 answer

trying to rewrite this so it doesnt violate "prinicples discussed in Code Complete 2nd edition

function profit(){ int totalSales=0; for (int i=0; i<12;i++) // computer yearly sales totalSales+=montlysales[i]; return get_profit_from_sales(totalsales); } So i've already determined that the 12 in the for loop should be a…
0
votes
3 answers

How do you write the error checking part of a method to make it readable and error prone?

I had a disagreement with another programmer on how to write a method with a lot of error checking: public void performAction() { if (test1) { if (test2) { if (test3) { // DO STUFF } else { return "error 3"; …
0
votes
1 answer

Is there a Code Complete Quiz/Test?

So, my boss for very good reason LOVES the book Code Complete by Steve Mcconnell. I was wondering if anyone has ever come across a way to test if someone has read the book. I swore a quiz/test had to be online somewhere. Alas, my efforts to find one…
Sean Dunford
  • 938
  • 1
  • 9
  • 24
-1
votes
2 answers

Issues about creating good interfaces on Javascript functions

How could I implement high-quality routines (mentioned by Steve McConnell, on Code Complete, chapter 7) on some Javascript code? For example, in this case: $('#variable').on('click', function(){ //do some stuff }); This is…
José Augustinho
  • 110
  • 1
  • 10
1
2