Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Questions about application size and MVC decision

 
Allan Cheong
Ranch Hand
Posts: 71
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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! ).
 
Roel De Nijs
Sheriff
Posts: 9926
111
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Allan Cheong
Ranch Hand
Posts: 71
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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
Sheriff
Posts: 9926
111
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic