DEV Community

Cover image for Python programming and scripting
krishna
krishna

Posted on

Python programming and scripting

I think python scripting and python programming are two different things. Python scripts can be used to automate a specific task or glue scripted tasks. Whereas programming is an organised structure, modular, unit-testable, easily maintained compared to scripts.

Python is a versatile dynamic language and can be leveraged both as a scripting and programming language.

If you are very clear that your task is going to accomplish just one specific objective and does not scale up in future write a python script to execute just this one piece or glue other scripts written already. But if you foresee that your task can scale up tomorrow and can grow like a mindmap please do not write ten scripts and then write a script gluing these scripts, rather organize a structure using classes or try to leverage existing frameworks to accomplish your objective.

Check this awesome python repo https://github.com/vinta/awesome-python

Top comments (1)

Collapse
 
paddy3118 profile image
Paddy3118

Or not!
Scripts should be orgnised, structured, tested and maintainable.

"The Unix way" is to write composable programs/scripts that do one thing well and then to compose them using other scripts, as necessary, for diverse tasks.

Programs, as well as scripts can be written poorly - it is not a feature of scripting as you seem to suggest.