Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Neon, or how I stopped hating the prototype and loved the class
Search
chubas
September 05, 2012
Programming
1
110
Neon, or how I stopped hating the prototype and loved the class
For the Ruby GDL lightning talks on 5/9/12
chubas
September 05, 2012
Tweet
Share
More Decks by chubas
See All by chubas
Git, Github y Open Source
chubas
0
25
H/F Prodev - Peopleware > Software
chubas
0
81
Instaband - and the reactive model
chubas
0
29
Introducción a Ruby on Rails
chubas
1
110
Jengas & Legos: Rails as a stack of components
chubas
1
130
Other Decks in Programming
See All in Programming
dbtのドメイン分割による データ基盤の改善とDigdagとの連携
sakama
0
430
Elm Form Validation
bkuhlmann
0
510
Tailwind CSSを本気でカスタマイズする方法
fsubal
14
5.4k
『Railsオワコン』と言われる時代に、なぜブルーモ証券はRailsを選ぶのか
free_world21
1
340
見た目から始める生産性向上
ikumatadokoro
9
1.3k
Domain-Driven Transformation
hschwentner
2
1.5k
雑に思考を整理する技術と効能
konifar
62
30k
Node.js v22 で変わること
yosuke_furukawa
PRO
11
3.9k
Git Lint
bkuhlmann
4
760
Git Rebase
bkuhlmann
11
1.6k
Going beyond Apache Parquet's default settings
xhochy
0
120
Ruby GitHub Packages
bkuhlmann
0
630
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
20
3.9k
Practical Orchestrator
shlominoach
183
9.7k
Infographics Made Easy
chrislema
238
18k
KATA
mclloyd
16
12k
jQuery: Nuts, Bolts and Bling
dougneiner
59
7.2k
How to name files
jennybc
65
93k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
11
1k
How GitHub Uses GitHub to Build GitHub
holman
468
290k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
126
32k
How To Stay Up To Date on Web Technology
chriscoyier
782
250k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
21
1.4k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
79
43k
Transcript
Ne 10 20.179 -245.90 -248.44 [He]2s22p6 0.90 Neon
Or how to stop hating the prototype and love the
class
The philosophy is that it should not try to emulate
other languages, so it preserves the JavaScript good parts, but with a nicer syntax to create classes that ensure interfaces and include reusable functionality as modules.
Class(Breezi.UI, 'Button').inherits(Breezi.Widget)({ ELEMENT_CLASS : 'ek-button', prototype : { label :
'button', init : function(config){ var button = this; Breezi.Widget.prototype.init.call(this, config); this.element.bind('click.button', function (e) { button.dispatch('click', { originalEvent : e }); }); } } });
Javascript for Rubyists Targeted to backend developers who struggle with
Javascript
Does not replace Javascript Just useful to wrap around your
mind, but you still have to learn Javascript. Just the good parts!
https://github.com/azendal/neon