Click me
Transcribed

Code Wars: PHP vs Ruby vs Python - Who Reigns Supreme

MODERN LANGUAGE WARS PHP PYTHON RUBY VS. VS. Programmers are particular about their language preferences- and most can tell you exactly why they like one over another. Three languages in particular are the rage these days. We compare Ruby, Python, and PHP to see how they stack up. PHP RUBY PYTHON CURRENT VERSION PHP: 5.3.8 RUBY: 1.9.3 AUGUST 23, 2011 OCTOBER 31, 2011 PYTHON: 3.2.2 SEPTEMBER 4, 2011 PURPOSE PHP was designed for web development to produce dynamic web pages. Ruby was designed to make programming fun and flexible for the programmer. Python was designed to emphasize productivity and code readability. CREATOR & YEAR RELEASED 1995 RASMUS LERDORF 1995 YUKIHIRO "MATZ" MATSUMOTO 1991 GUIDO VAN ROSSUM • TCL ● ADA • C++ • CLU O DYLAN INFLUENCED BY EIFFEL O ABC O ALGOL 68 PERL ICON LISP JAVA O JAVA PERL C++ LISP PYTHON OC++ PERL WIKIPEDIA TWITTER SITES BUILT USING IT UDEMY YOUTUBE HULU FACEBOOK GOOGLE GROUPON USABILITY PHP follows a classic approach and is extensively documented. Programmers describe Ruby code as elegant, powerful, and expressive. It is highly usable because of its principle of most readable programming language. least astonishment, enforced to minimize confusion for users. Python uses strict indentation enforcements. Python is arguably the EASE OF LEARNING PHP is easy to learn for former C Ruby is better for a programmer who already knows a language or two. programmers. Python is great for beginners, often recommended by programmers due to the simplicity of its syntax. POPULARITY Thanks to the TIOBE Programming Community we can find out which languages programmers prefer each year. The TIOBE Programming Community Index is updated once a month. The ratings are based on the number of skilled engineers worldwide, courses, and third-party vendors. RATINGS AS OF DECEMBER 2011 POSITION SHIFTS The rating refers to the current preference rating on the TIOBE index. This shows how each language's ranking has changed from December 2010 to December 2011. 0% 1% 2% 3% 4% 5% 6% PHP RUBY PYTHON 6.0% DEC 2010 1.5% 6 DEC 2010 DEC 2011 3.5% 8. DEC 2010 I| DEC 2011 0% 1% 2% 3% 4% 5% 6% 12 DEC 2011 12 MOST-DISCUSSED LANGUAGE The popularity index below comes from IEEE Spectrum, which used data obtained through internet relay chat. 30% 29% 29/0 30% 25% 25% 20% 20% 15% 9% 15% 8% 7% 7% 10% 6% 6% 4% 10% 4% ΑΛΔΑΑ. 5% 5% 0% 0% PYTHON PERL SHELL PHP HASKELL JAVA RUBY OTHER MARKETABILITY When comparing these programming languages it is important to consider which is the most marketable at the moment. The type of developing you'll be doing will dictate which language is best for you to learn. MOST JOB POSTINGS Looking for a programmer? According to Craigslist.com, most companies are looking for developers fluent in PHP. 30% 30% 21% 25% 25% 20% 20% 12% 12% 10% 15% 1% 15% 10% ... 6% ...... 10% 3% 3% 5% 3% 3% 5% 0% PHP SOL 0% RUBY OTHER JOB POSTINGS ON MONSTER.COM NUMBER OF DEVELOPERS Below are the number of job postings as of December 12, 2011. Here are the number of developers on Linkedin as of December 15, 2011. 60 120 180 240 300 360 4,000 8,000 12,000 16,000 20,000 24,000 305 18.950 138 720 79 1316 60 120 180 240 300 360 4,000 8,000 12,000 16,000 20,000 24,000 BEST FOR *Determined by searching for professionals with "Ruby developer," "Python developer," and "PHP developer." Which language would be best for the small business owner or job seeker? SMALL BUSINESS THE JOB SEEKER Based on the Linkedin findings above, those businesses looking for developers will have the easiest time finding a PHP expert, followed by Python, then Ruby. Of all three languages, PHP is the most pervasive in the programming world followed by Python. Those two languages would be best to know if you are seeking a job. HOW FAST IS IT? Using benchmark tests, we compare which languages are the fastest in terms of lines of code and average run time. LINES OF CODE: AVERAGE RUN TIME: PHP RUBY PYTHON 50 PHP RUBY PYTHON 50 4.5 4.1 3.8 4.5 41 4.0 40 4.0 32 33 40 3.5 3.5 29 28 3.0 30 26 23 3.0 24 30 2.5 2.5 2.0 20 2.0 1.5 1.5 10 10 1.0 1.0 .5 JECT-ORIENTED O FUNCTION OBJECT-ORIENTED FUNCTIONAL SOURCES: MJTSALCOM I LCGEUROPE.COM I SHOOTOUT.AILOTH.DEBIAN.ORG I GITHUB.COM I C2.COM I RUBY-LANG.COM I PYTHON.ORGI "PHP VS. PYTHON VS. RUBY," KLAUS PURER I udemy MONSTER.COM I LINKEDIN.COM I XODIAN.NET PHP RUBY PYTHON BEST WORST POSITION I-12 BEST PHP RUBY >>>>> VASCRIPT PYTHON JAVASCRIPT JAVA LINES OF CODE PHP 20 | RUBY PERL OBJECT-ORIENTED NOHLAd ACTIONSCRIPT FUNCTIONAL FUNCTIONAL IN SECONDS OBJECT-ORIENTED FUNCTIONAL OBJECT-ORIENTED UNCTIONAL OBJECT-ORIENTED

Code Wars: PHP vs Ruby vs Python - Who Reigns Supreme

shared by ColumnFive on Jan 25
1,227 views
4 share
1 comment
Programmers are particular about their language preferences - and most can tell you exactly why they like one over another. Three languages in particular are the rage these days. We compare Ruby, Pyth...

Publisher

Udemy

Category

Technology
Did you work on this visual? Claim credit!

Get a Quote

Embed Code

For hosted site:

Click the code to copy

For wordpress.com:

Click the code to copy
Customize size