Mark Kels wrote:
Hi list !
I want to know whats so great in OOP...
I have learned some of it, but I don't understand why everybody like
it so much...
Can anyone give me an example for a task that could be done only with
OOP or will be much simpler to do with it ?
Thanks in advance.
Other commenters
Brian van den Broek wrote:
1) Namespace issues
With procedural (or imperative -- don't know which is the right terms
for non-OOP code which employs functions) code, you can have issues
caused by namespaces. Just yesterday, someone on the main python
list/newsgroup had code something like:
procedura
> Can anyone give me an example for a task that could be done only
with
> OOP or will be much simpler to do with it ?
Anything that can be done in OOP can be done without it.
But OOP makes many things easier.
But OOP only really becomes useful in bigger programs. If your biggest
program is less t
> Can someone please show me an example of two programs - you run one
in
> console one - then when you run one in console two - it talks to the
> first program = sending a specific string instructing the first one
to
> close.
Look at the socket examples in the Python web pages.
The sender and rece
In IDLE, go
to File, New Window.
Type in your
scripts there.
Go to file,
click save, and save it with a py extension ex.
"myscript.py"
Since you're
on XP, you should be able to double click on it...
If you
can't, then you have to go into file associations and junk like
that.
Trying to work on two programs that talk to each other - and just not
getting the basics.
Can someone please show me an example of two programs - you run one in
console one - then when you run one in console two - it talks to the
first program = sending a specific string instructing the first one
I have installed PythonWin 2.4 via ActivePython 2.4.0.244 . My OS is
Windows 98 SE.
When I try to use the
'Browse PythonPath' menu item in the PythonWin IDE, I get a long error
output starting with
>>> Failed to execute command:
from pywin.tools import browseProjects;browseProjects.Browse()
Tra
I have looked through a lot of tutor documentation.
But I would ask someone to show me python code for putting som data in a sqlite
database and code showing how I get data out of such a database and
finaly code for printing data on a special part of a paper.
Anybody knewing?
Jan
__
Mark Kels said unto the world upon 2005-03-12 08:04:
Hi list ! I want to know whats so great in OOP... I have learned
some of it, but I don't understand why everybody like it so much...
Can anyone give me an example for a task that could be done only
with OOP or will be much simpler to do with it
I didn't understand.
But now I think I have done right.
Answer all is an alternative to answer.
Sorry for your trouble.
Jan
- Original Message -
From: "Danny Yoo" <[EMAIL PROTECTED]>
To: "Tutor"
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 12, 2005 12:38 AM
Subject: Re: [Tutor] Installin
Mark Kels wrote:
Hi list !
I want to know whats so great in OOP...
I have learned some of it, but I don't understand why everybody like
it so much...
- One of the great challenges in programming is managing complexity. A program of any size is too
complex to hold in your brain all at once. Techniq
Hi Mark,
In my brief experience with OOP, I would say that the main advantage is
organization of code. All functions and attributes that you need to work
with an object are wrapped up nicely inside the object. Also, object
inheritance provides a great framework for easy customization.
For examp
Hi list !
I want to know whats so great in OOP...
I have learned some of it, but I don't understand why everybody like
it so much...
Can anyone give me an example for a task that could be done only with
OOP or will be much simpler to do with it ?
Thanks in advance.
--
1. The day Microsoft makes
13 matches
Mail list logo