News for hackers. Stuff that matters.
Re:What are CSS Shaders? by vidarh on Tuesday October 18, 2011 @07:37AM (#3124783)
I think CSS is exactly where stuff like this belongs. The more of the page layout that is defined in mostly static ways, the easier creating tools to do the layout becomes. E.g. witness the multitude of websites with tools create CSS3 for various effects.
Re:What are CSS Shaders? by kaylarose on Tuesday October 18, 2011 @08:30AM (#3124893)
And the easier sites become to maintain.

Which is easier, maintaining rounded corners applied via CSS3, the old-school sliding doors, or JS? See also: text shadow, and box-shadow.

Re:What are CSS Shaders? by geuis on Tuesday October 18, 2011 @08:37AM (#3124910)
Could you expound on your thoughts a bit kayla? I'm unsure on your position.
Re:What are CSS Shaders? by kaylarose on Tuesday October 18, 2011 @10:38AM (#3125356)
Let me precede this by saying - JS is one of my favorite programming languages. And I agree, unless you know JS you will not be a well-rounded client-side engineer.

But...

Unless the styles are integral to the functionality of a certain component (usually layout or box model), I prefer to keep the styles where they belong. To me, it is much easier to maintain styles in a stylesheet - especially if you have jr. devs or designers working with you. Yes, CSS easily becomes a big ball of mud. But if you organize it properly - and maybe even use something like LESS or SASS - it is much more maintainable.

It is also the responsibility of a good developer to know when to apply certain techniques. For instance - a simple "grow on hover" is very easy to achieve via CSS animations - with a fallback to non-animated grow on IE etc. But a "grow on hover and then do crazy animations" is probably better accomplished with JS.