The most intelligent Java IDE
[Logo] JavaRanch » Big Moose Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Professional Certification » Developer Certification (SCJD)
 
RSS feed
 
New topic
Author

Questions about application size and MVC decision

Allan Cheong
Ranch Hand

Joined: Nov 12, 2009
Messages: 51

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?

This message was edited 1 time. Last update was at by Allan Cheong


SCJP 6 (83%)
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Messages: 1228

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 5.0, SCWCD, SCJD - Daileon: A Tool for Enabling Domain Annotations
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Messages: 1468

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

This message was edited 2 times. Last update was at by Roel De Nijs


SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
http://www.zvcvalaar.be/
Allan Cheong
Ranch Hand

Joined: Nov 12, 2009
Messages: 51

@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

SCJP 6 (83%)
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Messages: 1468

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)

SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
http://www.zvcvalaar.be/
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Professional Certification » Developer Certification (SCJD)
 
RSS feed
 
New topic
MyEclipse Enterprise Workbench

.