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
1
550
Objetos en Javascript (Bueno Coffeescript)
Benito Serna
May 24, 2012
Tweet
Share
Other Decks in Programming
See All in Programming
Fast JSX: Don't clone props object #28768
yossydev
1
200
JavaScript Closure
asoluka
0
540
Ruby on Fails - effective error handling with Rails conventions
talyssonoc
0
160
敵対的ポイフル
futabato
0
140
新宿ダンジョンを可視化してみた
satoshi7190
3
420
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
190
Goのエラースタックトレースの歴史と今後
sonatard
10
1.9k
VS Code をプロダクトにどう取り込むか
onomax
1
770
Domain-Driven Transformation
hschwentner
2
1.5k
Elm Form Validation
bkuhlmann
0
520
MicrosoftのPlatform Engineeringガイドを読んで実際になにかやってみた
ymd65536
1
530
WebGLで始める コンピュータグラフィックス入門
heller77
0
330
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
501
140k
The Invisible Customer
myddelton
114
12k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
26
2.3k
What the flash - Photography Introduction
edds
64
11k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
20
1.8k
Debugging Ruby Performance
tmm1
70
11k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
188
16k
Testing 201, or: Great Expectations
jmmastey
30
6.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
32
47k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
660
120k
Fireside Chat
paigeccino
22
2.6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
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 :)