SKB

Girl Code

Posted in Uncategorized by Karthi on October 19, 2006

Girl 

The fundamental theorm of formatting is that good visual layout shows the logical structure of a program.

I follow these points to make my code looke girly!

  • Illustrate the logical structure of the code
  • Be consistent with the style
  • Improve readability
  • Separate sequential blocks
  • Format single line statements consistently
  • Indent sensibly, take care of continious line
  • One line, one statement
  • Have one data declaration per line
  • Comments are indented with the same number of spaces as the code.
Tagged with:

2 Responses

Subscribe to comments with RSS.

  1. shocking said, on October 19, 2006 at 12:25 pm

    what about simultanous talk and listen (read write)
    logging events that can keep a history of 20-30 years.

  2. Girl code « Renaissance said, on October 19, 2006 at 8:39 am

    [...] Read post on Girl code [...]


Leave a Reply