Inperfect google
Inperfect google
just for the kicks of it, i took the source of www.google.com, and cleaned it up so it was readable, just to see how they did thing...
I was somewhat surprised. You should think that a company as big as google, which main atraction is their website, would make certain everything is in order...
That is most certainly not the case.
1. They havent even specifyed a doctype which is need by the browser, otherwise i wont know which standard to use.
2. I must assume that the code was writen by a script as the whole thing was in one line.
3. Imbedded css and far to many unneeded inline stylings.
4. lots of improper code that "might" work.
5. theres much more but my english vocabulary extents only so far.
Bottom line, how can this be happening? We have all seen the site, it is VERY simple and it would take very little time and effort to make things right. Google certainly have the recourses to do it properly.
Im confused.
Keep this in mind if you are ever gonna write a browser for your OS or something simular, google would probably not be best site to test it on...
Anyway, i intent to write an email to google, im just that kinda guy, but so far i have been unable to obtain an email address.
I was somewhat surprised. You should think that a company as big as google, which main atraction is their website, would make certain everything is in order...
That is most certainly not the case.
1. They havent even specifyed a doctype which is need by the browser, otherwise i wont know which standard to use.
2. I must assume that the code was writen by a script as the whole thing was in one line.
3. Imbedded css and far to many unneeded inline stylings.
4. lots of improper code that "might" work.
5. theres much more but my english vocabulary extents only so far.
Bottom line, how can this be happening? We have all seen the site, it is VERY simple and it would take very little time and effort to make things right. Google certainly have the recourses to do it properly.
Im confused.
Keep this in mind if you are ever gonna write a browser for your OS or something simular, google would probably not be best site to test it on...
Anyway, i intent to write an email to google, im just that kinda guy, but so far i have been unable to obtain an email address.
This was supposed to be a cool signature...
Could you say that again? And if you honestly believe you are correct could you then explain it to me?pcmattman wrote:There's a good reason: speed.
Very little work has to be done, and as i see it, speed is not a factor at all, nomatter how you define "speed".
This was supposed to be a cool signature...
-
- Member
- Posts: 2566
- Joined: Sun Jan 14, 2007 9:15 pm
- Libera.chat IRC: miselin
- Location: Sydney, Australia (I come from a land down under!)
- Contact:
They should really have a doctype, I'll give you that.1. They havent even specifyed a doctype which is need by the browser, otherwise i wont know which standard to use.
Is there anything wrong with a script writing out a page? Saves editing time later as well.2. I must assume that the code was writen by a script as the whole thing was in one line.
Embedded CSS is faster because the browser doesn't have to send another request for the CSS file. The inline styles may be required for compatibility some obscure browser or older browsers.3. Imbedded css and far to many unneeded inline stylings.
Example?4. lots of improper code that "might" work.
Sorry i formulated that the wrong way. No, it is quite allright to use a script to generate the code, often there is really no way around it, but in this case it is just overkill and with unfortunant results. fx.pcmattman wrote:They should really have a doctype, I'll give you that.1. They havent even specifyed a doctype which is need by the browser, otherwise i wont know which standard to use.
Is there anything wrong with a script writing out a page? Saves editing time later as well.2. I must assume that the code was writen by a script as the whole thing was in one line.
<tag thingy="37">
<tag thingy=37>
is obvious different, however tags of both form are found in the source, and that just plain weird.
You are probably right regarding this embedding, but really, it shouldnt be nesacery to consider this, and regarding the inline stylings ill have to disagree, there are smarter way to these, probably non existing, problems.pcmattman wrote:Embedded CSS is faster because the browser doesn't have to send another request for the CSS file. The inline styles may be required for compatibility some obscure browser or older browsers.3. Imbedded css and far to many unneeded inline stylings.
Nah, i dont want to go through the code again, but it is a fantastic example of "messy" and "inproper" code, the kinda code a newbie might come up with.pcmattman wrote:Example?4. lots of improper code that "might" work.
They use obsolete tags like <nobr> and use in large amount to structure things. They also use tables which you wouldnt expect.
Anyway, it shouldnt be very hard to convert it all to validating xhtml 1.0, even i could do it, the question is why google havent done it.
Remember that its probably the most visited site... ever...
This was supposed to be a cool signature...
Read my post - It's all about browser compatability. Do you think they'd use deprecated tags like <nobr> if there wasn't a good reason? The point is that the majority of browsers out there (most are on embedded devices) do not support the latest standards, and on those that do many recieve suboptimal performance. Using tables means the complex CSS2 box model doesn't have to be adhered to. This is also the reason you don't see much Web2.0 crap on googles main pages, only on gmail etc.
yes of course browser compatability, but that is exactly why we have the standards.
admitet, xhtml 1.0 strict might not be the best way of doing thing for a site as whidely used as google, but there are older standard too.
And even google cant be expected to support 10 year old browsers.
admitet, xhtml 1.0 strict might not be the best way of doing thing for a site as whidely used as google, but there are older standard too.
And even google cant be expected to support 10 year old browsers.
This was supposed to be a cool signature...
You give good argument, but let give you (i think) a good counter argument.
What is one of the very first things you do when developing a browser?
I know what i would do, and it wouldnt be: just make it all up my self and hope that the rest of the world complies.
What is one of the very first things you do when developing a browser?
I know what i would do, and it wouldnt be: just make it all up my self and hope that the rest of the world complies.
This was supposed to be a cool signature...
Who said that there would be any need for CSS2?JamesM wrote:Low-power embedded chips just don't have the processing capacity to deal with CSS2. It all sounds great until someone hands you an ARM assembler, a test machine and an ARM assembly language manual!
I actually have thought about investigating ARM as it seems to be the only hardware that meet my requirement regarding size, power consumption and prise, but i am uncertain as to where the limitations lie, not in how fast the cpu is, i believe i can affort something faster than 50mhz
This was supposed to be a cool signature...