📜 ⬆️ ⬇️

Code visualization

In the course of work, from time to time you have to understand someone else's code. Besides the fact that some programmers do not leave comments, they also manage not to follow the elementary (seemingly generally accepted) tabulation rules. And if you add to this 5-6 nested ifs and cycles, the result is an absolutely unreadable code. But, nevertheless, it has a certain meaning, which must be penetrated :)

image

How to help yourself?

Imagine, you open a page in a browser, paste in the code that weary of you, press a button. After which the site draws you a flowchart.
')
You can add the ability to drag blocks, add comments, aliases for variables, conditions, and more. Or even generate a new code based on the changes. It seems to me that the most relevant such service may be for small pieces of code, with intricate conditional transitions.

Googling the topic, found a few programs. But did not download. I don’t want to set up a separate program for such a simple, though useful, goal. But for the web service is fine.

What do you think?

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


All Articles