-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Moin,
On Wednesday 07 February 2007 22:38:48 Mark Clements wrote:
"Evan Martin" <evanm(a)google.com> wrote
in
message
news:9f43d19d0702071316k29d43f31y3a2cfe8a18d7859d@mail.gmail.com...
On 2/6/07, Brion Vibber <brion(a)pobox.com>
wrote:
[snip]
For example,
looking at
http://en.wikipedia.org/skins-1.5/monobook/main.css?55
it appears that comments and whitespace comprise more than 20% of the
bytes in the file:
> maincss.gsub(/\/\*.*?\*\//m, '').gsub(/\s{2,}/, ' ').length /
maincss.length.to_f
=> 0.79468590655243
You could likely do better with a real CSS parser.
However, that will make debugging very hard indeed. Not sure how big a
consideration that is, but I know that I have often looked into the MW
stylesheets to see how particular stylings are acheived when making my
own css rules.
But shouldn't be a CSS-tidy being able to parse the file and spit it out
nicely formatted again?
best wishes,
tels
- --
Signed on Wed Feb 7 22:33:58 2007 with key 0x93B84C15.
View my photo gallery:
http://bloodgate.com/photos
PGP key on
http://bloodgate.com/tels.asc or per email.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone." - Bjarne Stroustrup, inventor of the C++ programming
language
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iQEVAwUBRcpF+3cLPEOTuEwVAQLazgf+ObEtFUhNB/KYdcAANcV4KoW7G29by85L
1wERkBtRiHYHe2IWhMuNEkTVj1055qg0cF82O7eYIo7Iq90TDxTjpPvkgtCXSwe6
1peSIKFREffyW8Af0M769M+4GuQsxDj5kdQ8E/UDPKyriESxE1k3bOrFdb2hAh+T
tj/sl4MsZZpmL6pAUmb/V11pNSSRxXpC+htTY/GF2d/ta19NBxk0NMA2BnYfyeYs
wQCp57hPFP2AbaOOdBD7PsWi2HKqA1C2sRYjb2NZ2NsVfB5QcNb+BgNTrfQWsUqa
m5ANDYE5IsjfwXrW9fhCkPVs/bajaKF8l8o/TYqdNlDyAJgueClP/A==
=bLwo
-----END PGP SIGNATURE-----