Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

How to design Java Programs

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I'm new to Java and just wondered how people design Java programs. I have heard mention of UML is this the industry standard and if so does any one have any good resources for it?
Thanks in advance
 
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kola, since you are new to Java, it will be best if you gety a java textbook or the free tutorial at sun's site. This will get you started on the right track, and it will answer a lot of the begginner question you may have. Some good texts are Beginning Java2 by Ivor Horton, and Thinking in Java by Bruce Eckel (A little advanced though). Definitely get the Java Tutorial at Sun's site first!
Bosun
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
UML is a modeling methodology not necessarily restricted to Object Oriented design, but the most used by OO designers.
The OO Design approaches used by Java designers is not restricted to Java, the concepts are the same as those in any other OO language.
We have an OO Design and UML forum for those interested.
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kola,
If u are interested in getting your feet wet in UML, try this book: UML Distilled - Fowler&Scott. VERY good book for beginners in UML. To get a better grip on UML, you need to get a more in-depth book.
UML is basically a tool to analyze your business requirements/logic and break them down to the level of what goes in each class, how to structure your packages to meet ur needs, etc.
Once you identify your classes, packages and other components, it doesn't matter what OO language u use.
Hope this helps.
 
KOla Oyedeji
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks guys for your replies so UML is not limited to OO design and it can be used for any OO language not just java. I'm a web developer and wondered if UML was actually the industry standard for designing classes/applications in Java are there any other popular standards/modelling techniques/methodologies.
Its just coming from a web development background I am at a loss as to how to design my applications.
Thanks in advance.
 
Ranch Hand
Posts: 1067
2
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the application is not too large:
> Make everything a class.
> Figure out how the classes are related to one another: IsA or HasA.
> Refine your classes, start writing code.
 
I'm full of tinier men! And a tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic