Results 1 to 4 of 4
- 08-16-2012, 11:36 AM #1
Senior Member
- Join Date
- Dec 2011
- Posts
- 102
- Rep Power
- 0
Keeping a neat and easy to read code
When I'm writing a program, especially a long one, it always happens that it gets really unorganized and difficult to read.
I know that in companies, they make you write in a common way so all the other programmers will be able to easily read your code.
So before I start working in a company and learning there, I'd appreciate it if you could give me some tips of how to write a neat and readble code (or refer me to a good guide).
Thanks!
- 08-16-2012, 12:46 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Keeping a neat and easy to read code
Java coding conventions.
Not all of these are used everywhere, but this will give you the basics.
The other thing is to keep things short.
Short methods that do one thing (even if that one thing is call other short methods).
Classes should not becomes monsters.Please do not ask for code as refusal often offends.
- 08-16-2012, 01:00 PM #3
Senior Member
- Join Date
- Dec 2011
- Posts
- 102
- Rep Power
- 0
Re: Keeping a neat and easy to read code
Thanks!
Any more tips would be much appreciated!
About the monsterous classes, what would you call monsterous ?
- 08-16-2012, 01:52 PM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Java code (easy to decompile?)
By vociferor in forum New To JavaReplies: 14Last Post: 06-20-2011, 06:20 PM -
Do not understand how to fix error I keeping getting in my code. Totally Confused.
By Raven9 in forum New To JavaReplies: 3Last Post: 04-18-2011, 11:33 PM -
Writing easy to follow code...
By N00Bie in forum New To JavaReplies: 11Last Post: 02-21-2011, 10:40 PM -
How to read excel sheet using select statments r else any easy way
By sasi.tati in forum JavaServer Pages (JSP) and JSTLReplies: 4Last Post: 09-24-2010, 01:06 PM -
What's an easy way to test this code?
By twiggy62 in forum New To JavaReplies: 2Last Post: 02-10-2010, 09:41 AM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks