Skip to content

Commit 00ab15e

Browse files
committed
add notes for Bridging the Gap - Using JS in Rails presentation
1 parent 2fcb1e4 commit 00ab15e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
BRIDGING THE GAP - USING JAVASCRIPT IN RAILS TO WRITE DRY RICH CLIENT APPLICATIONS
2+
3+
JS is cool and great, but can have some drawbacks.
4+
5+
Problem: repitition of code in JS and Ruby:
6+
* Ruby in Javascript:
7+
* doesn't really work, but fun for a toy
8+
* Javascript in Ruby:
9+
* Ruby Racer - uses V8 js processing engine in Ruby
10+
* easy to use
11+
* you can add new js functions by writing Ruby class methods
12+
* you can write js functions that can be called by Ruby (using V8)
13+
14+
Idioms / Structure
15+
* The Javascript Way:
16+
* Standard Library for JS:
17+
* CommonJS, CommonJS Modules
18+
* Nodejs, V8
19+
* CommonJS Module:
20+
* exports a public API
21+
* You can use Ruby modules to write a CommonJS modules (and use them with IncludeJS)
22+
23+
Future of JS and Rails:
24+
* not sure if new include sytanx for Rails/JS/CoffeeScript is the best way to go.
25+
26+

0 commit comments

Comments
 (0)