views:

425

answers:

9

Hi can someone point me to some Good Open Source Code to learn Web Programming (Language doesn't matter).

i'm looking for source code of web-applications not frameworks

I'm not a beginner, I can code to some extent. I want to know how stuffs are done in real world applications.

A: 

If you want to learn from abc then w3schools.com is a better option.

Where you can find lots of seciton like asp,asp.net, HTML etc. Also you will have lots of examples there.

jalpesh
I'm not a beginner, I can code to some extent. I want to know how stuffs are done in real world applications.
Prabu
+2  A: 

Well, this question is a bit vague. Are you looking for open source web frameworks, or open source code written in web frameworks But try looking at Tomcat, Django, ASP.net MVC, MediaWiki, Drupal, and Wordpress among many, many others.

A couple more apps (now that this is clarified) are Gitweb and Meldware

Matthew Flaschen
i'm looking for source code of web-applications not frameworks.
Prabu
A: 

The most advanced PHP framework I've seen, with the beautiful code: FLOW3 Yet my answer is only relevant, if you are looking for serious framework as the code example, and do know the basics already...

Dmitri
+1  A: 

I would advice first to choose a language or a platform. For example groovy on grails. Then take tutorials. Every platform have a "petshop example" or something like that where you can start and follow.

If language doens't matter try Mhonarc which is written in perl.

Luis

Luixv
A: 

You can check http://www.asp.net and http://www.asp.net/community/projects/ for big open source web projects
http://www.codeproject.com/ for smaller examples
And http://code.google.com/opensource/ for a very big list
And Also http://www.codeplex.com/ , http://sourceforge.net

Amr ElGarhy
+1  A: 

Learning by reading the source code of an open source application always seemed like a good idea, but every time I tried it, it was a futile effort. I think that's because there's three general types of open source apps, and none are good to read for learning's sake:

  1. The small projects. By small, I mean "almost not a project" small. For one reason or another, these never made it past the proof of concept phase. Either the ideas weren't interesting enough, or worse, the programmer(s) weren't good enough to translate it into a ready-for-prime-time app. Often, the ability of these programmers aren't significantly greater than your current level, so these aren't worth your time studying.
  2. The medium-small projects. These projects are big enough to be interesting and sophisticated, but the publicly-available technical documentation is severely lacking and you'll never make heads or tails of their architecture. You could email the contributors, but they're probably too busy dividing their time between a high-level paid day job and committing all their personal time to this pet project. Moving on...
  3. The big time projects. E.g. Firefox, Eclipse, etc. Software in this category is meticulously documented, but it doesn't matter, because the amount of time required to read and understand it all is prohibitive. You'd have to be mad to put yourself through that unless you're working on the project (and hopefully getting paid to do it!).

I don't mean to dissuade you, this is just my personal experience. If you want to become a better programmer, focus on finding a job. The pace of learning during my first year on the job was orders of magnitude greater than any work I did on my own.

redmoskito
+2  A: 

If I understand you correctly, you want to study the code of popular open source web applications to understand how 'real world, live, popular' applications are coded.

If that is so, I recommend the following popular, open source applications:

  • Wordpress - coded with PHP, this application is a very popular blog management system

  • Text Pattern - coded with PHP, this application is similar to wordpress but slightly more advanced.

  • CGI Module - coded with Perl, this perl module is used in most perl based web applications. Understanding the code of this module will give you great insights on a part of how the internet works.

  • SQLAlchemy - coded with Python, is a popular application in the python community to interface / interact with databases.

It would be easier if you familiarize yourself with one of these languages well before you try to understand the working of any of the above.

Sam
wordpress would really not be on my list, unless you want to learn how not to do it...
tharkun
http://www.tablix.org/~avian/blog/archives/2009/03/wordpress_is_a_bad_joke/
tharkun
You are right about WordPress, it is not very well coded. The WordPress team are making an effort to improve it though. (I am not a fan of WordPress and prefer TextPattern, but one can't deny that Wordpress is the most popular blog management system out there).
Sam
just that popularity does not necessarily correlate with code quality!
tharkun
joomla 1.0 was by far the most popular CMS ever but the code quality is between horrible and acceptable. This is not true for 1.5 which is a real improvement in that regard.
tharkun
Agreed - it's a sorry state of affairs when quality and popularity are not directly proportional.
Sam
A: 

I'd suggest you take a look at Pier It is a content management system written in Seaside. It is much better structured than any of the other suggestions I've seen here.

Stephan Eggermont
+1  A: 

If you are interested in Python, you can look at Reddit or the Django source code. I know Django's a web framework but the code is really well done.

KahWee Teng