What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 131 Stack Exchange communities.

Do the SO admins have any plans to release the underlying code for SO at all? I appreciate that the code may be part of their competitive advantage, but it strikes me that the underlying system would work for any topic, not just programming.

I am not advocating this, just curious really, but figured it might be under consideration as most of the value in SO is in the questions and answers, which have been released under a relatively open CC license.

share|improve this question

migrated from stackoverflow.com Aug 15 '09 at 14:17

This question came from our site for professional and enthusiast programmers.

    
    
related: Stack Overflow clones, some of them open-source. –  David Cary Oct 19 '11 at 23:57
37  
+1 for the ultimate "give me the codez" question! –  Yannis Dec 31 '11 at 11:16
3  
SO could even be commercially licensed to Enterprises, for hosting any kind of intra-company Q&A forum, even for HR related issues. Recently there was a discussion of having such forum in my company and I immediately thought of SO... –  Curious Aug 30 '12 at 19:07
1  
@Curious - Thats exactly why I was investigating this, I want a StockOverFlow site internal to my company. They should license it... They would have a lot of competition, but I think they could do it. –  kralco626 Feb 6 '13 at 17:54
    
any suggestions about SO source code? –  Kiquenet Apr 25 '13 at 5:43
    
@abel cngprog clone of SO. Here's the working cngprog link. It's written in Django (Python Web Framework). –  GuruM Mar 28 at 14:10

10 Answers 10

After having given much thought to it during the last 2 years I decided that yes, I will release the stack overflow source code.

Here it is:

static void a() { a(); }

int main()
{
    a();
}
share|improve this answer
39  
Epic............................ –  Mob Sep 12 '11 at 12:51
3  
Made a Java version :) ideone.com/VIpu5 –  Anish Gupta May 12 '12 at 15:08
6  
I was expecting a real answer, not a joke answer - but still, that was kind of clever. :) –  Anderson Green Nov 20 '12 at 19:46
2  
Took me a little while to get it 8^) –  Zane Dec 6 '12 at 10:26
    
Lol, wthh...... –  Pacerier Dec 30 '12 at 18:40
1  
Thought it was int main() { main(); } –  kelton52 Mar 16 '13 at 16:48
2  
Great answer! Now I know how to overflow the stack. –  Energy May 7 '13 at 18:06
6  
Great. It worked. Now can you tell me how can I change the theme of my application? –  Marius Jun 3 '13 at 14:00
    
Lolflow.......:-) –  Wordzilla Nov 10 '13 at 14:12
5  
Version of @kelton52 is more resource-efficient, runs faster and is also shorter in code. You see? Releasing the code always results in the community improving upon the original! –  Joe Pineda Jan 27 at 22:03
    
Just add large local variables and it gets more responsive. LOL! –  user148298 Feb 18 at 15:30
    
Is this the source code? =/ –  Joseph Jun 13 at 16:54
    
love this. lol!!! –  Nelson Emeka Ameyo Jul 1 at 8:06

Leave it closed source.. for a selfish reason of mine :) Personally I don't want clones popping up and then we have a lot of Q &A sites which I might have to follow. I would rather concentrate on one really good site than on multiple so-so sites.

It's better to have the experts gather in one place than have them scattered between the clone sites.

Maybe open source it after a year from now. I want SO to have the EBay effect. No one can outdo eBay as an auction site.

share|improve this answer
20  
Actually if one is determined, one can make a clone, regardless if SO is open source or not. –  Hao Wooi Lim Jan 29 '09 at 17:07
4  
There is already one; cnprog, better IMO. –  Joan Venge May 19 '09 at 18:59
7  
@Hao - why stop there? Why not clone Office and become a multi-billionaire? You just need sufficient "determination" –  MarkJ Sep 16 '09 at 11:48
2  
@Joan Venge whats better is that cnprog is open source github.com/cnprog/CNPROG/archives/master –  abel Oct 2 '10 at 17:26
    
askbot.org might be another possibility. They clearly states that they're inspired by stackoverflow (and yahoo answers). –  IsaacS Jul 23 '11 at 1:15
    
@MarkJ They are two different things altogether. SO is relatively easier to clone. Its definitely possible to duplicate it, depends on the intended use and yield. –  Mob Sep 12 '11 at 12:25
3  
Was multiple so-so sites. an intended pun? or a happy accident :) –  chrislondon Jun 11 '13 at 17:41
    
@abel working cngprog link. It's written in Django (Python Web Framework). –  GuruM Mar 28 at 14:09

I think they've been pretty noncommittal.

Spolsky: These questions all sort of come back on one another. So what do you think? StackOverflow, open source?

Atwood: I'm torn, because again StackOverflow is very much a commercial venture. Which I guess you could say about ScrewTurn Wiki as well. ScrewTurn Wiki is also commercial. I mean ultimately he wants to get paid for the work he's doing. And I guess I just don't know enough about the repercussions of it to make that decision. I'm not against it by any means. I mean I'm very much pro - as the caller said, Martin said, I'm very much pro open source. And I think I'm just a little nervous, having taken on this project.

Spolsky: But what if somebody cooler than us took that code, and even took, you know, I think we already talked about Creative Commons-ing some of the contributions. So they take the code that we developed, at great expense I'd like to point out - at least six to eight weeks, if not five to seven - and then took all that code and stuff like that, and made another site somewhere that was a better than Stackoverflow. Or it could be called StackDoubleOverflow. It would all be written in English as a second language. And, uh, it would be extremely popular with, say Eastern Europe for example.

Atwood: Right. So that's forking, right? And I have a blog entry about that as well. So the risk was forking is that--

https://stackoverflow.fogbugz.com/default.asp?W4331

So it might happen, or it might not. It doesn't look like they're dead set either way yet.

Edit: Jeremy found a more recent quote than me. Looks like they're still not committing to anything.

share|improve this answer

I think they said in one of the podcasts (#15 or #16) that they might "open source it" eventually.

Edit: Found it in the Transcript Wiki of Podcast 15:

Atwood: And to their credit these guys are doing this largely out of - I don't want to say the goodness of their heart - but because they know me and they believe in the project so they are sort of contributing some sort of basic sweat equity to the project so it's not like we have this giant pool of venture capital. I mean, this is basically self-funded to this point by: me [laughs]. Um, so, it's sort of a minimalistic endeavour, I mean what I think what we're going to end up with is going to be pretty cool. And it's going to be kind of community effort too where I've been posting on the blog about what we're doing and trying to solicit input and things like that. Eventually we might open source the code as well. But it's not like we have this giant pool of venture capital money like some companies, it's very much a small endeavour that we're taking on. But that said, people will start trickling into the beta before, before the end of the month now so that's where we are because people keep asking and I just wanted to address that.

share|improve this answer
2  
The question is when eventually ? and why not now ? –  Francesco Aug 8 '12 at 15:26

That probably makes good sense to wait for a while to establish a significant user base and get a head start on competitors before open sourcing the code. At that point, it won't matter if someone creates a stackdoubleoverflow.com if this site gains critical mass.

Just look at all the ways that Twitter screws up yet everyone is still there. If Twitter open sourced their code, it wouldn't hurt them a bit. After all, there are already twitter clones out there, but people want to be where their friends are.

So get everyone and their friends here, and then open source it. :)

share|improve this answer

From the Area 51 faq page:

Do you offer "white-label" or subscription hosting for Stack Exchange sites?

Unfortunately, we no longer offer a subscription service or license the software to host Stack Exchange sites. Stack Exchange sites can only be created via the democratic, community-driven process at Area 51. We offer neither “white-label” services, nor the ability to bypass Area 51 to create sites through partnerships.

share|improve this answer

I dont really need the whole application. I am not going to start my own stack overflow site. What would be great however is if they take some of their most proud sections of the code and show us why and how they did it. When I listen to the podcast I hear a lot of great insights and advice. I would like to see some specific examples based on something I actually use.

Part of the open source idea is not just "free" software but the sharing of ideas that goes with it. I would like to see some of Joel's standards in action.

share|improve this answer

Aside from releasing source the alternative would be to license stackoverflow. I would push for a purchase in my org.

It is a great way to organically build a knowledge base over time, and I think that piece is missing in a lot of places - especially stovepipe orgs. Given the competitive nature of the badge system it would encourage average employees to contribute their knowledge for recognition - which would help break down information barriers.

As a programmer I could go to a LAN instance of SO for my org about... say accounting, ask an accounting question, and get answers from people in 4 divisions, that would be awesome.

share|improve this answer
1  
This is exactly what I was thinking and how I ended up here on this question. –  Matthijs Wessels Jan 12 '12 at 9:48
1  
FogCreek offers a private license. It's very expensive. They may have changed their pricing since we spoke to them (like 10 months ago) but what they offered us was a $60K per year per instance subscription. They might be willing to negotiate with certain types of organizations. See: Is the Stack Exchange engine available? –  HAL9000 Jan 13 '12 at 18:03
    
We're trying out OSQA now. It's not even remotely close on maturity and unfortunately for us is not ASP.Net but it works. The project is run by some devs at DZone and seems to have some problems attracting outside help. –  HAL9000 Jan 13 '12 at 18:08
1  
Getting a response from HR or accounting..now that is an idea i could back. –  Abhishek Asthana Feb 20 at 21:05
    
@Abhishek Asthana It's a nice idea but unfortunately it breaks down when you're not really in egalitarian environments. My attempt to make this work at my current organization failed because executives were worried it could disrupt standard channels for policy information. They could not be convinced. –  HAL9000 Feb 21 at 1:30
    
@HAL9000 have you looked at tibbr.com its not SO but it works...I have seen this in action. –  Abhishek Asthana Feb 21 at 15:58

Given how much better the Stack Overflow way of doing things is compared to other Q&A forums, I could see there being a business in making the Stack Overflow infrastructure available for customized Q&A forums.

(Of course, that's how ArsDigita started...)

share|improve this answer

StackOverflow is awesome because of the numbers of amazing and helpful guys using it. Why make it open-source and scatter this group? You don't need your own installation of SO. You only need its URL.

share|improve this answer
    
What are you talking about? Open sourcing the code won't cause the site to shut down. –  Shadow Wizard Jul 1 at 8:15
    
i kno. but then why have so many q&a sites? we all love so because so many pple are willing to help. why start your own? its like re-inventing the wheel. –  Nelson Emeka Ameyo Jul 1 at 11:41
    
Because the contents are free and bringing traffic that give you real money. –  Shadow Wizard Jul 1 at 11:59
    
hadn't thought of that. valid point. though your content must be of high quality. –  Nelson Emeka Ameyo Jul 1 at 12:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .