How to read code written by other people

How to read code written by other people

Cyber Detective • @cyb_detective

How to read code written by other people

Examples of tools

(also good for code you wrote yourself more than a week ago)

🧵🧵🧵(0/9) [#1]


(1/9) code beautifiers

sometimes, simply putting the right indents, line breaks, and highlighting variables can go a long way toward making your code more readable.

#javascript beautifier.io/
#php beautifytools.com/php-beautifier.ph…
#python tutorialspoint.com/online_python_fo… [#2]


(2/9) deobfuscators

sometimes developers purposely make code unreadable with special tools - obfuscators (especially often in websites)

in such cases it is possible to use deobfuscators.

#javascript lelinhtinh.github.io/de4js/
#java javadeobfuscator.com/ [#3]


(3/9) Code explainers

This type of service simply translates code in a programming language into ordinary english language (in as much detail as possible)

Ex: explaincode.app [#4]


(4/9) "Code to flow chart"

Sometimes there are too many conditional statements in the code, so only a flowchart generator can help.

Ex: app.code2flow.com/ [#5]


(5/9) code review tools

this type of tool will help identify the roughest code problems (like excessive complexity or large number of duplicates) to make it better as quickly as possible.

ex (free for #opensource projects): codebeat.co deepsource.io [#6]


(6/9) "Code hint tools"

This type of tool just looks for syntax errors and various inconsistencies with technological standards in the code.

Ex: jshint.com/
webhint.io/ [#7]


(5/9) code review tools

this type of tool will help identify the roughest code problems (like excessive complexity or large number of duplicates) to make it better as quickly as possible.

ex (free for #opensource projects): codebeat.co deepsource.io [#8]


(6/9) "Code hint tools"

This type of tool just looks for syntax errors and various inconsistencies with technological standards in the code.

Ex: jshint.com
webhint.io [#9]


(7/9) online comments generators

these tools work much more crudely than code explanation or code hint, but they all help you quickly figure out which function/method is responsible for what.

#javascript smartcomments.github.io/
#python pypi.org/project/docly/ [#10]


(8/9) Compare two files

The automatic comparison comes in handy when you want to find differences between two different versions of code.

Files: w3docs.com/tools/code-diff/
Folders: devart.com/codecompare/ [#11]


(9/9) Regular expression

If you need to find emails, nicknames or other "juicy" info in source code, you can use Regexp (there is no need to review their syntax, there are plenty of templates on the Internet)

Online: regexr.com/
CLI: github.com/cipher387/grep_for_osint [#12]


in conclusion i would like to note once again that this article simply gives examples. all in all there are thousands of tools for automatic analysis of source code which combine various functions. here is an example of such for #javascript:

twitter.com/cyb_detective/status/15… [#13]



Report Page