Tip Details Add a Related Tip

Rate as: Positive Negative

Writing clean code

Nice article with tips for writing clean code. The executive summary:

- Always know why you are catching an exception
- Never declare implementation types
- Use descriptive variable names
- Do not cut-and-paste code
- Declare variables where they are used
- Don't preserve return values you don't use
- Omit needless code!

Follow the link for all the details
Link: www.garshol.priv.no...Search for more tips related to this link
Rating: no ratings, 0 total Votes
Categories: programming
Added: on May 15, 2007 at 8:09 pm
Added By: an anonymous user
Searches: code programming clean writing declare

Comments on this Tip

Add a Comment
There are no comments for this tip
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

jQuery ajax responseText empty

100% positive, 2 comments - last added on Aug 25, 2009 at 9:58 am
– Tip added by an anonymous user on Mar 27, 2009 at 8:26 am

Length of associative arrays in Javascript

100% positive, 0 comments
– Tip added by an anonymous user on Nov 04, 2008 at 10:13 am

Matching any character in a javascript regular expression

100% positive, 2 comments - last added on Oct 08, 2009 at 2:33 am
– Tip added by an anonymous user on Aug 18, 2008 at 9:06 am

reading select element values in javascript in IE7

100% positive, 0 comments
– Tip added by an anonymous user on Jul 17, 2009 at 1:28 pm

Unable to click in text input boxes on Internet Explorer

100% positive, 2 comments - last added on Aug 07, 2009 at 4:57 pm
– Tip added by Marcos84 on Dec 09, 2008 at 10:49 am

553 sorry, your envelope sender domain must exist errors

100% positive, 0 comments
– Tip added by an anonymous user on Sep 26, 2008 at 3:35 pm

Getting answers from Experts Exchange

Categories: programming web
100% positive, 0 comments
– Tip added by an anonymous user on Apr 14, 2009 at 10:57 am

CSS3 Color Names

100% positive, 0 comments
– Tip added by codenique.com on Apr 14, 2009 at 4:18 am

Don't include a "length" attribute in a JSON Object

100% positive, 0 comments
– Tip added by an anonymous user on Apr 10, 2009 at 4:51 pm

Unable to make a Clean build in XCode

Categories: Mac Xcode programming
50% positive, 1 comment - last added on Jul 04, 2009 at 2:06 pm
– Tip added by an anonymous user on Feb 21, 2009 at 10:34 am

Checking for undefined variables in Javascript

100% positive, 1 comment - last added on Jul 14, 2009 at 5:13 pm
– Tip added by an anonymous user on Jan 14, 2009 at 9:47 am

Determining keywords for your pages

100% positive, 0 comments
– Tip added by an anonymous user on Nov 13, 2008 at 10:28 am

Google web search API

100% positive, 0 comments
– Tip added by an anonymous user on Oct 31, 2008 at 4:32 pm

Debugging Javascript

100% positive, 0 comments
– Tip added by an anonymous user on Sep 12, 2008 at 2:35 pm

Make and Print Clip-art Card for Thanksgiving 2009

no ratings, 0 comments
– Tip added by an anonymous user on Nov 09, 2009 at 8:25 pm

PHP strftime errors in Smarty

no ratings, 0 comments
– Tip added by an anonymous user on Nov 03, 2009 at 3:04 pm

How to develop extensions for Chrome

no ratings, 0 comments
– Tip added by an anonymous user on Mar 20, 2009 at 6:58 am

Creating charts in PHP

no ratings, 0 comments
– Tip added by an anonymous user on Nov 28, 2008 at 10:37 am

attaching events to nodes in Javascript

no ratings, 0 comments
– Tip added by an anonymous user on Aug 18, 2008 at 11:23 am

Figuring out shortcuts in Eclipse

no ratings, 0 comments
– Tip added by an anonymous user on Aug 13, 2008 at 3:17 pm