SlideShare une entreprise Scribd logo
1  sur  30
Télécharger pour lire hors ligne
RUBY VS PYTHON
   IGOR LEROY
IT’S NOT ME!
RUBY                                PYTHON
            1995                                       1991
 YUKIHIRO MATSUMOTO “MATZ”                      GUIDO VAN ROSSUM

     CODE DESIGN                             COMPUTATION EFFICIENCES
     FUN                                     SIMPLE & BEAUTIFUL
     FLEXIBLE                                EXPLICT

 "I WANTED A SCRIPTING LANGUAGE THAT     “NOW, IT'S MY BELIEF THAT PYTHON IS A
 WAS MORE POWERFUL THAN PERL, AND        LOT EASIER THAN TO TEACH TO STUDENTS
 MORE OBJECT-ORIENTED THAN PYTHON.      PROGRAMMING AND TEACH THEM C OR C++
THAT'S WHY I DECIDED TO DESIGN MY OWN    OR JAVA AT THE SAME TIME BECAUSE ALL
              LANGUAGE."                  THE DETAILS OF THE LANGUAGES ARE SO
                                             MUCH HARDER. OTHER SCRIPTING
                                          LANGUAGES REALLY DON'T WORK VERY
                                                  WELL THERE EITHER.”
RUBY
“RUBY INHERITED THE PERL PHILOSOPHY OF HAVING MORE THAN ONE WAY TO DO THE SAME THING.”
                             —YUKIHIRO MATSUMOTO (MATZ)
RUBY
“RUBY INHERITED THE PERL PHILOSOPHY OF HAVING MORE THAN ONE WAY TO DO THE SAME THING.”
                             —YUKIHIRO MATSUMOTO (MATZ)




                                    RAILS

                                   RSPEC

                                    RAKE
PYTHON
PYTHON
SPECIAL CASES AREN’T SPECIAL ENOUGH TO
             BREAK THE RULES
RUBY




            HTTP://BLOG.EXTRACHEESE.ORG/2010/02/PYTHON-VS-RUBY-A-BATTLE-TO-THE-DEATH.HTML
SPECIAL CASES AREN’T SPECIAL ENOUGH TO
             BREAK THE RULES
RUBY




                    PYTHON


            HTTP://BLOG.EXTRACHEESE.ORG/2010/02/PYTHON-VS-RUBY-A-BATTLE-TO-THE-DEATH.HTML
THERE SHOULD BE ONE AND PREFERABLY ONLY
        ONE OBVIOUS WAY TO DO IT
THERE SHOULD BE ONE AND PREFERABLY ONLY
           ONE OBVIOUS WAY TO DO IT
“RUBY INHERITED THE PERL PHILOSOPHY OF HAVING MORE THAN ONE WAY TO DO THE SAME THING.”
                             —YUKIHIRO MATSUMOTO (MATZ)
THERE SHOULD BE ONE AND PREFERABLY ONLY
           ONE OBVIOUS WAY TO DO IT
“RUBY INHERITED THE PERL PHILOSOPHY OF HAVING MORE THAN ONE WAY TO DO THE SAME THING.”
                             —YUKIHIRO MATSUMOTO (MATZ)



               RUBY
THERE SHOULD BE ONE AND PREFERABLY ONLY
           ONE OBVIOUS WAY TO DO IT
“RUBY INHERITED THE PERL PHILOSOPHY OF HAVING MORE THAN ONE WAY TO DO THE SAME THING.”
                             —YUKIHIRO MATSUMOTO (MATZ)



               RUBY
                                                               PYTHON
ALTHOUGH NEVER IS OFTEN BETTER THAN
           *RIGHT* NOW




         HTTP://BLOG.EXTRACHEESE.ORG/2010/02/PYTHON-VS-RUBY-A-BATTLE-TO-THE-DEATH.HTML
ALTHOUGH NEVER IS OFTEN BETTER THAN
           *RIGHT* NOW




         HTTP://BLOG.EXTRACHEESE.ORG/2010/02/PYTHON-VS-RUBY-A-BATTLE-TO-THE-DEATH.HTML
ALTHOUGH NEVER IS OFTEN BETTER THAN
           *RIGHT* NOW




         HTTP://BLOG.EXTRACHEESE.ORG/2010/02/PYTHON-VS-RUBY-A-BATTLE-TO-THE-DEATH.HTML
COMMUNITY
COMMUNITY
COMMUNITY
MODULES AND PACKAGES
MODULES AND PACKAGES
MODULES AND PACKAGES
DECORATORS
HTTP://WWW.UDEMY.COM/BLOG/MODERN-LANGUAGE-WARS
HTTP://WWW.UDEMY.COM/BLOG/MODERN-LANGUAGE-WARS
HTTP://WWW.UDEMY.COM/BLOG/MODERN-LANGUAGE-WARS
HTTP://WWW.UDEMY.COM/BLOG/MODERN-LANGUAGE-WARS
HTTP://WWW.UDEMY.COM/BLOG/MODERN-LANGUAGE-WARS
The very things I find ugly in Ruby are what make amazing Ruby software like RSpec possible, and
that Python could never have (given the current implementation).
                                                                                   Gary Bernhardt




Python is the easiest language to read. Ruby is the most fun to write.
                                                                                        Jeff Dickey
REFERENCES



HTTP://WWW.UDEMY.COM/BLOG/MODERN-LANGUAGE-WARS

HTTP://BLOG.EXTRACHEESE.ORG/2010/02/PYTHON-VS-RUBY-A-BATTLE-TO-THE-DEATH.HTML

HTTP://DOCS.PYTHON.ORG

HTTP://WWW.DJANGOPROJECT.COM

HTTP://PEEPCODE.COM/BLOG/2010/WHAT-PYTHONISTAS-THINK-OF-RUBY

Contenu connexe

En vedette

En vedette (7)

Framework Battle: Django vs Flask vs Chalice
Framework Battle: Django vs Flask vs ChaliceFramework Battle: Django vs Flask vs Chalice
Framework Battle: Django vs Flask vs Chalice
 
Jruby, o melhor de 2 mundos (MacGyver + ChuckNorris)
Jruby, o melhor de 2 mundos (MacGyver + ChuckNorris)Jruby, o melhor de 2 mundos (MacGyver + ChuckNorris)
Jruby, o melhor de 2 mundos (MacGyver + ChuckNorris)
 
Why Learn Python?
Why Learn Python?Why Learn Python?
Why Learn Python?
 
Desenvolvimento ágil de software com Ruby on Rails
Desenvolvimento ágil de software com Ruby on RailsDesenvolvimento ágil de software com Ruby on Rails
Desenvolvimento ágil de software com Ruby on Rails
 
Python RESTful webservices with Python: Flask and Django solutions
Python RESTful webservices with Python: Flask and Django solutionsPython RESTful webservices with Python: Flask and Django solutions
Python RESTful webservices with Python: Flask and Django solutions
 
Web backends development using Python
Web backends development using PythonWeb backends development using Python
Web backends development using Python
 
Jython: Integrating Python and Java
Jython: Integrating Python and JavaJython: Integrating Python and Java
Jython: Integrating Python and Java
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 

Ruby vs python