Pyjamas
Upcoming SlideShare
Loading in...5
×
 

Pyjamas

on

  • 536 views

A quick powerpoint talking about the benefits of using Pyjamas framework instead of Javascript for front-end development.

A quick powerpoint talking about the benefits of using Pyjamas framework instead of Javascript for front-end development.

Statistics

Views

Total Views
536
Slideshare-icon Views on SlideShare
536
Embed Views
0

Actions

Likes
0
Downloads
3
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Pyjamas Pyjamas Presentation Transcript

    • pyjamas Great... yet another web development framework
    • What is Pyjamas?
      • A Python framework for writing web front end
      • You don't even need Javascript, write everything in Python
      • It will automatically convert your code to Javascript (and even take care of cross-browser issues)
      What?!
    • Why Python?
      • Not that different from Javascript
      • Very clean syntax
      Javascript Python && and || or ! not { } ; var temp=a;a=b;b=temp; a, b = b, a if(1<a && a<5) { if 1<a<5:
    • Why Python? (cont.)
      • Only one way to do things (usually)
      • Already a very popular backend language
      • Makes JS debugging feel like FORTRAN
      Customary Hello World example: print ”Hello World”
    • Why Python? (cont.) Javascript Python function bubbleSort(items) { var x, y, holder; // The Bubble Sort method for (x = 0 ; x < items.length; x++) { for (y = 0 ; y < (items.length- 1 ); y++) { if (items[y] > items [ y + 1 ] ) { holder = items [ y + 1 ] ; items [ y + 1 ] = items [ y ] ; items [ y ] = holder; } } } def bubbleSort(items): # The Bubble Sort method for x in range ( len ( items )): for y in range ( len ( items )- 1 ): if items [ y ] > items [ y + 1 ]: items [ y ] , items [ y + 1 ] = items [ y + 1 ] , items [ y ] Sorting a list: Javascript Python items.sort() items.sort()
    • What can Pyjamas do?
      • Anything JS or Python can (in theory)
      • Manipulate the DOM
      • Coexist with other JS on same page
      • It's a Python version of GWT
    • Who uses it?
      • pyjs.org
      • grafpad.com
      • gbsware.com
      my web app pyjamas
    • Questions? Feel free to contact me (questions, support, web development): [email_address] @ATsepkov @Pyjeon Pyjeon Software LLC