Post Reply  Post Thread 


Java Tips And Tricks
Author Message
kateriyan
Junior Member
**


Posts: 3
Group: Registered
Joined: Jan 2010
Status: Offline
Reputation: 0
Post: #1
Java Tips And Tricks

Hi

JAVA TIPS AND TRICKS

Tips to make your program better
1. Don't make any class file larger than 1000 lines
2. Avoid Using Global Static function, if not possible then put that all function in a separate class.
3. Before starting the project Check out the proper decomposition of classes, interface and function. Practice of making structure then start coding.
e.g All Nouns is the probable candidate for classes and All Verbs are probable candidate for functions. User Interface wherever possible.
4. Always try to features given by java, don't try to write your own code if java provide such thing like StringBuffer, HashMap, ArrayList etc.
5. Always use the System properties handled by java for example. Don't use "\n" u can use
System.getProperty("line.separator");
6. Always Use Java coding convention(if you don't have company specified) and one popular IDE(eclipse/NETBeans etc) for programming.
7. Properly handle exception and their preferred treatment and if possible create a separate Exception Handling class where After Error message that thrown exception will be caught.
8. Avoid use of public data types for any class.


buy nintendo dsi r4
01-19-2010 09:10 PM
Find all posts by this user Quote this message in a reply
gyrertr
Junior Member
**


Posts: 4
Group: Registered
Joined: Jul 2010
Status: Offline
Reputation: 0
Post: #2
RE: Java Tips And Tricks

Java is a mostly used for develop a game and software so many tips and tricks are as under.
1) Java enclosing class as an Implement ion of Builder pattern
2) Pushing J Button groups
3) Fast maths with JNI
4) Protect web application
5) Layer and compare files.


live roulette
07-26-2010 02:57 PM
Find all posts by this user Quote this message in a reply
NFLJerseys
Junior Member
**


Posts: 26
Group: Registered
Joined: Aug 2010
Status: Offline
Reputation: 0
Post: #3
RE: Java Tips And Tricks

I think this is a great post. One thing that I find the most helpful is number five. Sometimes when I write, I just let the flow of the words and information come out so much that I loose the purpose. It’s only after editing when I realize what I’ve done. There’s defiantly a lot of great tips here I’m going to try to be more aware of.


Our company provides NFL Jerseys rapid, safe, free shipping network marketing.
08-10-2010 05:58 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump: