Solved

How to plan your javascript apps

Posted on 2013-11-08
2
242 Views
Last Modified: 2013-11-28
Hi
 
I'm aiming to build a simple game with javascript.

Whats the best way to plan  javascript apps?
is pseudo code the best method or are there better ways?

Thanks
0
Comment
Question by:coolispaul
2 Comments
 
LVL 32

Assisted Solution

by:Big Monty
Big Monty earned 250 total points
ID: 39634532
Great Question!

I think any plan for any kind of web development should be catered to the developers own personal style. Some developers like to write out design and functional specs, others will take more of a visual approach, and build flow charts and/or diagrams. Pseudo code is also another method a lot of developers take.

To start off with, I would recommend coming up with a list of what you want the application do. Make it a high level list, and then from there, you can break down each item into separate JS functions.
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 250 total points
ID: 39634969
For Javascript of any size I generally take linear modularization approach.  

1. List the actions that need to be processed in the order that they must be done.

2. Do a skeleton  high level controller to establish general structure.

3. At this point you should have a pretty good idea of the interface variables that will  need to have defined globally so list them.

4. Now create empty functions that have a comment indicating what you are going to do there.

5. Now start coding with the expectation that as you move down through the sequence you will discover that some of your assumptions were wrong and adjust for the new reality.

Cd&
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now