Subscribe via RSS

The Diminishing Return on Code Uniformity

Filed Under Code, Quality Controls, Software Process

Last week Steve Rowe had a nice discussion on the question – Is There Value In Code Uniformity? Although I left a comment, I thought I would expand upon my thoughts a little more.

I do agree that every team must have (and enforce) some basic standards of code uniformity. These may include items such as:

  • Use PascalCase over camelCasing or Hungarian notation
  • Prefer language keywords over hard types (as in – int not Int32)
  • No single line if statements or use of ternary operators such as ?
  • All references to class member variables will be prefixed with this.

These types of standards give a clear outline of the fundamentals of code cleanliness and uniformity that can aid in a team environment.

However, often I see team leads attempting to micro-manage these coding standards. The majority of these standards have very low impact on overall readability and maintainability. I have see religious wars break out over stupid standards such as:

  • { on new line or same line
  • _ or m_ in front of private variables
  • The order of class member declarations (private vars, ctors, props, methods [in alphabetical order], etc…)

It is unfortunate that I see teams creating standards not only littered with these types of rules, but fore-running as the core foundation. These types of standards do have worth, but must be enforced with a much lighter touch as policing these types of infractions just does not yield overall benefit to the application.

In the large scheme of things these types of code uniformity infractions are small potatoes. It is the equivalent of creating a standard way of monotone communication for optimal office efficiency – yeah ok.

I am not advocating that we should not have coding standards nor that they should not be enforced by frequent code inspections; however, I am of the belief that developers write code with minor deviations that show the same uniqueness you would see in articulated words or drawn pictures. Instead of attempting to find a happy standard, let’s celebrate our minor differences in writing code and be more adaptive to different flavors.

Sometimes the small things do matter – but not in this case.

Jira Bug Tracking Contest Winner Is…

Filed Under Announcements

Congrats Mitch! Time to kick Bugzilla out!

Thanks to everyone that participated – I really hope those that didn’t win find a replacement for what you are doing soon. Sorry I didn’t have an unlimited number of copies to give away!

Like I said in the video – check out Simpltry.com for some JS and Ruby love!

And a final thanks to Jon at Atlassian for helping bring Jira bug tracking to the masses in a fun way!

This Means War!!!

Filed Under Announcements

Sorry for the off-topic post, initially I wasn’t going to ask – but I need everyones help!

First off, let me remind you that every week I fill your noodle with expert psychoanalysis of the everyday software developer for the low cost of jack squat. All I am asking for in return is 3 measly mouse clicks!

I am currently in a contest called Shoeperstar where I was nominated as one of the 3 finalists. This morning things looked completely in the bag, I think the vote was 80:15:15 – nothing short of a landslide.

However, as the day has progressed it has become a race to the finish with the current vote – 118:19:93.

Please do me a favor and go vote right now!

PS – Then when you are done come back and enter my latest speed contest and also vote on the latest Developer vs. Developer – I know…I know…I ask alot!

« Older Entries Newer Entries »

Max Pool - © 2025 - {codesqueeze}. Sycorr Banking Solutions