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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:07:21+00:00 2026-05-28T01:07:21+00:00

I am a newbie in web development… Mostly I am pretty comfortable with coding

  • 0

I am a newbie in web development… Mostly I am pretty comfortable with coding in python and writing OO pythonic codes..
Whenever I write a code, I think of in terms of classes.. For the sake of discussion lets say I want to add to numbers..
In normal console based development I would do probably write a function and get the input from console..Like this

add.py
def add(a,b):
    return (a+b)

and then in main.py call this function..

and so on…
and for more complicated functions I will write classes and so on.
But you get the idea …right.. Whenever I code, I think of these objects as living environment and that these objects has methods to maintain itself like a living organism and this sort of thinking helps me alot..
But now, lets say i want to add two numbers in the browser..
What should be my state of mind.
Maybe I write an html form to get input from users.. (connect it to the db to store the input from the users (just to make it a complete example.. )

And then what?
It would be of great help if anyone can actually write addition of two numbers where code executes on browser…
Assume that whatever framework you are using (django.. and sql library like mysqldb) are set up and configured on my local machine.. Just please help me write the “hello world” example in the web environment and from that i can draw the analogies which will help me to go long distance.
Thanks

Edit:
Just to adress the comments and answers..

class Add:
   def __init__(self, a,b):
     self._a = a
     self._b = b
     self._sum = self.__add()
   def __add(self):
      return (self._a + self._b)
  • 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-28T01:07:22+00:00Added an answer on May 28, 2026 at 1:07 am

    Q: What’s the difference between oo coding and server side coding in
    python?

    A: There’s nothing wrong with adopting your OO coding style for server side coding.

    Q: It would be of great help if anyone can actually write addition of
    two numbers where code executes on browser.

    A: Adding two numbers – as your example abundantly demonstrates – really isn’t “OO”.

    Once you have something with “state” and “behavior”, it becomes interesting to think about objects. In your example, however, you just define an “operation” with a couple of “parameters”. There’s nothing wrong with that: your example is in fact a very good solution to the problem. But it’s not an “object oriented” solution.

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

Sidebar

Related Questions

I'm a mostly-newbie when it comes to web development (though not to programming in
i am a newbie on web development, so i have some problems first of
I am a newbie to Java Web Application development. So far all I have
I'm a python newbie and starting out with using the Bottle web framework on
I'm a relative newbie to web development. I know my HTML and CSS, and
Hello I'm a newbie web programmer. My background is writing Windows applications with sql.
I am a newbie in web-development and am trying to use Jmeter for doing
I'm a newbie to Java-related web development, and I can't seem to get a
I am a newbie if it comes to web site development. I would like
I am a total jQuery newbie (well web coding newbie come to that) and

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.