This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Help any methodology or aproach to attack development of project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Help any methodology or aproach to attack development of project" Watch "Help any methodology or aproach to attack development of project" New topic
Author

Help any methodology or aproach to attack development of project

Ruben Guillen
Greenhorn

Joined: Sep 02, 2009
Posts: 28
Dear All

I would like to get some of your wisdom on how is the best way to attack the development of the project.

I got my assignment two weeks ago and also order the monkhouse book (not yet received). In the meantime I got some information about MVC from java sun website and get aware of information available on Book "Java how to program" from Deitel. But up to now I did not write any line of code for my project and I start worrying.

Please maybe somebody has run with these question also before starting his project:

What would be the best approach or methodology to attack the project?

Initially I was thinking on writing some use cases and drawing some Class Diagrams. But also though on start writing code directly, anyway so far these are ideas I try to bring up in order to organize the work I need to undertake, but sometime I think I am spending too much time that probably the best will be to start coding like per sub-module. first the UI, then the DB and then the NETWORK part.

Any insight is very well welcome.

Regards.


SCJP, OCMJD
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5126
    
  12

Hi Ruben,

In my scoring thread I described in detail how I handled the project. And you may find a lot of other helpful tips.
Of course it's just my experience of handling this assignment and certainly not the only way of doing it.

Good luck!
Kind regards,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Ruben Guillen
Greenhorn

Joined: Sep 02, 2009
Posts: 28
Hello Roel

First of all, thanks you very much for your scoring thread description.

If I understood correctly from your scoring thread description, you just sat down and started coding. I understand that the assignment given to me is not long, if we take in consideration functionality, and I could just sit down and code, but I am affraid of not taking the oportunity to put in practice some basic OO Design for the sake of learning.

Somebody else could share also his approach.

Regards.



Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Howdy, Ruben!

Champion, you could start by coding the Data class. It is a good start. You can then think about the business/services layer and what are the services you will provide, and how you'll provide then. Will you have a thin or thick client? Based on this, you can define your services and start coding it. Then you can create your server... and start putting these pieces together.

...but I am affraid of not taking the oportunity to put in practice some basic OO Design for the sake of learning.


You know... I'm glad you have this concern. But... I was thinking, most of the people I have seen around here, and even I, have solved everything with an approach that is more procedural then object-oriented. In the excellent book Patterns of Enterprise Application Architecture, Martin Fowler addresses a pattern called Transaction Script, which is a procedural approach to organize business logic. At a first look, it might look wrong. However, in my opinion, this is a good place to use this approach, because the business logic to be implemented is quite simple, and a clear and easy design is preferred over a complex one.


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

Hi Ruben,

I started first with some thinking of course, but I didn't create any class diagram or a sequence diagram. Nothing of that, just coding and creating tests to ensure everything is working like it is required.

Kind regards,
Roel
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2231
    
    7

Hi Ruben,

OO design and thinking through the requirements are surely important but like Roberto said, start coding the Data class right away in order to at least get data off the file Sun provided. Without that data, you can't move on!!

Once you get Data class in order, think about services and how the client interact with the server. Thin or thick client? RMI or Sockets? Exception handling? When you get a handle on the services, start coding the server and work out the locking mechanism. (Locking is the most important section of the assignment.) Last worry about client UI. Of course when you design your services, think as if you are the client or end user.

Good luck and happy coding


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
Ruben Guillen
Greenhorn

Joined: Sep 02, 2009
Posts: 28
Dear All

Thank you very much for the valuable information. During the past week-end I reviewed all my possibilities and finally I decided to attack the project with a 80% coding approach and 20% design.

I took the decision to cover the project using the following best practices from RUP.
- Develop Software iteratively
- Visually model software
- Continuously verify software quality.

How exactly I am going to apply them in the context of my project, I can not tell yet exactly. but so far I started coding something on the Data.java class and drew some ER diagrams (even if I only have one table) and one class diagram for the DBMain.java and Data.java and related Exceptions. as a starting point.

During this week I am plannig to create a screen design and then start coding something at the UI level and later write some test classes.
Regards.

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2231
    
    7

Ruben Guillen wrote:finally I decided to attack the project with a 80% coding approach and 20% design.


Ah the 80/20 rule I like But shouldn't it be the other way round - 20% code? Everything is based on design. If your design is indeed good, then typing the code should be a whiz. That's not including testing. That's why iterative development is also good.
 
Consider Paul's rocket mass heater.
 
subject: Help any methodology or aproach to attack development of project
 
Similar Threads
can someone help me with this program
Object "Savvy"
On the crossroads...
Preparation Strategy for SCJD
SDLC