25 points · by farrellkramer · 12y ago · 53 comments
Quite the opposite. If you optimize the downloading portion of the whole HTTP transaction because of a high bandwidth/low latency connection then the server time (to generate the page) starts to be more and more important.
As connections get better increased pressure is placed on web servers. And there's another subtle effect: faster web sites get more visitors. So if you make your site fast you get more page views.
You can scale anything,just that scaling is expensive.It's stupid to pay for computation if all one needs is serving blog posts that hardly change.
If anyone is interested I recently launched http://www.webhook.com as a way to have both words. Data is stored in a Firebase so you get clean JSON data so that you don't need to deal with all the bloat for simple content sites. We're currently cleaning the code up and will have it all open sourced by the end of August.
However, I run my sites on my own server. Are you planning to offer a version that you can install on your own hardware?
I've rarely found this kind of simplicity to be stifling. For the first 1,000 posts, you can compose and edit in plaintext with minimal difficulty in "envisioning" the post, as you might in a rich text editor. Even better, you don't have to deal with the eccentricities and inefficiencies of RTEs...and if your blog is on a focused topic, where you find yourself re-wording terminology and grepping frequently...it's a simple Ctrl-F in Sublime Text.
Even the HTML and CSS parts are simplified, since you only have to worry about the elements needed to keep a post in single layout (and maybe a sidebar column)...and editing CSS in your editor of choice is far less cumbersome than the out-of-the-box way of WordPress.
The static blog generator (at least Jekyll and Middleman on the Ruby side) then does all the clunk that would be tedious if you were to just upload plaintext to the web: namely, the ordering, timestamping, and internal-linking of the posts, as well as categories/tags, and things such as SASS compilation...and then it's just a CLI-task to update the site on S3.
Sure, after a 1000 posts...you'll see the need for a CMS to better organize and package things (not to mention the ability to update a post without regenerating the entire site)...but that's a long ways off for most would-be bloggers. And if you need to convert to non-static, well, all the metadata that was used in static-generation is easy to parse and import into any blog system.
On a day to day, or week-to-week basis, though, I find that it's the small things that can make a difference...the thought of logging into my old WordPress blog, waiting for my Dreamhost shared hosting to take 1-2min to load up the post-editor page, and then copy-pasting from where I wrote my drafts into the rich-text-editor and hoping nothing got kludged...that's enough to make me not blog...which means I might only blog when I really, really care...and if you only write when you "really, really care", you're just not going to be writing enough to be someone who can do it consistently well.
From the server's point of view, it could be all static (both the compressed .js app and the json files are just files on the filesystem that can be cached, no database needed), but you can still update the site dynamically through an API endpoint. The API endpoint can trigger server-side code that writes new JSON files out appropriately, but for all non-comment-posting, non-blog-writing traffic, it's all just plain files.
Of course, a decent caching layer at any point can make any dynamic server behave like this, but it'd be cool to have your entire blog work without any code running other than a simple nginx/apache config that serves out static files (and reverse proxies to you app for any POST requests).
Actually the more I think about this, the more I think this could be a fun weekend project.
I don't mean this in a hipster way at all.. but static blogs have been around and popular for a long time. It's been at least 5 years since Jekyll got popular which is one of the first static site generators that I remember catching on. There were surely ones that came before that that I hadn't heard of. I was building blogs and websites with Hyde (a Python clone of Jekyll) in 2009.
What's old is new again?
It feels kind of silly to call this a movement :).
Your post made quite a lot of emphasis on "speed" but the first argument I checked was false. I used static site generation and it's a very poor choice for your personal website.
Works fine to create a Readme on github. Sucks if you use it to manage your personal website (brand).
[1] http://pothibo.com/2013/11/rails-journey-dispatch-to-the-con...
I suspect you didn't try with a fresh cache for your blog. If all your JS, CSS, etc was cached locally already that would explain your "performance advantage" to me.
- Refactor your posts' tag? You need to manually edit all your post one by one.
- Refactor your theme? Same thing as above
- You can't have dynamic content, ever.
Not true. OP himself hosts his source on Github, so not only he has access to it everywhere, as he can edit it from any machine with a browser.
- Refactor your posts' tag? You need to manually edit all your post one by one.
- Refactor your theme? Same thing as above
Not true. Static site generation engines like Pelican (which OP uses) can do it for you.
- You can't have dynamic content, ever.
You can with JavaScript (or by integrating a third-party service, though that's cheating a bit).
> - Can't edit anywhere beside the machine that has your source & access to server.
Eh? Use CI and push via Git & a Markdown editor? They have apps for these on your phone? Or just GitHub?
> - Refactor your posts' tag? You need to manually edit all your post one by one.
I can replace all in an entire directory of documents in ~5 seconds. This is a non-issue.
> - Refactor your theme? Same thing as above
I modify two files to refactor all my blog posts.
> - You can't have dynamic content, ever.
Eh? AJAX? Allows you to make calls to another api/domain to throw in dynamic content?
I actually only see downsides:
* I can't write from another computer easily, or a tablet, or a phone...
* I can't easily add options like a search engine, comments (disqus is pretty bad for SEO I presume), most read post, etc...
* I have to use a setup everytime I want to write. I have to open a text editor, I have to launch a terminal and go through command lines to generate the blog again and I have to upload/commit,push the new generated files.
Login to Github, edit file?
It could certainly be faster to load since a server can push out static files far faster and at a higher rate than compared to say Wordpress/PHP (even with heavy-caching of pages).
I think that feeling of speed is because most static blogs don't have a lot of images, javascript, etc...
The only reason I can see for bothering with static blog software is because that in itself might be fun. At least you have something to blog about...
They are as flexible as you have the capability to make them be. I think that poses a big problem for most.