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 73923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:16:39+00:00 2026-05-10T20:16:39+00:00

This is a follow-up to two questions I asked a week or so back.

  • 0

This is a follow-up to two questions I asked a week or so back. The upshot of those was that I was building a prototype of an AI-based application for the web, and I wondered what language(s) to use. The conclusion seemed to be that I should go for something like python and then convert any critical bits into something faster like Java or C/C++.

That sounds fine to me, but I’m wondering now whether python is really the right language to use for building a web application. Most web applications I’ve worked on in the past were C/C++ CGI and then php. The php I found much easier to work with as it made linking the user interface to the back-end so much easier, and also it made more logical sense to me.

I’ve not used python before, but what I’m basically wondering is how easy is CGI programming in python? Will I have to go back to the tedious way of doing it in C/C++ where you have to store HTML code in templates and have the CGI read them in and replace special codes with appropriate values or is it possible to have the templates be the code as with php?

I’m probably asking a deeply ignorant question here, for which I apologise, but hopefully someone will know what I’m getting at! My overall question is: is writing web applications in python a good idea, and is it as easy as it is with php?

  • 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. 2026-05-10T20:16:40+00:00Added an answer on May 10, 2026 at 8:16 pm

    ‘how easy is CGI programming in python?’ Easier than C, that’s for sure. Python is easier because — simply — it’s an easier language to work with than C. First and foremost: no memory allocation-deallocation. Beyond that, the OO programming model is excellent.

    Beyond the essential language simplicity, the Python WSGI standard is much easier to cope with than the CGI standard.

    However, raw CGI is a huge pain when compared with the greatly simplified world of an all-Python framework (TurboGears, CherryPy, Django, whatever.)

    The frameworks impose a lot of (necessary) structure. The out-of-the-box experience for a CGI programmer is that it’s too much to learn. True. All new things are too much to learn. However, the value far exceeds the investment.

    With Django, you’re up and running within minutes. Seriously. django-admin.py startproject and you have something you can run almost immediately. You do have to design your URL’s, write view functions and design page templates. All of which is work. But it’s less work than CGI in C.

    Django has a better architecture than PHP because the presentation templates are completely separated from the processing. This leads to some confusion (see Syntax error whenever I put python code inside a django template) when you want to use the free-and-unconstrained PHP style on the Django framework.

    linking the user interface to the back-end

    Python front-end (Django, for example) uses Python view functions. Those view functions can contain any Python code at all. That includes, if necessary, modules written in C and callable from Python.

    That means you can compile a CLIPS module with a Python-friendly interface. It becomes something available to your Python code with the import statement.

    Sometimes, however, that’s ineffective because your Django pages are waiting for the CLIPS engine to finish. An alternative is to use something like a named pipe.

    You have your CLIPS-based app, written entirely in C, reading from a named pipe. Your Django application, written entirely in Python, writes to that named pipe. Since you’ve got two independent processes, you’ll max out all of your cores pretty quickly like this.

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

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer In the GridView's menu, you can select the column and… May 11, 2026 at 11:23 am
  • added an answer It seems like your binding should be updating SelectedValue. Is… May 11, 2026 at 11:23 am
  • added an answer any library/source that works with imap or pop will work. May 11, 2026 at 11:23 am

Related Questions

This is a follow-up to two questions I asked a week or so back.
This is a follow-up to the question: Should the folders in a solution match
This is a follow-up to a previous question I had about interfaces. I received
This is a follow-up to my question from yesterday . I have Scott Meyers'
This is a follow-up to Dynamic Shared Library compilation with g++ . I'm trying
This is a follow up to a question I just posted. I'm wondering how
This is a follow up to this question , where I didn't get any
This is a follow up question to This Question . I like (and understand)
This is a follow-up question to this one . Take a look at these
This question is a follow up to my previous question about getting the HTML

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.