What would be a good back up plan?

Is writing pseudocode a good way to plan out projects? If not, what is the best way to plan a project?

  • I'm currently learning Java, and when I was learning Python the author of the book I was reading talked briefly about pseudocode. Outside of the book, I've hardly heard anybody talk about it. Is this something that people commonly do, and is it effective for planning out projects? Is this a good way to plan out projects, and if not, what are good methods of planning? I learn well from outlines, particularly when I use them for biology in school, so when I saw pseudocode that was the first thing that came to my mind. Also, what are some good resources that can help me to learn how to write good pseudocode. EDIT: The author of the book also sometimes called the plans he made for some of the programs(written in pseudocode) algorithms, which is obviously a mathematical thing. Is this accurate, and do people oftentimes call their pseudocode algorithms?

  • Answer:

    Generally, I do two things before writing the final code: Form planning In this, I tend to write an algorithm of the basic steps like calculate this, then find that etc. I might even write the algorithm in a flowchart kind of way i.e. break down large steps into small steps and join the workflow by arrows. This helps you in visualizing the problem that you are trying to solve. You will surprised how many extra steps might creep in that you hadn't thought of initially. But don't specify the exact methods to do that. E.g. finding an important coefficient is a step in the algorithm but don't start thinking about the specific steps to find that. Function planning Now that you know the basic steps that you need to take, break down each step into specific ones like accept values into 1st array, calculate the 2nd array and multiply with coefficient to store the final value in the 3rd array. Write down these steps in pseudo-code, where you don't follow the exact syntax but write the procedure down in steps similar to the ones used in code. Writing code in Python requires very little pseudo-code because Python is meant to be so similar to natural language. But many other languages which are more cryptic or have more complicated syntax like Java need this a lot more.

Abhimanyu Ghosh at Quora Visit the source

Was this solution helpful to you?

Other answers

Planning projects and writing code operate at very different levels. Planning, at least in the beginning, looks at the product/project at a very high level. It looks at resources and activities as big building blocks that need to be put together. Once you have drawn your high level road map, you can then delve into the detail. Writing code, even pseudocode, is lower level detail. This is a small element within the building blocks. You may well use pseudocode to plan your coding, but this should only happen once you have a clear roadmap and requirements. Saying all of this, you may approach your planning from a top/down or bottom/up approach. You may use your vision of the code to drive the activities required to form your plan ("bottom-up"). Or draw out the high level plan, then draw up some pseudocode ("top-down").

James Lancaster

I like to think about pseudocode as a rough outline to my program. That being said, I follow a process before I develop any pseudocode for the program. Generally, I: Analyze the problem first. This involves looking into every detail. Next, I design a program to solve the problem. Now I develop the pseudocode and some test values to walk through the pseudocode with. This helps ensure my pseudocode is on the right path for being converted into actual programming language. Convert to programming language. Test. Keep in mind, any problem you encounter may require more or less steps. http://users.csc.calpoly.edu/~jdalbey/SWE/pdl_std.html

Kyle Maune

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.