Previous Message
Next Message

:: CSS Code Readibility ::

Sent by Frankie Robertson on 7 May 2008 12:12


On 06/05/2008, Ingo [EMAIL-REMOVED]> wrote:
> Amrinder schrieb am 06.05.2008 15:48
>
>
>  > I was reading this article on Smashing Magazine which shows how to
>  > increase code readability,
>
>
> Sounds interesting, and it's always a good idea to develop a certain
>  style. But then this ...
>
>
>  > http://www.smashingmagazine.com/2008/05/02/improving-code-readability-with-css-styleguides/
>
>
> .. I consider useless bloat up. Especially in times of tools like
>  Firebug. And man, I don't need to search for an '8' if I want to find
>  all instances of #rss. This is what stupid management forces intelligent
>  people into.
>
>
>  > but I have listened to Andy Clarke over Lynda.com saying that one
>  > should save the white space as it increases the file size.
>
>
> It counts for hight traffic sites, but there are other techniques like
>  server side compression. I would refrain from keeping redundant content
>  like one readable and one compressed version - it's bad style.

It's only bad style if you have to take care of both versions. If the
compressed/whiespace impaired version is taken care of by a script (ie
the script automatically updates it whenever the original changes)
then there's no problem with style at all. Surely, as a programmer,
you would understand that the DRY* principal doesn't exclude caching
and duplication altogether, but rather requires that you don't have to
perform the same action more than once.

* http://c2.com/cgi/wiki?DontRepeatYourself

>
>
>
>  Ingo, a programmer ;-)
>
>
>  ______________________________________________________________________
>  css-discuss [EMAIL-REMOVED]]
>  http://www.css-discuss.org/mailman/listinfo/css-d
>  List wiki/FAQ -- http://css-discuss.incutio.com/
>  List policies -- http://css-discuss.org/policies.html
>  Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
>



-- 
http://grimboy.co.uk
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: