Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Best approach to OO Style (only slightly off topic)?

Reply
Thread Tools

Best approach to OO Style (only slightly off topic)?

 
 
Steve Simmons
Guest
Posts: n/a
 
      02-01-2013
I'm relatively new to OO (and Python and QT ) and I am learning as I go
along. As I slowly come up to speed, I have some questions about the
best approach to program/module structure so I'm looking for some
pointers (URL's or replies).

I have copied some code from 'Rapid GUI Programming with Python and Qt'
(Great book!) and am now modifying/extending it with my own. The
original code (Image Changer - Chp 6) is a single class that contains
code for both UI creation/management and functional code. I have created
a second class for my own code and I'm on the brink of adding calls from
one class to the other and vice-versa.

At this point, I began to wonder what a 'correctly structured' OO
program should look like. Should I separate GUI logic from 'business'
logic? Should everything be in one class? Should my main() be carrying
the high level logic? Anyinput most welcome.

I looked briefly at the MVC model which answers my question at a high
level but itrepresents another learning curve that I'm reluctant to add
to my current challenge.

Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Best approach to OO Style (only slightly off topic)? Chris Angelico Python 0 02-01-2013 03:17 PM
best approach for updating a live servlets site without booting off users marc2112@yahoo.com Java 2 12-06-2006 01:15 AM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM
Slightly off-topic: JXTA Peer 2 Peer newsgroup John O'Conner Java 1 01-30-2004 12:52 PM
Software Development - Slightly off topic Paul Kraus Perl 1 08-14-2003 10:20 AM



Advertisments