473,405 Members | 2,262 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

how to present Python's OO feature in design?

As I know java has many UML tools to design for its OO feature, is
there any tools or good concept for Python project Modeling?

Nov 7 '05 #1
12 1804
Do you mean code-generators for Python from UML?

If not, please give some hints in what OOP features you're interested
in, because I can't see how use-case, class, instance (objects),
package, sequence,( ... other ) diagram would differ in Python from
Java from an OOP perspective?

Nov 7 '05 #2
because i have a problem that python's oo feature is so great, but
maybe when the project become larger, python's no-declaration cannot
mapping the design to practice?

I am not sure about it.

Nov 7 '05 #3
aum
On Sun, 06 Nov 2005 19:06:49 -0800, pcmanlin wrote:
As I know java has many UML tools to design for its OO feature, is
there any tools or good concept for Python project Modeling?


Just code the bloody thing!

One of Python's strengths is its rapid design/programming/testing
turnaround. And virtually none of Java's mind-gnashing red tape.

--
Cheers
David

Nov 7 '05 #4

aum wrote:
On Sun, 06 Nov 2005 19:06:49 -0800, pcmanlin wrote:
As I know java has many UML tools to design for its OO feature, is
there any tools or good concept for Python project Modeling?


Just code the bloody thing!

One of Python's strengths is its rapid design/programming/testing
turnaround. And virtually none of Java's mind-gnashing red tape.

For a project that involves more than a handful of people, I don't
think this approach would work.

Nov 7 '05 #5
bo****@gmail.com wrote:
aum wrote:
On Sun, 06 Nov 2005 19:06:49 -0800, pcmanlin wrote:
As I know java has many UML tools to design for its OO feature, is
there any tools or good concept for Python project Modeling?


Just code the bloody thing!

One of Python's strengths is its rapid design/programming/testing
turnaround. And virtually none of Java's mind-gnashing red tape.


For a project that involves more than a handful of people, I don't
think this approach would work.


If by "this approach" you mean "just code [it]", then you're correct.
That's basically the (old) definition of hacking, and it results in
spaghetti and hairballs as soon as you get beyond one programmer or
twenty lines of code.

If you mix in some decent modern techniques, however, such as automated
testing (e.g. Test-Driven Development) and an agile development
methodology, it certainly does work, and very well. And definitely
still without the "mind-gnashing red tape" of Java, UML and their ilk.

-Peter
Nov 7 '05 #6
pcmanlin wrote:
because i have a problem that python's oo feature is so great, but
maybe when the project become larger, python's no-declaration cannot
mapping the design to practice?

I am not sure about it.


As far cartoon-ware ( UML ) is concerned note that it is NOT Pythons
non-declarativeness but it's dynamicity that makes it hard to picture
it's design. Classes in Python are cheap, object structures are even
cheaper. That's why UML hardly provides an adequate representation of
Python programs and Pythonistas usually don't care a lot about it.

Kay

Nov 7 '05 #7
Kay Schluehr wrote:
pcmanlin wrote:
because i have a problem that python's oo feature is so great, but
maybe when the project become larger, python's no-declaration cannot
mapping the design to practice?

I am not sure about it.


I don't know if there are any tools that convert UML to Python code,
but that doesn't stop you working with UML diagrams if you choose, and
then hand-coding the classes later. Just remember that one of the major
purposes of using UML for big up-front design is to save you from
having to do a lot of refactoring later, but in Python this is rarely a
difficult task.

--
Ben Sizer

Nov 7 '05 #8
"Ben Sizer" <ky*****@gmail.com> writes:
I don't know if there are any tools that convert UML to Python code,
but that doesn't stop you working with UML diagrams if you choose, and


Umbrello helps starting things using as a base UML diagrams. You'll probably
have to draw your diagrams on it, though...

--
Jorge Godoy <go***@ieee.org>
Nov 7 '05 #9
"pcmanlin" <yu******@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
As I know java has many UML tools to design for its OO feature, is
there any tools or good concept for Python project Modeling?


Check out EnterpriseArchitect (http://www.sparxsystems.com.au ). They have
a very good UML tool that has a Python plugin. I'd recommend the
Professional Edition - the code reverse-engineering is like magic.

Not open source or free, though. EA Pro is US$199, Academic license is
US$105. But compare to Rational at $US000's, it is a great value for the
money.

-- Paul McGuire
(not associated wth SparxSystems, just a happy customer)
Nov 7 '05 #10
pcmanlin wrote:
As I know java has many UML tools to design for its OO feature, is
there any tools or good concept for Python project Modeling?


My favourite is whiteboard and digital camera. I don't generate
any code from that though... ;) It's the approach suggested in
Scott Ambler's "Agile Modeling", and I think it's just just the
right approach.

Don't forget a good set of automated tests. We use TextTest, but
ymmv. It fits our type of applications.
Nov 7 '05 #11
On 6 Nov 2005 23:17:09 -0800, Kay Schluehr <ka**********@gmx.net> wrote:
pcmanlin wrote:
because i have a problem that python's oo feature is so great, but
maybe when the project become larger, python's no-declaration cannot
mapping the design to practice?

I am not sure about it.
As far cartoon-ware ( UML ) is concerned note that it is NOT Pythons
non-declarativeness but it's dynamicity


Yes; I've sometimes wondered what people do about duck typing in UML class
diagrams. I hope they don't adapt their Python code by needlessly
introducing inheritance!
that makes it hard to picture
it's design. Classes in Python are cheap, object structures are even
cheaper. That's why UML hardly provides an adequate representation of
Python programs


Not the part where you spend weeks drawing pointless, infinitely detailed
class diagrams, anyway. There are less detailed levels of those diagrams,
and there are other diagram types. Most people would find some of them as
useful (or useless) with Python as with other languages.

/Jorgen

--
// Jorgen Grahn <jgrahn@ Ph'nglui mglw'nafh Cthulhu
\X/ algonet.se> R'lyeh wgah'nagl fhtagn!
Nov 8 '05 #12
Ben Sizer <ky*****@gmail.com> wrote:
I don't know if there are any tools that convert UML to Python code,


dia2code <http://dia2code.sourceforge.net>
Floriaa
--
Einen Troll zu füttern ist das gleiche als würde man einen Haufen
Hundescheisse sehen, absichtlich reinsteigen und sich dann beschweren.
(Christian Schneider in <20*****************@bofh.my-fqdn.de>)
Nov 22 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
226
by: Stephen C. Waterbury | last post by:
This seems like it ought to work, according to the description of reduce(), but it doesn't. Is this a bug, or am I missing something? Python 2.3.2 (#1, Oct 20 2003, 01:04:35) on linux2 Type...
13
by: Wayne Folta | last post by:
I've been a long-time Perl programmer, though I've not used a boatload of packages nor much of the tacky OO. A couple of years ago, I decided to look into Python and Ruby. Python looked OK, but...
36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
23
by: Antoon Pardon | last post by:
I have had a look at the signal module and the example and came to the conclusion that the example wont work if you try to do this in a thread. So is there a chance similar code will work in a...
17
by: seb.haase | last post by:
Hi, Is it true that that "Python 3000" is dead ? Honestly I think that e.g. changing 5/2 to be 2.5 (instead of 2) would just break to much code :-( On the otherhand I'm using Python as "Matlab...
267
by: Xah Lee | last post by:
Python, Lambda, and Guido van Rossum Xah Lee, 2006-05-05 In this post, i'd like to deconstruct one of Guido's recent blog about lambda in Python. In Guido's blog written in 2006-02-10 at...
206
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.