Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
PERCEIVING BEAUTY
Sriram V Iyer
BORROWING FROM HANNSON

Beauty Leads to Happiness
Happiness Leads to productivity

….. So,
Beauty leads to Productivity 
You can recognize truth by its beauty and
simplicity. When you get it right, it is obvious
that it is right.
- Richard Fey...
Perfection is achieved, not when there is
nothing more to add, but when there is
nothing left to take away
-Antoine de Sai...
vs
LESS IS MORE (BEAUTIFUL)
l = [ 3, 7, 8, 6, 5, 11 ]
q = []
for i in range( len(l) ):

q.insert( l[i] * 2 )
LESS IS MORE (BEAUTIFUL)
def dbl(x):
return x * 2
l = [ 3, 7, 8, 6, 5, 11 ]
q = []
for i in range( len(l) ):
q.insert( dbl...
LESS IS MORE (BEAUTIFUL)
def dbl(x):
return x * 2
l = [ 3, 7, 8, 6, 5, 11 ]
q = map( dbl, l )
LESS IS MORE (BEAUTIFUL)
l = [ 3, 7, 8, 6, 5, 11 ]
q = [ x * 2 for x in l ]
# Double only odd numbers? …
LESS IS MORE (BEAUTIFUL)
q = [ x * 2 for x in l if not (x % 2) ]
VS
q = map( lambda x : x * 2, filter(lambda y : y % 2 != ...
ATTITUDE IS NO SUBSTITUTE FOR
COMPETENCE
O(n) = log n
VS
O(n) = n log n
KNOWING IS EVERYTHING
Insertion Sort (n^2) vs Merge Sort (n log(n))
Computer A 10,000 MIPS vs Computer B 10 MIPS
Number of...
THANK YOU!
Perceiving beauty
Upcoming SlideShare
Loading in …5
×

Perceiving beauty

My quick talk in 'Write Beautiful Code' HackerEarth Event in Dexetra, Bangalore. Not much text and borrowed a lot of stuff from Hannson and Cormen!

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

Perceiving beauty

  1. PERCEIVING BEAUTY Sriram V Iyer
  2. BORROWING FROM HANNSON Beauty Leads to Happiness
  3. Happiness Leads to productivity ….. So,
  4. Beauty leads to Productivity 
  5. You can recognize truth by its beauty and simplicity. When you get it right, it is obvious that it is right. - Richard Feynman
  6. Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away -Antoine de Saint-Exupery
  7. vs
  8. LESS IS MORE (BEAUTIFUL) l = [ 3, 7, 8, 6, 5, 11 ] q = [] for i in range( len(l) ): q.insert( l[i] * 2 )
  9. LESS IS MORE (BEAUTIFUL) def dbl(x): return x * 2 l = [ 3, 7, 8, 6, 5, 11 ] q = [] for i in range( len(l) ): q.insert( dbl (l[i]) )
  10. LESS IS MORE (BEAUTIFUL) def dbl(x): return x * 2 l = [ 3, 7, 8, 6, 5, 11 ] q = map( dbl, l )
  11. LESS IS MORE (BEAUTIFUL) l = [ 3, 7, 8, 6, 5, 11 ] q = [ x * 2 for x in l ] # Double only odd numbers? …
  12. LESS IS MORE (BEAUTIFUL) q = [ x * 2 for x in l if not (x % 2) ] VS q = map( lambda x : x * 2, filter(lambda y : y % 2 != 0, l ) )
  13. ATTITUDE IS NO SUBSTITUTE FOR COMPETENCE O(n) = log n VS O(n) = n log n
  14. KNOWING IS EVERYTHING Insertion Sort (n^2) vs Merge Sort (n log(n)) Computer A 10,000 MIPS vs Computer B 10 MIPS Number of items to be Sorted Insertion Sort or Computer A Merge Sort on Computer B 10 Million 5.5 Hours 17 mins 100 Million 23 Days 4 hours
  15. THANK YOU!

    Be the first to comment

    Login to see the comments

  • ayprograms

    Dec. 21, 2013
  • mrcfornos

    Dec. 21, 2013
  • prachandakarki37

    Dec. 21, 2013
  • mahsam2

    Dec. 21, 2013
  • sklep9982013

    Dec. 21, 2013
  • konoshoichi

    Dec. 22, 2013
  • Atiharsh

    Dec. 22, 2013
  • amitkdwivedi942

    Dec. 22, 2013
  • ash3003

    Dec. 22, 2013
  • tarungoyal11

    Dec. 22, 2013
  • lalitazppy

    Dec. 22, 2013
  • Musicianstlas

    Dec. 23, 2013
  • padmavatipillai

    Dec. 23, 2013
  • organick

    Dec. 23, 2013
  • nguyentuoiit

    Dec. 23, 2013
  • MaulidiyahAgustina

    Dec. 23, 2013
  • bakonex

    Dec. 26, 2013
  • CoraBeth

    Jan. 6, 2014
  • PrashantDharpure

    Jan. 21, 2014
  • circuitodamodaoficial

    Jan. 25, 2014

My quick talk in 'Write Beautiful Code' HackerEarth Event in Dexetra, Bangalore. Not much text and borrowed a lot of stuff from Hannson and Cormen!

Views

Total views

5,794

On Slideshare

0

From embeds

0

Number of embeds

151

Actions

Downloads

60

Shares

0

Comments

0

Likes

22

×