Statistics

Total Posts: 34
This Year: 0
This Month: 0
This Week: 0
Comments: 161


RSS 2.0

Recent Posts


On this page....

Clean Code chapter 5 questions - Formatting

Archives

 Full Archives By Category
 2007 Calendar View

Categories


Admin

Sign In

Acknowledgments

DasBlog Theme Design by: Tom Watts
E-mail: Send mail to the author(s)
Theme Image by: dreamLogic

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

 Sunday, April 05, 2009

This blog post is part of a series of blog posts concerning a Clean Code study circle that we developers at Admeta are persuing during 2009. Here you can find an introduction concerning the question why we are doing this and here you can find an overview of all chapters as well as some study circle recommendations.

Chapter 5 Formatting questions:

Coding Convention conventions:
  1. How many characters per line do you think is maximum?
    • What resolution do you use on your monitor?
  2. How do you typically choose to group code in your classes?
  3. Do you place a caller and callee method close to each other or group them in some other way
  4. Where do choose to declare your member variables?
Design considerations:
  1. Do you agree with that "protected variables" should be avoided? Why / Why not?
  2. How many rows do you think a class can have before your warning bell start to ring that it might be too big and do too much?
  3. Is there any reason you can think in which instance variables should be placed anywhere but at the top?
Questions to ponder upon:
  1. The chapter emphasizes quite a lot on grouping code together that belong together. (Vertical Density p79, and Conceptual Affinity on p 84)
    • What different group categories do you use and why?
    • Where do you draw the line between grouping code with regards to functionality in a class and extracting a group to a new class (according to the Single Responsibility Principle)
  2. Do you agree upon that all developers in the team should agree on single formatting rules.
    • Where do draw the line of agreement?
    • How do you select which rules to apply? Voting or something else?
  3. What on earth is a ”Hollerith limit”? :-)
Sunday, April 05, 2009 7:02:00 PM (GMT Standard Time, UTC+00:00)