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
Objetos en Javascript (Bueno Coffeescript)
Search
Benito Serna
May 24, 2012
Programming
610
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Objetos en Javascript (Bueno Coffeescript)
Benito Serna
May 24, 2012
Other Decks in Programming
See All in Programming
Contextとはなにか
chiroruxx
1
380
AI駆動開発を妨げる技術的負債の解消アプローチ / ai-refactoring-approach
minodriven
15
8.1k
Javaの型とAI時代に型が大事な理由 / java types and type in AI era
kishida
2
160
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.7k
技術記事、 専門家としてのプログラマ、 言語化
mizchi
13
6.7k
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
12
4.5k
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.6k
はてなアカウント基盤 State of the Union
cockscomb
1
1.2k
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
7
1.5k
これからAgentCoreを触る方へトレンドはGatewayです
har1101
6
440
なぜ型を書くのか? TSKaigi2026で改めて考える #tskaigi_smarthr
kajitack
0
180
Even G2とAWSで推しのエージェントを召喚しよう!
har1101
1
140
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
0
34k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
380
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
210
Writing Fast Ruby
sferik
630
63k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.2k
Paper Plane (Part 1)
katiecoart
PRO
0
9.4k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
What's in a price? How to price your products and services
michaelherold
247
13k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
330
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
Fireside Chat
paigeccino
42
4k
Transcript
Objetos en Javascript (Bueno Coffeescript) Benito Serna Innku Un Ejemplo
de
Visita ...
¿Porque no usar simplemente Rails?
No necesito persistencia! Compartir el estado entre el navegador y
el servidor, sería mucho mas complicado!!!
Ahora sí, a lo que viniste!!
Nada Nuevo :) Dividir el código, por lo menos, en
Modelos Y Vistas
Una Vista no, es toda la pantalla. Crear una vista
Para cada elemento Que valga la pena
Y los ejemplos, primo?
QuoteIndexView ProductQuoteItemView
None
None
ProductQuoteDetailsView
None
ProductQuoteFormView
None
None
Las vistas son responsables de • Inicializar Eventos • Render
Templates Por ahora la unica manera forma en que he hecho test a vistas es por medio de capybara. Si alguien tiene una forma de hacer UnitTest digame, por favor :)
Los Modelos son Responsables de la Lógica.
You better test your models
Usa Jasmine
None
Para hacer Test a Modelos
None
None
Creo que el punto ha sido explicado :)
Esta practica, fue tomada de experimentar con Backbone.js y Spine.js
Realmente recomiendo probar estos framewoks (son muy similares). Recomiendo tambien probar Ember.js Y que luego me expliquen :)
Muito Obrigado :)