wood burning stoves*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Questions about application size and MVC decision Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Questions about application size and MVC decision" Watch "Questions about application size and MVC decision" New topic
Author

Questions about application size and MVC decision

Allan Cheong
Ranch Hand

Joined: Nov 12, 2009
Posts: 71

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, OCJWCD5
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

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: 5131
    
  12

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: 71

@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: 5131
    
  12

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)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Questions about application size and MVC decision
 
Similar Threads
Query regarding Part 2 assignment Class Diagram
Architecture and Iteration order
Andrew's Book
Submitting this weekend: Comments Please
Similar GUI's