Forums Register Login

Creating blueprints for your web application

+Pie Number of slices to send: Send
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.
1
+Pie Number of slices to send: Send
Not sure what you mean by "blueprint". If you are talking about the structure of the application, have you read this article?
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
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

  • Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com


    reply
    reply
    This thread has been viewed 898 times.
    Similar Threads
    Arc2patterns course material
    Where can I find the Pet Store example?
    jsp
    Club Business Delegate with Command Pattern, pros-cons
    Study Resources for SCDJWS Exam
    More...

    All times above are in ranch (not your local) time.
    The current ranch time is
    Mar 28, 2024 22:42:11.