| Author |
Questions about application size and MVC decision
|
Allan Cheong
Ranch Hand
Joined: Nov 12, 2009
Posts: 68
|
|
Hi, I am just wondering the size of the project. According to Sun's website, 3500 LoCs for the whole project is the reasonable and mean size. I've almost finished writing the codes for the assignment but the size of my assignment is only 1500 LoCs. Am I not doing enough? I did not dynamically read meta-data of database file though. I need your advice please.
ANd also the GUI codes are a lot because I decide to have a controller for each view. I have 4 views - configuration interface for each application mode, and a main window shared by network client and stand alone mode.
Should I just use one controller for all view?
|
SCJP6, SCJD, SCWCD5
Perspective
Freaky Codes
|
 |
Roberto Perillo
Bartender
Joined: Dec 28, 2007
Posts: 2212
|
|
Howdy, Allan!
've almost finished writing the codes for the assignment but the size of my assignment is only 1500 LoCs. Am I not doing enough?
No need to worry about it, champion! The thing is, you have to solve a problem. 3500 LoC is enough for this assignment, but you know... one thing I learned is, the less code you write, the better. So, if you are able to solve this assignment with 1500, that's A-OK!
Should I just use one controller for all view?
Hum... as far as I can tell, your current approach is correct. Always try to code object-oriented. It looks like only one controller would be more procedural (unless it is a Front Controller! ).
|
Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4351
|
|
Hi Allan,
I used cloc to have some statistics about my application:
And your tool generated this statistics:So results are quiet similar, no need to worry
Kind regards,
Roel
|
SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
|
 |
Allan Cheong
Ranch Hand
Joined: Nov 12, 2009
Posts: 68
|
|
@Roberto: Ah... Just to be sure, I have to read up what is Front Controller now.
@Roel: You know I read your post about your experience in the SCJD exam and I was amazed by the precise LoC in your assignment. Just trying to follow the assignment size and hopefully to get a better score
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4351
|
|
Allan Cheong wrote:and hopefully to get a better score 
If you are able to achieve that one, I'll by you a beer (or even a 6-pack)
|
 |
 |
|
|
subject: Questions about application size and MVC decision
|
|
|