One-Line Website
simeramov.com
simeramov.com
There's a reason we do image, css and javascript includes in HTML. This idea undoes all that.
I can't imagine why the author, clearly a bright guy, went out of his way to build this thing.
BTW, everything is separated before publishing. CSS is one file, reset CSS is in another, there is a HTML template etc. Easy maintenance off line, online and published does not matter. It is similar with dynamic publishing.
As for the inefficiency we all know HTTP requests are the biggest enemy. All my pages are exactly one request. With everything being minimized, gzipped and unused CSS selectors stripped I do not see how this can be more 'inefficient'.
I understand the fully-packed 1 request situation is great for serve-time and page-rank, and after it is all said and done its probably the better solution. This is a slippery slope though because its possible to do too much of that and not enough real work.
The bigger the site, lesser the point in all of this (and harder). It is a small personal site and I enjoyed the process of doing all of this. Makefile is nice to have in the end, which means it was a one time investment.
Unless you have it set up in a certain way - it does require one more step. When you save the content you still have to run the makefile and then upload it. Even though this could be done in a batch script, just looking at the problem you are trying to solve (run a personal site/blog), it seems rather over-complicated.
The virtue and delivery of the idea is cool though - never discounted that. I just wanted to play devil's advocate on the practicality - which you seem to agree that it isn't really practical.
It can also be integrated with DVCS post-hooks.
As it stands, you're re-sending all your images and all your css and all your javascript to every one of your users every time they ask for a page on your site. So if I like your blog and read 50 articles, you've sent me that stuff 50 times over.
If you come to my site and flip through 50 pages, you'll get one css file, seven images, and one javascript file from the first page you request, all minified, gzipped and compressed just like yours is. The only difference being those extra requests, which might end up faster overall since they're to a CDN endpoint at your end of whatever continent you're on.
For the next 49 requests, all you get is content.
For bigger advanced sites, yes, you are right.
Up to certain point, this is 'better', from the certain point, it is not.
Still it's very cool, especially for a minimalist blog.
Anyway, nice job, and hooray for unintended uses of open source code.
But the result is what it makes all worthwhile.
BTW, I was doing all the optimization you were doing on some of my sites, but I always missed some nice ways to automate. Imagine the happiness when I stumbled on your hg.diveinto* repositories. A candy shop.
So, thank you.
On the website, it is clearly stated I am a minimalist and perfectionist. The URL slug of this article also reveals something :)
As for the title, it might be perceived as catchy. But I like nice titles on my sites and the fact I self publish entries (because of the HN blog comments experiment -- which I am happy with) makes it even harder.
Is it not a one-line website? :) Short and accurate title I would say.
I don't think I'd call something that was built in 3 languages, one with two versions, as minimalist.
Much like in life, where minimalism often involves more work. It is harder to design something simple, then something complex.
One tip on the gzip parameters, I use -9cn. The 'n' flag is important as your gzipped files will not appear corrupted by many gzip online checking tools. E.g. everything is green: http://redbot.org/?uri=http%3A%2F%2Fsimeramov.com%2F2010-07-.... Took me a while to figure it out. I believe it also benefits rsync.
There is one serious downside to all this reckless optimization -- I don't even notice the bandwidth RRD graphs changing if some page hit the HN front page or get featured elsewhere. The pages are so small the graphs almost always look the same, i.e. basically flat :) All the bandwidth is from me backing up my home dir to server.
I've just touched a favicon.ico. Zero byte, but at least it's not 404. I might do the same for robots.txt. Thanks.
body {border-left:18px solid #ebf7fb;}
:)
Oh, and an RSS feed would be great, too!
html, body { height: 100%; }
After which you end up with padding issues which you need to workaround with some stupid methods.Got tired of it, put background image instead and simplified the CSS further :)
As for the RSS feed, it won't have any.
html {border-left:18px solid #ebf7fb; height:100%;}All kinds of issues will arise.
This could be some minimization trickery that assumes most browsers can deal with malformed html documents, but [slams fists on table] IT'S NOT RIGHT, I TELL YOU!
I suggest you run it through and see for yourself.
As a design/technology exercise, this is interesting, but it is not usable in any real-world application.
Edit: The validator works now.
This concept could be progressed into a proxy server!
Maybe has some usability issues but it was a minimal and elegant solution to a problem.
Minimalist trade-offs :)
Also, my name is in every page title.