Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Creating blueprints for your web application

 
Ranch Hand
Posts: 182
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I now know the basics of JSP and Servlets and I am going to make my own web app (shopping cart). I have some ideas for a simple app in which I can practice
what I have learned. But, I am having great difficulty in making a blue print for my code. But, I don't know if my blue print is useful or even missing something.
Can someone please tell me where I can learn a formal process to make blueprints (not algorithms or flowcharts) for my code/web app ? I want to be able to
make such amazing blueprints, that a beginner coder could simply follow the requirements and do all the coding himself. How do I do this ?

What I did so far -

1 - Finalize a small list of features in the app.
2 - Identify all the entities or classes needed for the app - Customer, Product, ShoppingCart, etc.
3 - A list of all the web-pages/servlets/jsp's that the app might require.

I wonder if I can start coding right away. I hope that I have not missed something which will bite me later and will require a
whole rewrite of the code.

Thanks.
 
Sheriff
Posts: 67592
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure what you mean by "blueprint". If you are talking about the structure of the application, have you read this article?
 
Ali Gordon
Ranch Hand
Posts: 182
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Not sure what you mean by "blueprint". If you are talking about the structure of the application, have you read this article?



Thanks. One of the things I needed was structure/architecture. I also need a formal way do document my design and revise it before I start coding. I want to have a "good plan"
so that I don't miss anything or miss very little details in the beginning itself.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ali Gordon wrote:I now know the basics of JSP and Servlets and I am going to make my own web app (shopping cart). I have some ideas for a simple app in which I can practice
what I have learned. But, I am having great difficulty in making a blue print for my code. But, I don't know if my blue print is useful or even missing something.
Can someone please tell me where I can learn a formal process to make blueprints (not algorithms or flowcharts) for my code/web app ? I want to be able to
make such amazing blueprints, that a beginner coder could simply follow the requirements and do all the coding himself. How do I do this ?

What I did so far -

1 - Finalize a small list of features in the app.
2 - Identify all the entities or classes needed for the app - Customer, Product, ShoppingCart, etc.
3 - A list of all the web-pages/servlets/jsp's that the app might require.

I wonder if I can start coding right away. I hope that I have not missed something which will bite me later and will require a
whole rewrite of the code.

Thanks.



Hi,

Suggestion:
- figure out all the pages you will need.. There will be portions that repeat on each page, like the left or right hand menu, the header, the footer, whatever
- get a good html editor and do all the pages. Do not start coding jsp or anything dynamic till you finished the html
- if you have any ajax or something that will show / hide artifacts using javascript, then your html template must contain all the possible artifacts. Then you hide whatever you have to hide when rendering the page, etc, but you will have all the html you need to work with.

Then start coding. Take out the header and the footer and put jsp:include in your pages. Then get each page and code it. You assume you hold in either request or in the session some value objectd where the rendering information resides. That object, associated with each page, must contain all the info you need to render that page

And a last advice: NEVER use scriptlets in your jsp. Either use custom tags or jstl tags, accessing stuff in that object mentioned above..

Then it is simple: your code will fill out that object, store it in request / session / whatever and then forward to your jsp.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Ali,

Not sure what you mean by "blueprint" diagram, but I use the following for planning my apps:

  • Wireframe - For planning the look of a webpage & navigation between pages
  • Class Diagram - Shows how classes relate to each other. I use an eclipse plugin to generate it
  • Use case diagram - Interactions between users and the application

  •  
    You showed up just in time for the waffles! And this tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    reply
      Bookmark Topic Watch Topic
    • New Topic