Posts Tagged ‘best practices’

The case against i, j, and k

I03B0041

One of the greatest programming books of all time is Code Complete by Steve McConnell.  I often recommend this book to new programmers and when I was running the IT department of the Dot Com I was working for, I made it required reading.

In it, Steve makes a great case against using i, j, and k for incrementing variables as in, for(i =0, i < 20;i++) because it describes nothing about what the code is doing.

What I intend to do today is to demonstrate from a real-life example that he’s right.

Read the rest of this entry »

Other Related Items:

Next Concept - Girls Screen Painted Tank, White, OrangeNext Concept - Girls Screen Painted Tank, White, OrangeNext Concept - Girls Screen Painted Tank, White, Orange, Flip Flop Design with Glitter Paint, Racerback Style, 100% Cotton, #9426
San Diego Chargers Baby SocksSan Diego Chargers Baby SocksHere's a pair of San Diego Chargers socks for the little one. Very cute and just right to get them started rooting for the right team. The team logo is embroidered, not silk-screened. 91% cotton.
Omron Athlete Body Fat AnalyzerOmron Athlete Body Fat Analyzer

Measures Body Fat Weight and Percentage with Clinically Proven Accuracy!



Two modes for accurate results for athletes and non-athlete... Read More >

Copy And Paste And Bugs

A04C0007

We all do it.  I’m sure of it.  It’s too easy. I need code that looks almost like something else I wrote so I just copy and paste it over to the new code.  Done.

But at what cost?

Is it really that much like the other code?  Did you forget to change something?  What happens when you need every instance of this change to be changed?  Are you going to remember all the places where you made this change?

The one thing we all do to save time is the one thing that ends up costing us the most time in our development projects.

Let me illustrate.

Read the rest of this entry »

Other Related Items:

Beginner's ASP.NET in VB.NET 2003 on DVDBeginner's ASP.NET in VB.NET 2003 on DVDASP.NET (VB.NET) 2003 represents an important technology for building enterprise level web applications. Learn the basics of ASP.NET development as yo... Read More >
The Neuro-Programmer 2 HOME (Mental Development Software)The Neuro-Programmer 2 HOME (Mental Development Software)The Neuro-Programmer 2 (NP2) is an innovative software application for the PC, built to help you achieve rapid and long lasting personal change. NP2 stimulates Brainwaves while using Hypnosis, NLP and other Psychological techniques to help you transform your mind and enhance your mental abilities.
VB-C500D Mini-Dome Network CameraVB-C500D Mini-Dome Network CameraExceptional Low Light Performance Auto Day/Night with Digital Night Mode Smart Shade Control M-JPEG and MPEG-4 Video Recording Data Encoding and Trans... Read More >
DotNetNuke Sponsor

 

Most Valuable Blogger
Sponsor