PyWeb31 - Lithning Talks

Get Started. It's Free
or sign up with your email address
Rocket clouds
PyWeb31 - Lithning Talks by Mind Map: PyWeb31 - Lithning Talks

1. Talk.js, Zohar Arad

1.1. about

1.1.1. a project of the FEDs community

1.1.1.1. Front End Developers

1.1.2. http://github.com/RonniO/talk.js

1.2. motivation

1.2.1. Replace Google/Facebook groups

1.2.2. using Node.js

1.2.2.1. server-side JS using V8

1.2.2.1.1. event-based async IO libraries

1.2.2.1.2. evented/async using OS-based libs

1.2.3. Many modules

1.2.3.1. ORM

1.2.3.2. Mongoos

1.2.3.2.1. ORM for MongoDB

1.2.3.3. Redis

1.2.4. Some PaaS vendors

1.2.4.1. Nodijitsu, CloudFoundry, Heroku &c

1.3. Node.js programming model

1.3.1. global entry points

1.3.1.1. public

1.3.1.2. to enable Rails-like auto-load magic

1.3.1.2.1. new Talk...

1.3.2. bootstrapping method

1.3.2.1. loads ORM

1.3.3. this issue applies to Node as well

1.3.3.1. want to keep scopes

1.3.3.1.1. each method call encapsulates its scope variables

1.3.3.2. when invoking functions, use apply

1.3.3.2.1. auto_load.apply(this, [params]);

1.3.3.3. or use bind:

1.3.3.3.1. function(file) { ... }.bind(this);

1.3.4. index.js

1.3.4.1. like __init__

1.3.4.1.1. initialization upon package load

1.3.4.2. in Node, to avoid packages conflicts

1.3.4.2.1. The scope is always limited to current file, not including imported files

1.3.4.3. To overcome this, use exports

1.3.4.3.1. determines what will be imported when doing require

1.3.4.3.2. example

1.3.5. post.js

1.3.5.1. Define DB shcema using Mongoose

1.3.5.1.1. Untitled

1.3.5.1.2. module.exports = DB.Mongoose.model('Post', Post);

1.4. Changes the way you program

1.4.1. Makes you a better planner, not necessarily better programmer

1.5. Q&A

1.5.1. Why mongo?

1.5.1.1. There are 4 main Eventualy Consistent data stores

1.5.1.1.1. Mongo

1.5.1.1.2. Couch

1.5.1.1.3. Riak

1.5.1.1.4. Redis

2. Boorgle, Alon Burg

2.1. About

2.1.1. side project of Alon

2.1.2. boorgle.com

2.2. A service for synchronizing contact information to friends mobile phone

2.3. demo

2.3.1. sign up as a user

2.3.2. your contacts need connect their GMail account to the service

2.3.3. then change some contact detail

2.3.4. this changes the contact details automatically to the Gmail address book of your friends, which may synchronize with their mobile phones