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

  • Home
  • SEARCH
  • 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 8700311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:08:47+00:00 2026-06-13T02:08:47+00:00

I have a python web server, with a custom text based game and blog.

  • 0

I have a python web server, with a custom text based game and blog. I am struggling separating the code into good places for reference and things are getting out of control.

Things to organize:

  • Separate module classes
  • Separate module functions
  • Database calls and results
  • Handling user input
  • Security issues

Is there any guide or known method that is good follow in working on such projects. I have found that my code starts to become WET (write everything twice) and I can’t stop it. I would appreciate any tips from many of you who have much more experience.

  • 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-06-13T02:08:48+00:00Added an answer on June 13, 2026 at 2:08 am

    If these are the areas that you feel your application makes logical sense to be broken up into, then start creating the modules and moving code around in whichever way makes sense to you.

    There’s no real right way to do it as it’s subjective to each individual use case, but there are static code analysis tools that can be used to help raise the quality level of your code.

    Tools that I’ve used frequently are pep8 (mostly for convention adherence) and pylint. pyflakes is also apparently another great one (I’ve been meaning to use it). I’ve found that after running through pep8 and pylint, the number of changes that I’ve made makes my code much easier to grok (I also learn about some things that I had been doing poorly before) and the result has always been higher quality code overall.

    As an aside, I read the comment from @Omnikrys and disagree. Python, being the multi-paradigm language it is, obviously lends itself well to OOP if you choose to go down that path. However, I’ve found that once you really figure out how to use Python in all of its duck-typing glory and really embrace the “we’re all consenting adults” philosophy, you can start writing some very high quality, not over-engineered solutions. Of course, this is highly arguable (I’ve had quite a few debates on this subject) and completely up to you.

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

Sidebar

Related Questions

I have a piece of custom built web server code. It was written using
I have a Python application in the bottle web-server that accesses a C shared-object
I'm new to Python and web development (although I have development experience with Client/Server
I have a Python 2.6 web app built on Pylons 0.9.7. The code in
I have a python web server (cherrypy), and I want the user to be
I have an existing Python django Project running in Web Server. Now the client
I have to transform a python web application into an ASP.net application. Problem is
I'm writing a web server based on Python which should be able to execute
I have a web server that can run python scripts, but I have no
Possible Duplicate: Paste (Python) Web Server - Autoreload Problem I have a pylons app

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.