Recently I saw an infographic called Million Lines of Code and I think it would be really cool if Stack Overflow could be on it. I am sure there are thousand upon thousand lines of code the Stack Overflow site itself.

Is there a way for Stack overflow to compile how many code blocks have been created on Stack Overflow and possibly spit out an estimate of how many lines there are? I am also a little curious how many lines of code the Stack Engine has :)

  • Yep, cool infographic indeed, would be nice to know our position there ;) And also the position for the Stack code engine itself. I like the mentions to healthcare.gov... – brasofilo Oct 29 '13 at 10:08
  • 2
    Would be fun to compare lines of code in Stack engine to lines of code in questions and answers ;p – Mołot Oct 29 '13 at 11:40
  • 5
    Problem is many of those are copied from external sites (usually with proper attribution) and it's really hard to know that. Counting the actual, genuine, lines of code written manually by Stack Overflow users, is almost impossible mission. – Shadow Wizard Wearing Mask Oct 29 '13 at 11:47
  • @ShaWizDowArd I also realized this as a problem and I'm glad you brought it up. In the end I think it's just nice to see an estimate but yeah I'm not entirely sure how we would handle that problem :[ And Molot's comment has peaked my interest as well :) – aug Oct 29 '13 at 17:32
  • It's going to be uncountable for the reason @Sha brings up... and arguably, the result would not be meaningful even if it were possible, as it's not really a "code base" as such – Pekka Oct 29 '13 at 18:48
  • Is it possible to get an idea through using queries? Just discovered this. – aug Nov 26 '13 at 20:27

You must log in to answer this question.

Browse other questions tagged .