KEMBAR78
WTF is Python | KEY
WTF is Python?
And why you should care
Python is a modern programming
language.

Used by Microsoft, Google, Apple,
Lucasfilm, NASA & loads more.
What does Python look like?
# Print Hello ten times:
for __ in range(0, 10):
   print "Hello"

# Work out a factorial:
import operator
reduce(operator.__mul__, [1, 2, 3, 4, 5])
What does Python look like?
class User(object):
   def __init__(self, name):
     self.name = name

  def say_hello(self):
    print “Hello, my name is %s.” % self.name
Django
Django is a web framework written in
Python.

It gives you pretty URLs, a free admin
site, and happy, happy staff.

It’s been used successfully by The
Guardian, The Onion, Google, and us!
What does Django look like?
{% for p in article.photos.all %}
 <li>
   <a href=”{{ p.image.url }}”>
    <img src=”{% thumbnail p.file 100x100 %}” />
   </a>
 </li>
{% endfor %}
Business
How will this help us make more
money?

Hopefully write fewer LOC
 • Write more code in the same time.
 • Write more maintainable code.
 • More time for testing.
 • More money!
Django apps are reusable by design.
PHP      Python       Java/.Net




Small         Medium      Large      Huge
Still not convinced?
Python is fast enough for our site and
allows us to produce maintainable
features in record times, with a
minimum of developers.
                  – Cuong Do (YouTube)
People who’ve made the switch to
dynamic languages [Python] seem
much, much happier.
                – Bruce Eckel (Author)
Django proved to be absolutely the
right choice.
              – Jeremy Keith (Clearleft)
Moving from PHP to Django radically
improved our development speed and
the quality of our websites.
             – Andy Durdin (Mercurytide)
Thanks, Questions?
WTF is Python

WTF is Python

  • 1.
    WTF is Python? Andwhy you should care
  • 2.
    Python is amodern programming language. Used by Microsoft, Google, Apple, Lucasfilm, NASA & loads more.
  • 3.
    What does Pythonlook like? # Print Hello ten times: for __ in range(0, 10): print "Hello" # Work out a factorial: import operator reduce(operator.__mul__, [1, 2, 3, 4, 5])
  • 4.
    What does Pythonlook like? class User(object): def __init__(self, name): self.name = name def say_hello(self): print “Hello, my name is %s.” % self.name
  • 5.
  • 6.
    Django is aweb framework written in Python. It gives you pretty URLs, a free admin site, and happy, happy staff. It’s been used successfully by The Guardian, The Onion, Google, and us!
  • 7.
    What does Djangolook like? {% for p in article.photos.all %} <li> <a href=”{{ p.image.url }}”> <img src=”{% thumbnail p.file 100x100 %}” /> </a> </li> {% endfor %}
  • 8.
  • 9.
    How will thishelp us make more money? Hopefully write fewer LOC • Write more code in the same time. • Write more maintainable code. • More time for testing. • More money! Django apps are reusable by design.
  • 10.
    PHP Python Java/.Net Small Medium Large Huge
  • 11.
  • 12.
    Python is fastenough for our site and allows us to produce maintainable features in record times, with a minimum of developers. – Cuong Do (YouTube)
  • 13.
    People who’ve madethe switch to dynamic languages [Python] seem much, much happier. – Bruce Eckel (Author)
  • 14.
    Django proved tobe absolutely the right choice. – Jeremy Keith (Clearleft)
  • 15.
    Moving from PHPto Django radically improved our development speed and the quality of our websites. – Andy Durdin (Mercurytide)
  • 16.