We build brands 24 hours a day
houston mysql, houston php, houston perl, web contractor, website, database consultant, database mysql, mysql cluster, computer consultant, management consultant, information technology consultants, SEO Services, Houston Website Design, Houston Web Design, SEO, page rank, Search Engine Optimization,Top Ranking, IT management, webspry consulting, consulting,houston, information technology, web design,consultant,contractor,project management, project rescue

Code formatting

August 18th, 2009.
Posted in Coding, Technology thoughts

Code should be easy to read. Code should be convenient to read, not convenient to write.

There are several things involved here. Choosing good names that are self-explanatory is a good place to start. Strive for simple solutions, even if they are more verbose or inefficient. Whether inefficiency is a problem won’t be known until profiling is done later in the project, in a real production situation.

Choose style and formatting conventions early in the project, and conform to them. Require that everyone conform to them. This will be easier to do if everyone has a hand in deciding on the conventions and buys into them. This will make the code uniform and thus easier to read.

And get rid of any and all duplication.

Do you format your code?  Your queries?  Using what guidelines?

Tags: ,

No Responses to "Code formatting"

Comments are closed.