Approaching a Project
Approaching a project can be a daunting task. After researching and experimenting with examples, it's time to put your knowledge into practice. But where do you begin? The following framework offers guidance on how to approach a project effectively. Take a look at the steps below and consider how you would implement them for a given task.
Understand and comprehend the task or challenge.
Restate the task or challenge in your own words.
Confirm the expected behavior by gathering example inputs and outputs.
Conceptualize your solution using verbal descriptions or diagrams on a whiteboard.
Step through your solution using an example, as if you were a machine. Only perform the actions explicitly written down. Correct your solution if necessary.
Represent your solution using pseudocode on a whiteboard.
Walk through your solution using an example, following the written pseudocode. Perform only the actions specified. Correct your solution if necessary.
Transform your solution into actual code on a whiteboard.
Walk through your solution using an example, again acting as a machine. Execute only the actions outlined in the written code. Correct your solution if necessary.
Finally, write your code on your computer. Note: This step should only be taken when you are completely certain about what needs to be coded.
Test your code on your computer.
Debug if necessary.
Congratulations! You have completed the task or challenge!
Remember to break down your task or project into smaller and more manageable pieces. By applying the steps outlined above, you can tackle each piece with confidence and gradually solve the larger puzzle.
Next we will cover Everything you need to know to start coding your own shell