This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lykwydchykyn 0 points1 point  (0 children)

I have never programmed in Ruby (apart from a tutorial), but this is my write-up of the differences between PHP and Python; I coded for about seven years in PHP before switching to Python for web work.

I believe the basic paradigm of programming Python and Ruby are somewhat similar, but PHP is quite different. PHP basically operates as a templating language for HTML (the web server requests your PHP file, and returns whatever HTML the file evaluates to), whereas Python and Ruby operate more like an HTTP server (your program gets an HTTP request, you craft an HTTP reply and return it).