Do you write your algorithm in pseudo-code before encoding?

So, I know a few people who actually write their algorithms in plain English (pseudocode) before encoding. I have never done this before, but now that I think about it, it makes sense to organize complex algorithms. You do it? Does it help? If not, what do you do (if at all) to organize your program before writing?

+3
source share
17 answers

I already mentioned this :

, , ... , , Python, ! , Python , . , , .

+8

, , , , , .

+8

Python . .

+4

( , ) .

, , :

  • , API . , , - .
  • Javadoc ( ); .
  • . , . , , , , .
+3

, . , - , , , , , , . , , .

, , , , , .

+3

, , , , , , . - , .

, - , , . , , , .

, / .

+2

, , , - .

, , , - .

+1

, - -.

+1

, , ( Doxygen).

, ( pre-UML pre-OO-) - UML- .

, , .

+1

, -, .

0

, , , , , . - , .

0

.

, .

0

-, . ( ) , . .

, /, / . - , .

0

... - , "". - , .

0

, , Python. Python, , . , , , , , , , . , , , , - Python, , .

0

I write this in fortran - it is basically pseudo-code that almost anyone can understand. I can't think of an easier way to write it.

0
source

It depends on the algorithm. If it's simple, then I can usually store all the logical paths in my head, if it's complicated, then I will draw each step with relative logic.

0
source

Source: https://habr.com/ru/post/1709245/


All Articles