![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
what open source code is good to read for a beginner?
hi i've read that reading good source code can help you become a better programmer and was wondering if anyone knew of a open source program that is coded really well for a beginner to read. I'm familar with C and C++. thanks for any replies in advance.
|
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() |
for C and C++ you have a insane number of choices.
why not just check out some of the projects on sourceforge or on freashmeat?
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#3 | |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4
![]() |
IMO - some of those projects are not beginner fodder or are written by beginners.
You could download source code for Linux glibc or coreutils (command line utilities) For example some Debian Linux stuff is here: http://www.linux-m32r.org/eng/download.html |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() ![]() |
how about gaim?
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() |
yeah gaim is probably a good place to start as it is a very good app :-)
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#7 |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
well gaim seemd like a decent start so i started with that. In the source tree was a file called HACKING where the author tries to explain the code somewhat so those who are curious will have an easier time with it. Doing so i stumbled on some topics to read up on like event driven programming, asychonous I/O, etc so already i've learned a bit. The author said that a lot of the code is GTK so i started reading a tutorial on that and will delve into that more because i figure it will help me read more program code easier. I had a question tho about continuing to read the Gaim code. Do you think it would be too complicated for a beginner because it is networked? How much would i need to know about sockets and protocols and such or is it a good way to stumble across them and learn as i go? thanks for your replies again.
|
|
|
|
|
|
#8 |
|
Professional Programmer
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4
![]() |
Network programming isn't really all that complicated. For a guide to sockets from C, you could do worse than take a look at Beej's guide (the first encounter I had with BSD sockets, way back when).
http://www.ecst.csuchico.edu/~beej/guide/net/ A good book on the subject is "Unix Network Programming" by W. Richard Stevens if you prefer a big wodge of paper. It's essentially a very simple API though - much less to it than Gtk - and it should take you no time to get to grips with it. Accessing the API is usually very similar from different languages (as you'd hope) so once you can do sockets in C, you'll be able to learn to use them from Tcl and Perl and so on very quickly. Best of luck! |
|
|
|
|
|
#9 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Has the author of gaim split the GUI and networking code yet?
|
|
|
|
|
|
#10 | |
|
Hobbyist Programmer
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|