Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 869215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:16:24+00:00 2026-05-15T10:16:24+00:00

I mostly write small scripts in python, about 50 – 250 lines of code.

  • 0

I mostly write small scripts in python, about 50 – 250 lines of code. I usually don’t use any objects, just straightforward procedural programming.

I know OOP basics and I have used object in other programming languages before, but for small scripts I don’t see how objects would improve them. But maybe that is just my limited experience with OOP.

Am I missing something by not trying harder to use objects, or does OOP just not make a lot of sense for small scripts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:16:24+00:00Added an answer on May 15, 2026 at 10:16 am

    I use whatever paradigm best suits the issue at hand — be it procedural, OOP, functional, … program size is not a criterion, though (by a little margin) a larger program may be more likely to take advantage of OOP’s strengths — multiple instances of a class, subclassing and overriding, special method overloads, OOP design patterns, etc. Any of these opportunities can perfectly well occur in a small script, there’s just a somewhat higher probability that it will occur in a larger one.

    In addition, I detest the global statement, so if the natural procedural approach would require it, I will almost invariably switch to OOP instead — even if the only advantage is the ability to use a qualified name instead of the barename which would require global.

    There’s definitely no need to “try harder” in general — just ask yourself “is there an opportunity here to use (a) multiple instances (etc etc)” and it will soon become second nature, i.e., you’ll spot the opportunities without needing to consciously remind yourself every time to look for them, and your programming will improve as a result.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Mostly I use Visual studio to write mock-up and the back-end code. I want
Whenever I write shell scripts (mostly software development utilities or build tools) I've generally
I'm trying to write this code using mostly arrays. I'm trying to get Correct
I mostly use Eclipse but have mentionned Netbeans on my cv. Are there any
Though I rarely write C code, I often see it (mostly due to books
I'm using eclipse in Windows. However, other people in my group mostly write code
I need to write software that will do a lot of math. Mostly it
I'm using django for a website app, mostly. I need to write a canvas
I mostly use vim from the terminal by vi command. I want to create
I mostly use SlickEdit and eclipse while working on embedded systems. Once in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.