share
Stack OverflowWhy does every man and his dog want to code a blogging engine?
[+137] [29] cletus
[2009-01-23 05:09:54]
[ blogs ]
[ http://stackoverflow.com/questions/471940/why-does-every-man-and-his-dog-want-to-code-a-blogging-engine ] [DELETED]

Cal Henderson (of Flickr [1] fame) gave a keynote "Why I hate Django" [2] at DjangoCon 2008, which is well worth a watch for many reasons. In one bit he asked how many of the audience were working on blogging engines. So many people put their hands up in fact that of those that didn't he asked "Why aren't you?"

Anecdote aside, I see so many questions and answers here that relate to building blogging engines I just have to ask, since I don't get it: why are so many people writing what surely must've been written countless times already? If you are writing one such engine, why are you? Because I seriously don't get it.

(3) Thanks for posting a link to that video... quite entertaining! - Bob Somers
(151) I can't speak for my dog. - Nosredna
(9) Like your dog isn't a closet Ruby fan...dog? You aren't fooling anyone. :) - cletus
(4) Any serious programmer who is worth anything writes his blog on his own blog engine. How else would he know what he's talking about. (warning: sarcasm) - Alex
No kidding Bob - it's hilariously unpretentious. Haven't watched more than a few minutes, but recommend it. - Glytzhkof
(24) Look at it this way: at least every one isn't making a version control system! - RCIX
(3) stackoverflow.com/questions/18428/… - Patrick McElhaney
(2) I am a but confused why programming related questions here get voted to be closed, but this question is still open. WHat is wrong with this picture? - sarsnake
@RCIX Haha, funny you mentioned that... I am actually working on my own version control system from scratch. - Stunner
@Stunner: It was sort of an in joke for me because i was making my own VC system at the time :) - RCIX
All I can say is: "why have a blog, and bark yourself?" - unsynchronized
[+362] [2009-01-23 05:11:56] Jeff Atwood [ACCEPTED]

Nobody told you? Writing a blog engine is the new Hello World.


(24) oh no... please no. - ewakened
(12) I've heard it's a form of procrastination in and of itself. - Eugene Yokota
(1) Pithy. I like it. :) - cletus
(30) actually this is true, most frameworks like codeigniter and cakephp actually have tutorials that show how to build a blogging engine using their framework just like for the programming language there are tutorials on how to do a hello world program - Click Upvote
(7) @Click - Same with Ruby on Rails. The tutorial on the website is making a blog. - Ryan Thames
(2) I hope not... of course for the longest time my "Hello World" was coding up a "Sierpinski triangle" - Matthew Whited
(117) Of course, in Jon Skeet's new language the entire program for a blogging engine is "b". - Tom Hawtin - tackline
(1) +1 just to give Jeff another gold. - Adam Bellaire
(1) I think you can only consider yourself half-man if you haven't :p - Brendan Kowitz
(4) Didn't you get the memo? - pokstad
(40) if anyone other then jeff commented this, it would probably only get 1 or 2 up votes at most. - Zac Bowling
(9) Please wake me up when Facebook will be the new Hello World. - Tom Wijsman
(2) @TomWij Like an entire social networking site? I don't know about that, but I feel like I've seen "Twitter Client" used as "the new Hello World" in a couple of tutorial videos. - MatrixFrog
(5) @ZacBowling: if Jon Skeet had posted it it would have been voted up just as much. - Chris Morgan
1
[+171] [2009-01-23 06:58:05] Christian Nunciato

Honestly? I think it's probably some combination of the following:

  • It's a relatively well-known, well-understood domain,
  • It still hasn't been perfected (and amazingly, it hasn't),
  • It can be as simple or as complex as the developer wants it to be,
  • It's not too complex, though; most devs can handle the basics,
  • It can incorporate just about every kind of content the Web can deliver,
  • It's a great way to continue developing one's skills,
  • It's much more satisfying to use something you built than someone else, and
  • Who knows -- it might even make you rich someday.

I'm definitely one of those developers, though. I admit it! And I'm a bad case, too, because I keep writing them over and over and over again, probably because I'd rather be coding than blogging. But the biggest reason, for me, is that the services out there really do suck (IMO), and it's hard to sit back and just accept that without imagining ways it could be done better. That's usually how it gets started.

I wrote a bit about this [1] last year actually, after quitting TypePad (it just wouldn't do what I wanted -- i.e., 2, above) and rewriting the site I'm actually, right now, in the process of rewriting yet again, for probably the fifth or sixth time over the past seven or eight years, doubtlessly for the last time:

I could never shake the nagging irritation I felt when I couldn't get TypePad to do something I wanted, however trivial. Why, again, couldn't I search my own freaking blog? To find an old entry, I had use either the next/previous links (lame), category links (assuming I'd bothered to categorize the entry I was looking for) or even worse, the proverbial "archive" links, organized descendingly as they are by date, hoping I might get lucky and choose the right month-year combo during which I'd happened to submit the entry in question. And why couldn't I just create a new, non-blog-oriented page containing some other kind of managed content, like my reading list, or a collection of movie reviews? Sure, I could succumb to the rigid structure of the TypePad system and simply "tag" all movie reviews as "movie-review" and dump them into the blog alongside everything else -- but why should I have to do that? I was an engineer, for God's sake -- I'd done this before. A blog was just CRUD -- a web app in its simplest form. Why hadn't anyone gotten one right, after nearly a decade of requirements gathering?

Screw it, I thought. I'm going to do this myself. Again.

Everyone's reasons are different, but most folks probably do it because they can. Spolsky said something about this a while back, in a podcast I think, or an interview -- something about how the first thing every Web developer wants to do is build an image-upload service.* Why? It's what they know. And it's something they'd use themselves, if it were done the way they believe it should be done.

To be fair, though, a good commercial blogging service? That's a hard problem. If it weren't, it really would've been done by now, and it hasn't. Not perfectly. Anyone can build a CRUD app for himself, select *, sort by date, done deal. Building a good, full-featured personal-expression engine, though, intended to serve hundreds of thousands or millions of users? Done right, that's a much more complicated undertaking than one might think.

* See? Told ya [2].

[1] http://chris.enunciato.org/entry.aspx?id=459
[2] http://stackoverflow.com/questions/475496/what-would-you-include-in-an-image-management-sharing-system

(9) Amen to preferring coding over blogging. I pretty much only keep my LJ account to comment on other people's posts and check up on a couple communities these days. - Kaji
(9) No, we write our own blogs, then actually use them to blog. If you aren't dogfooding, you either have self confidence issues or you're a horrible coder. - Sneakyness
@Sneakyness +1 Insightful ;) - Christian Nunciato
(4) @Sneakyness, I find blog coding much more fun than actually giving it content. - Earlz
(1) @Earlz, maybe you're just boring? ;) - Sneakyness
(1) Agree completely. Mine is on rewrite #7. - tsilb
@Sneakyness, or maybe you have other code to write, or find the concept of reinventing a perfectly fine wheel pointless, or ...? If your blog is about writing blog software, then I agree with you. Otherwise, no. - Dane
2
[+54] [2009-01-23 05:15:50] JaredPar

I don't know about blogging engines, but I've written other pieces of "worthless" software. Namely IM clients and compilers.

Why did I build those? Partly because I'm addicted to programing. Mainly though because when I find a technology that I use constantly, I quickly become obsessed with it and start to get seriously annoyed by its flaws.

Eventually, the same thought will occur: "You know, I could do this better..."

Normally, especially with compilers, I realize that no, one person alone probably can't build an overall better product. But there are one or two great features that I could build on top of an otherwise mediocre product. And programming is fun, so why not build a product you can use for your daily tasks.

I very much liken it to guys I grew up with who were really into cars. They constantly worked on and rebuilt portions of their cars. You could easily argue "why bother, everyone is building a car". But for them it was fun to drive around a piece of equipment they worked on. Programming a blog engine isn't much different.

Unless of course, you don't blog :)


(2) Well, you can leard a lot from IM clients and compilers. I'm not sure that blog engines, which are little more than YACA (Yet Another CRUD Application) are that instructive. There are probably better YACA instructional apps than blog engines as well. - BobbyShaftoe
oh good to see like minded people ... - Manoj Doubts
(3) "Normally, especially with compilers, I realize that no, one person alone probably can't build an overall better product. But there are one or two great features that I could build on top of an otherwise mediocre product." So why not submit those one or two great features to an existing open-source project? If it's good, the project will accept your changes (hopefully) and then zillions of people will be using what you did. Not that you did the whole application but you can point to one part of it and say "I did that!" Not possible with cars, but potentially more rewarding, it seems to me. - MatrixFrog
@BobbyShaftoe there is one thing you can learn a lot when developing your blog engine: you can learn a new platform, be it a language, a framework, a database... When you are learning a new platform for real, what you need is exactly a simple, well understood but consistent problem to solve. - brandizzi
(1) @MatrixFrog So why not submit those one or two great features to an existing open-source project? Developing code in the same level of quality of a open source project is usually very hard: you should read a lot of documentation, follow various guidelines and convince your fellow programmers that your change is worth the patch. This is way harder than you think to someone from outside a project. - brandizzi
3
[+39] [2009-12-30 19:39:15] Even Mien

We've been guilted into feeling like every developer should be writing a blog. The fact is that most of us are more comfortable writing a blog engine than actually writing a blog.


4
[+35] [2009-01-23 05:24:39] Spencer Ruport

One thing I find frustrating about the developer profession is how seldom I can say "Look what I built!" to the common person and they can grasp the concept and say "Wow that's pretty cool!" I can write a multi-threaded socket server class which I can use in almost any project but no one, other than a fellow developer, and perhaps only network developers will find it all that interesting.

Blogs, chat clients, chat bots etc all seem to be the kind of programming projects developers write to show off to their non-technical friends.


(27) true (asghhfh jeff if you see this remove the 10 char limit in comments adhfjghkhgfklejlkw) - Click Upvote
(1) I completely agree with that. We tend to develop some thing which can be shown to others to get applause. - Manoj Doubts
(1) hmm, not really, it's a way to get ones hands down and dirty with web development. you can't just into a big project, you have to start small and steadily climb the ladder. - hasen j
(19) @Click Update: There's a better way to show your approval which doesn't take up the precious space of a whole comment - Vote UP! (I just had to say this.. ;) - Miky Dinescu
i wrote a multi-threaded multi-socket server for a U of T programming assignment - ReachConnection
(1) I wrote a multi-threaded multi-socket server for a dollar. It crashed. - Sneakyness
I've never hoped that anyone could understand what I do. I've always gotten blank stares. I'm just in a very different world than those around me. So no, I don't blogging engines. But I do like to host my own sites and mail and files. F03K the cloud... LOL! - toor
Vanity. (the character limit cannot hold it is too late) - Andrew Grimm
5
[+28] [2009-01-23 06:23:26] circuit breaker

If you saw the security flaws most blog engines have had, you'd write your own too.


(10) Upvoted for truth, but then again, just because noone knows about them, doesn't mean they aren't there in your own work (but then again, maybe they aren't!) - Matthew Scharley
(3) The one advantage here is that the flaws in well known blog engines are well known... If you have security flaws in your own blog engine that no one else uses, then at least that makes the person trying to exploit your site put in a little bit of work to find the flaw rather than just google for "Security Flaws In BlogEngine X"... - jeffa00
6
[+22] [2009-01-24 06:43:08] Colin

I rolled my own blogging engine once, for a few reasons:

  • I wanted full control over the website design
  • I didn't want to use a database (just flat files)
  • I needed something very simple, easy to hack, and easy to back up
  • I was the only one making posts, and I prefer to use HTML over WYSIWYG [1]
  • My server was very low-end, so the software had to have a low memory footprint
  • This kind of blogging engine is so easy to code, it was actually faster to implement it myself than get another one working to my specifications.
[1] http://en.wikipedia.org/wiki/WYSIWYG

(7) +1 for not liking databases - RCIX
Totally agree, especially when you consider the first and last points. Lack of documentation of existing projects usually makes it harder to develop a website template (who wants to have a personal-expression platform using the same style sheet as 30,000 other people?) for the blog than writing the entire thing from scratch. - André Caron
7
[+21] [2009-06-20 03:24:18] david priest

Because it's about the easiest thing to create that has practical value, and can form the basis for one's design approach, conventions, structures, and etceteras. It becomes part of one's toolkit. Same thing carpenters do: build themselves a toolchest.


(1) I agree. It's sort of trying out the capability of the framework which will benefit us too. So blog engine is the way to go. - jpartogi
8
[+19] [2009-08-31 05:32:55] Sam Saffron

Dogs do not write software, they bark and eat bones.

Why did I write my own blogging engine:

  • It's a great way to learn a framework, the domain is well defined. The problem is well defined.
  • I got tired of the way blogging engines messed up my posts and embedded ugly formatting (my blog entries are stored in textile in my database now)
  • I feel very comfortable rolling out changes and fixes, I know where everything is.
  • I know it's fast, I know where all the bottlenecks are.
  • I needed to migrate my blog anyway because I didn't want to run a Windows virtual host anymore.
  • I re-use portions in other projects.

Was it worth it? Indeed! Is it the prettiest blog around? Certainly not.


(36) Your dog sucks. Mine just wrote me a new driver for the robot verison of him I just built. - Sneakyness
9
[+17] [2009-01-30 19:22:23] Mark Biek

I wrote a blog engine last fall. It was a fun exercise, I learned a lot in the process.

I then immediately stopped using it and switched back to Wordpress.


(2) Can you please share your learnings as well? - Bart J
10
[+13] [2009-01-23 05:15:21] Seymour Cakes

Well go and thank Ruby on Rails. Ever since the blog screencast came out, nobody want to do the Petshop engine [1] anymore . :-)

[1] http://www.microsoft.com/downloads/details.aspx?FamilyId=E2930625-3C7A-49DC-8655-A8205813D6DB&displaylang=en#QuickInfoContainer

Petshop engine AFAIK only popular in the Java land. - jpartogi
Not true. See somebody added .NET PetShop to my post. - Seymour Cakes
11
[+13] [2009-08-05 14:40:02] Darknight

Q .Why does every man and his dog want to code a blogging engine?

Well firstly it's not every man (where every man = all human males on Earth), because in order to code a blogging engine they would have to be able to code first, hence we can reduce the set down to:

Every Human Programmer is Male.

Secondly not all Male Humans owns a pet dog, thus we can safely assume:

[All Male Humans] > [Male Humans who program] > [Male Humans who program who own a pet dog]

But it has never been demonstracted that a dog can program (Dolphins have rudementary logic solving abilites but dogs generally have a far lower IQ then Dolphins.)

Thus the set is further reduced (where dog that can code = 0) to:

All Male Programmers.

But we can narrow this down even further:

Not all Male programmers are alive, so only living ones should be included. But not all living programmers will have the ability to code a blogging engine so it becomes:

All Living Male Programmers That have the capability to Code a Blogging engine Excluding their pet dogs.

Short Answer:

Because we are programmers, it's what we do.

Darknight


(7) <slap/> <slap/> - Nick Haslam
12
[+12] [2009-01-23 05:29:10] Mark Harrison

For the same reason we all used to write our own mail client.

I wasn't sure of the reason then, either.


(1) interesting, there was such a time? I don't even have a client, I just use web based email ever since I can remember. - hasen j
(4) I used to just telnet to port 110 to read my mail. Can't do it anymore because doing TLS manually is far too difficult. :) - Zan Lynx
(1) I tried that in vb.net, gave up after three days. - Cyclone
13
[+11] [2009-01-23 05:16:13] airportyh

I did it because there wasn't anything out there that I liked and meet all my needs. I am picky I guess. Since I wrote my own blog/wiki, I can tailor it exactly to my needs - have all the features I want, and none of the features I don't.


14
[+11] [2009-11-07 21:30:58] Christy John

Why are there
1) so many programming languages?
2) so many web development frameworks for a single language.
3) so many books on a single topic
4) so many newspapers in a single locality
5) so many telecom service providers.
and so on....

May because of one or more of one's
1) need not being satisfied with the existing services.
2) urge for control
3) urge for education
4) aspiration for recognition
5) economic ambitions

Whatever the reason public gets to benefit. They get a new product. If they like it they can accept it or else ignore it.

I am also trying to code one in Perl. Not because we already doesn't have any. We got blosxom, MT, bricolage etc. But my aims are control, education and the a little bit of selfish need of recognition.


15
[+9] [2009-01-24 06:31:19] Matt Flowers

I started writing one once because I wanted my blog to be ALL mine, all the way to the core. I'm willing to bet that there are a lot of others who feel the same way. Personally, after a while I wised up and realized that I would be better off putting my efforts toward my other projects.

I'm also willing to bet that so many people are working on blogging systems because it's so popular. So perhaps a lot of people are setting out to make the next WordPress.


(1) To the core...? Ya mean, including frameworks, web server, even OS...? ;-) - AviD
(3) @AviD: LFS + LightHTTPd + django + own blog. Damn AviD, I've got little time as it is! Why are you giving me more ideas for projects!? Note to self: make smallest enviroment needed to run django apps. - voyager
To be honest, I made my own HTTP server. Even touched on reimplementing PHP a little before leaving well enough alone. Oh well. - Matthew Scharley
16
[+9] [2009-08-05 15:14:26] Dave Sherohman

About a year ago, I was seriously considering writing my own blog engine. Why?

I do freelance software development and so I've gotten a bit into the general freelancing world. Pretty much all the blogs on freelancing focus on either web design or writing. After giving it a bit of thought as to why this might be, it became apparent that, for writers and web designers, the blog itself is a demonstration of their skills - either the writing in the posts or the design of the site.

Once I reached that point, it was obvious to me that, if I wanted to use a blog as a way to draw in business, it would be most effective if I wrote the blog engine myself, as it would then serve as a similar demonstration of my skills.

I never actually did much towards writing it, though, partly because I started messing around with WordPress and Drupal (which taught me that I generally don't have enough to say to keep a blog going) and partly because a client came along and set me off down another well-trodden path: Writing a site which is, at its heart, a Twitter front-end.


17
[+7] [2009-01-23 05:13:38] ewakened

I think for some people it's like a rite of passage. One of my professors told me once that you can't call yourself a programmer until you can preform certain things. Let me see if I can remember:

  • compiler
  • language (or at least parse C)
  • concurrent programming
  • functional programming
  • write a half-adder in assembly by hand
  • etc.

I think some people are obsessed with that kind of stuff. Maybe there are similar ones for web programmers?


(1) Writing your first set of database wrappers (i.e. roll-your-own ORM) is a rite of passage for Perl coders. Might be for PHP too, if there were enough proficient PHP coders. - chaos
Never heard that. However, I have heard that you don't have a dissertation unless you have one formula and one proof. :) - BobbyShaftoe
@chaos: Hehe, I've rolled my own database wrapper! - X-Istence
But, but... I wrote my ORM before getting hooked on Perl! - Dave Sherohman
18
[+7] [2009-01-24 05:40:07] Mark Ransom

I haven't started mine yet, but I intend to soon.

Why? I've done a few static HTML pages, but nothing that can be called web programming. I need a harmless project to get my feet wet. I would have done it sooner, but it's only recently that I realized I have enough blog topics to make a good start.

Edit: I've given this a little more thought since the question first appeared. What is the reason for starting a blog? It's a form of self expression. What's the most natural form of self expression for a programmer? Why, a program, of course! The blog and the blogging software go together like peanut butter and jelly.


(1) I'm allergic to peanuts, you insensitive clod! - Christopher Parker
19
[+7] [2009-01-30 19:17:43] chuu

I am building mine to learn Django, with all these frameworks and whatnot, and considering I've used a lot of scripting languages for web development, it really is the new Hello World.

I never intend on releasing it.


20
[+7] [2010-01-02 14:11:11] Daan

The subject is about blogging engines, but it looks like some people don't make a difference between a blogging engine and a custom (personal) framework.

A blogging engine

I think this is mainly to show your skills to the world, but also a way to prove to yourself that you have skills. It's a concept everybody knows, so you don't need to define what you're going to make, and you can make a very simple one within a few hours, or make a complex one spreading the development time over several months.
So far, every PHP developer I know started making his own blog, and so I did. It's a way to define your first skills.
These mostly end up in the trash or will be covered with dust.

A personal «framework»

I called this a framework although it may not be very expanded.I planned to make one, it's more like a way to work faster once you made it.
On every website I made, the same structure comes back, and there's a lot of repetitive code. (think about making forms, validating input data, initialization scripts, etc..) You made it so you know how it works, you can easily edit and/or expand it, in short it's yours and it's here to help you.


21
[+4] [2009-08-05 15:42:19] nont

Short answer: users are creatures of habit, and don't like new systems if they feel the old one worked fine. When a user base becomes accustomed to a particular customized system, its very hard to transition to an "off the shelf" system. Every difference will feel like a bug.

My group of friends has a community blog that a couple of us started. It began life years ago as a couple Perl scripts, then was re-written with PHP. I wanted to rewrite it using spring MVC, but I found that the Pebble blogging system looked pretty solid. So, I asked myself the same question you did: why should I write a new blogging system when there are plenty of good ones already. I optimistically wrote a data migration tool to move all the old blog data into Pebble format, and deployed the new system. Everyone hated it and stopped posting.

I don't think Pebble is a bad blogging engine - to the contrary. I think any system that didn't work exactly like the old one would have received the same reception. I currently have plans to write a new blog engine that will work exactly like the old one. That way I can add new features to a solid code base, and avoid pissing off my users.

For frameworks, I'm currently considering Spring MVC, which I have good experience with, and Scala+Lift, which looks pretty cool. After all, I should get something out of this too, right?


22
[+3] [2009-08-05 14:52:52] vector

... eating your own dog food, (no pun intended ;-)

If you think of a blog as a mini content management system, it makes sense. It's almost a boilerplate code that can be build out as needed.


23
[+3] [2010-02-04 01:19:44] kastermester

Personally for a couple of reasons:

  1. Other engines don't think like me - because they're not written by me.
  2. I was told by my dog
  3. I want to try to do something right - at work we often have to deliver a solution "that work's" - now I want to deliver something for myself and whoever might care to read that works without thinking, and that have these little nice things that you don't notice straight off the bat, because it "just works".
  4. And to continue with the dog thing - it's the perfect way to eat my own dog food - I want to make sure I can actually build something that's pleasant to use for people that have to use it, and I don't believe there's a better way.

All in all, this is a personal thing for myself and I am now using it while gradually improving it.


24
[+2] [2010-06-19 06:09:14] Thorbjørn Ravn Andersen

Because you understand the domain - what you want the program to do - and because you want to do it better than some existing program (scratch your own itch as ESR puts it).

Fifteen years ago it was newsreaders where apparently it was so bad so a "DON'T DO THIS" document was written: http://www.newsreaders.com/misc/twpierce/news/newsreader-manifesto.html -

But it is an interesting excercise if you remember to throw away the result :) Having done one yourself will enable you to understand better the problems in the one you end up using.


25
[0] [2009-01-23 05:15:25] Eugene Yokota

Rolling Your Own Blog Engine [1].

[1] http://haacked.com/archive/2006/10/06/Rolling_Your_Own_Blog_Engine.aspx

26
[0] [2009-12-20 01:11:08] Paul D. Waite

I think it’s one of those products that you can validly do a thousand different ways. “Blogging” isn’t a specific enough problem to have one clear solution, it’s a fairly loose term for publishing stuff on the web. People still write word processors, because Word isn’t the last word, so to speak.

See also: to-do apps.


27
[0] [2010-10-11 10:54:32] progo

My reason: stupidity. I didn't learn to customize TextPattern enough to suit my needs, so I wrote one from scratch. Not in use anymore. Sometimes to learn a complicated and advanced template-based CMS or almost-CMS is indeed harder than to write 100-500 lines of code to do a simple fetch-text-from-db-and-dump-it-on-page.


28
[0] [2010-10-12 12:22:33] egis

Because I need a lightweight, fast and modern solution. I don't want a bloated blogging engine with countless "I'll never use those" features, with backwards compatibility to php4 or some other ancient technology, with weird html output, procedural (or pseudo-oop) code, with bugs well known to whole community but me (because I don't lurk in given blogs engine forum or mailing list). That's why :)


29