PDA

View Full Version : Coming from PHP to Python



majikstreet
September 19th, 2005, 09:05 PM
Hi,
I currently know PHP and have a nice big book on it :)
I would like to develop linux applications, and I believe that Python would be the right application because so many people use it and it has the ability to become gtk.

Is Python anything like PHP?
Can you recommend any online resources for python?

(I don't want to buy another book right now, maybe later I'll buy a book)

Basically, I just want to help the Linux community!

Thanks,
majikstreet

SilentCacophony
September 19th, 2005, 09:33 PM
Here are some of my bookmarks on the subject. Have fun!

Dive Into Python (http://diveintopython.org/)
Non-Programmers Tutorial For Python (http://honors.montana.edu/~jjc/easytut/easytut/)
Python Tutorials, more than 200, sorted by topic and category (http://www.awaretek.com/tutorials.html)
ActiveState O'Reilly Python Cookbook (http://aspn.activestate.com/ASPN/Python/Cookbook/)
A Byte of Python | Free Python Book | Free Python Tutorial (http://byteofpython.info/)

DirtDawg
September 19th, 2005, 11:16 PM
Here are some of my bookmarks on the subject. Have fun!

Dive Into Python (http://diveintopython.org/)
Non-Programmers Tutorial For Python (http://honors.montana.edu/~jjc/easytut/easytut/)
Python Tutorials, more than 200, sorted by topic and category (http://www.awaretek.com/tutorials.html)
ActiveState O'Reilly Python Cookbook (http://aspn.activestate.com/ASPN/Python/Cookbook/)
A Byte of Python | Free Python Book | Free Python Tutorial (http://byteofpython.info/)

I'm a fan of paper books myself. Check the library. Second-hand stores sometimes have great books for cheap too, though it's a crap shoot. In fact, I got "Linux in a Nutshell" and "Learning Python" from a GoodWill for $7.00 total.

chz
September 28th, 2005, 07:06 AM
just found out there's a way to write GTK apps in PHP

http://gtk.php.net/

i'm trying it out myself right now. just need to figure out whats wrong with the install.

chz
September 28th, 2005, 08:44 AM
ok...got it working..u need the php-dev package from apt. then the configure, make, and install should work fine. tried it out...pretty nice. only problem is that its using the old gtk so the look is kinda nasty. php-gtk2 should be comin out soon tho (so they say).

i do think though that this could be very useful once they update to the current gtk gui elements. maybe the ubuntu-dev team can use php instead of python?

dataw0lf
September 28th, 2005, 03:19 PM
i do think though that this could be very useful once they update to the current gtk gui elements. maybe the ubuntu-dev team can use php instead of python?

I really hope you're joking.

PHP is not suitable for any sort of coding outside of web development (and some, although not me, would argue that it's not even suitable for the web). PHP-GTK is a toy, nothing more.

LordHunter317
September 28th, 2005, 05:16 PM
While PHP isn't a very good language by most standards, I'm wondering what makes you believe it's actually unsuitable for anything but web development.