Results 1 to 25 of 78
Mar 23, 2012, 15:12 #45
- Join Date
- Nov 2009
- Keene, NH
- 23 Post(s)
- 0 Thread(s)
There's this whole trend of turning Knuths "premature optimization is the root of all evil" into "optimization is the root of all evil" -- a sort of missing the message; You just have to travel into the PHP section of these forums or look at the majority of stuff written in jquery to see this in action... There's this pervasive attitude of "just throw more hardware at the problem" across all of IT -- Moore's law likely being the biggest contributor; but Moore's law is breaking down as the "clock speeds pushing into microwave frequencies" limit and manufacturing process limits have shown the past five years... where instead of doubling we've seen maybe 40%?
The use of Moore's "hardware doubles quickly" has been used as an excuse to justify bad coding, bad practices and outright bloated garbage for about a decade now, and it gets worse year by year... to the point where -- again -- I'm a little annoyed that most websites today don't run as well on a 2.93ghz i7 870 with 16 gigs of RAM at 22mbps as they did a decade ago on a 1ghz thunderbird at 3mbps or eighteen years ago on dialup on a 486/66 running Windows 3.1.
You want to impress me, make your stuff lean and fast -- You want to see me and many others bounce because we're sick of broken/bloated/idiotic crap blowing megabytes on delivering the 4k of plaintext we're actually after... go ahead, put jquery on EVERYTHING, let the PSD jockeys piss all over the page with their fixed widths and fixed heights, continue to use outdated coding methodologies or worse, the re-introduction of that pointless code bloat from HTML 5, and all the other idiotic bull that just gets in the WAY of delivering content to users.
@itmitica -- you made some good examples of where scripting makes sense and SHOULD be used; I'm ok with it there though again, I still say MOST of that sort of thing would be smaller/faster WITHOUT jquery... That's examples of where scripting makes SENSE. The problem is people seem to be throwing scripting at EVERYTHING for little good reason -- jquery just exacerbates that problem since it's a fat bloated library of crap that by itself is 3/7ths COMPRESSED of what I would allow for an entire page template (HTML+CSS+SCRIPTS+IMAGES)...
Really if you have a normal page of 4-8k of plaintext, 6 to 8 content images... and that's about it for CONTENT, there is no reason for your total HTML+CSS+SCRIPTS+presentational IMAGES (notice the distinction between content images and presentational here) to break 70k, with 140k being the upper limit I'd ever allow. With an ideal of 70k, that 32k compressed before you even do anything useful piddles away the ability to do anything else useful with the page.
I think one of the reasons all this nonsense grinds my gears is I've been on a retrocomputing kick and thinking back to the past... In the mid 90's I was VP of IT at one of the six corporate offices of a major national insurance chain. (Don't take that vice presidency too seriously, they handed out VP's the way the Army does enlisted ranks.... here's a promotion and a pay increase to try and make sure you re-enlist --- please ignore how badly we abused you at your former rank.... until your military consists of 5 Sergeants to every Private). At that time we had a 500 user license netware 3.12 server, 486/66 handling around 15,000 record requests from ~100 users every fifteen minutes... each record averaging ~3k. Even on that limited hardware it was plenty responsive...
Think about that -- that was over 1mbps, with a mix of coax (10b2) and twisted pair (10bt), and about half the machines were remote booting off that 486... The database was written in borland paradox so the scripted parts were interpreted...
So why in blazes does a forums that manages around 100 users active in a 15 minute period (instead of lying about users online by tracking for an hour or more, right Sitepoint?) on mySQL and PHP which are supposedly SO much more advanced with their 32 and/or 64 bit goodness choke out a dual multi-ghz XEON?!?
Oh, wait... I know...
693k in 31 files... that's 50k of HTML, 16k of images, 426k of scripts (FOR WHAT?!? that the server has to spend time compressing to 126k), 157k of CSS (FOR WHAT?!?) that the server wastes time compressing to 28k... all to deliver what? What?
6.41k of plaintext -- RIGHT. Oh, but the problem is likely with the mysql server... RIGHT...
Noah: What's going on? How come you want me to do all these weird things?
God: I'm going to destroy the world!
Noah: Right.... Am I on Candid Camera?