Defer view logic to CSS whenever possible.
Keep data in the HTML.
Ugg, hate the idea of having logic in my CSS. CSS is for style information. How things should look, not what should be shown. "whenever possible" also rings alarm bells for me. There should be one place for logic.
HTML is also View if you ask me and I like to keep my Model separate from my View.
I dont know what people have against JavaScript. I say write more javaScript and less HTML and CSS.
This made me angry. Why does this page need any JavaScript whatsoever? Why doesn't it just use a plain ol' HTML form and some CSS?
I've been trying to come up with a benefit to the user for having javascript on the page and am drawing a blank.
>I dont know what people have against JavaScript
It's the PHP of this generation of web developers. A bunch of guys with inflated egos cramming tens of kilobytes of js into pages that need zero, all for a worse UX.
jay_kyburz|11 years ago
HTML is also View if you ask me and I like to keep my Model separate from my View.
I dont know what people have against JavaScript. I say write more javaScript and less HTML and CSS.
na85|11 years ago
I've been trying to come up with a benefit to the user for having javascript on the page and am drawing a blank.
>I dont know what people have against JavaScript
It's the PHP of this generation of web developers. A bunch of guys with inflated egos cramming tens of kilobytes of js into pages that need zero, all for a worse UX.
markuz|11 years ago
For toy projects like this, I guess this is fine. But lets get real....