Posts

Showing posts with the label Python

Exploring Pyreverse UML

Installing pylint for python came with an extra package called pyreverse. This wonderful little package gave ability to create class diagrams from python code. Simply writing the following code produced the png files of class diagrams. $pyreverse -o png *  This would create png files which can be used for documentation as well as design review meeting. A very handy tool which won the day for us.

Overcoming Python in Ubuntu 9.10

Python's rise to power is imminent by claims that Python alongside PHP/ Perl is the "P" in LAMP. This is equivalent to knighthood amongst geeks. Python fascinates developers who are very much conscious about productivity. The first step is to ensure Python is installed so here is the command to do so in Ubuntu 9.10. (Most likely it would already be installed). $ sudo apt-get install python  The first step to testing a language is to write a hello world program. Hello World Program Python's manner of saying hello world to the world is different. Go to terminal and write the following command to invoke python. $ python Once inside the shell. Type print "hello world" and the output hello world will appear. >>> print "hello world" hello world Another way of saying hello from the Python world is via creating a text file and writing the same in it and then saving it say "helloworld.py" and then on the command prompt executing...