Page 1 of 1

Code wars: Php vs Ruby vs Python.

PostPosted: Thu Dec 05, 2013 12:29 am
by pam
It can be said the internet 'runs' on php and thats prolly because its fairly easy to learn and was intended to be a web development framework(formerly called personal home page). Php has revolutionized the internet but nonetheless has programming syntax that can make it easy to hack the database(SQL). Php unlike javascript, does not offend the sensibilities of a programmer. Both are used for dedicated apps and are purpose bound. A wide codebase for ruby and python does not exist unlike php and javascript.

With HTML and CSS you can create beautiful websites. Using PHP you can create dynamic content like for eg: Lets say you want to change the template of this website, php allows you to do so without rewriting the webpages or duplicating them. Smart, dont you think?

In the LAMP(Linux Apache MySQL and PHP) stack, php handles the database and these days it is also referred to as Python Or Perl.

So is php bad? Never. Although i have never used it, i know people who do and what they do with it. You'd be shocked what you can do with it as a web developer. The zend framework adds further automation and arrogance in the use and deployment of php. Wordpress is made with php. Php is a server side scripting language, in other words it can be implemented as a CGI(common gateway interface) taking requests from users.
On the downside php lacks multithreaded usage which can be overcome by using pthreads.

So in a gist the internet is like an operating system where most communication(server side--content based) both internal and external is handled by Php. If routers, modems and switches are the heart of the internet, php(along with HTML and CSS) is the pulse. Nonetheless php has absolutely nothing to do with hardware.

Ruby on the other hand is upcoming(still).

Python is an everything language and very powerful and versatile. Probably you can use till the day you die.

Sourced from:

BTW, Blackwolf is a php pro. ;)

Re: Code wars: Php vs Ruby vs Python.

PostPosted: Thu Dec 05, 2013 5:30 am
by TheeMahn
The first website I ever wrote was in PHP, CSS & MySQL, truly a powerful combonation. Files a few kilobytes in size generating over 6000 dynamic webpages.

Python is also quite powerful, I have seen on the web a simple web browser written smartly in python that I believe was 21 lines of code.

I fiddled with ruby when restructuring code cleanup app. It seems geared for search and replace. I never did fully get it under my belt, but have a general understanding of what it is about.

Re: Code wars: Php vs Ruby vs Python.

PostPosted: Thu Dec 05, 2013 9:21 am
by pam
Thee, you know C .
No, You dream in C and python.
Now writing in php/css is probably a backward step for you.
just saying...