Seungweon's Blog

in Portland, Oregon

3/19/2008

Writing Great Code

What do we mean by great code? Different programmers will have different definitions for great code, so it is impossible to provide an all-encompassing definition that will satisfy everyone. However, there are certain attributes of great code that nearly everyone will agree upon, and we'll use some of these common characteristics to form our definition.

For our purposes, here are some attributes of great code:

Uses the CPU efficiently (which means the code is fast)
Uses memory efficiently (which means the code is small)
Uses system resources efficiently
Is easy to read and maintain
Follows a consistent set of style guidelines
Uses an explicit design that follows established software engineering conventions
Is easy to enhance
Is well-tested and robust (meaning that it works)
Is well-documented

From "Write Great Code: Understanding the Machine, Volume I" by Randall Hyde, ISBN:1593270038, No Starch Press, 2004

I think this is the second book that I reviewed my assembly language for preparing the job. Even I have a reference guide of 8088 Microprocessor, but it is hard to find the book to explain the detail organization of the architecture (such as how computers represent signed and unsigned integer values, characters, strings, character sets, real values, fractional values, and other numeric
and nonnumeric quantities) including the assembly language. Furthermore, the 2nd volume helped me to analyze and practice the assembly language for writing efficient assembly code.

0 comments:

Post a Comment