Design – Should one use pseudocode before actual coding

designpseudocode

Pseudocode helps us understand tasks in a language-agnostic manner. Is it best practice or suggested approach to have pseudocode creation as part of the development lifecycle? For instance:

  • Identify and split the coding tasks
  • Write pseudocode
  • Get it approved [by PL or TL]
  • Start Coding based on Pseudocode

Is this a suggested approach? Is it practiced in the industry?

Best Answer

Writing pseudocode before coding is certainly better than just coding without planning, but it's far from being a best practice. Test-driven development is an improvement.

Even better is to analyze the problem domain and design solutions using techniques like user stories, use cases, CRC cards, diagramming, as espoused by methodologies such as Cleanroom, RUP, Lean, Kanban, Agile, etc.

Thoroughly understanding the nature of the problem and the components you use to implement the solution is the principle behind best practices.

Related Topic