DEV Community

Cover image for Python programming and scripting
krishna
krishna

Posted on

3 1

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

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay