Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 26th, 2005, 10:13 AM   #1
linuxpimp20
Hobbyist Programmer
 
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4 linuxpimp20 is on a distinguished road
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.
linuxpimp20 is offline   Reply With Quote
Old Aug 26th, 2005, 10:24 AM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
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!
Pizentios is offline   Reply With Quote
Old Aug 26th, 2005, 10:28 AM   #3
linuxpimp20
Hobbyist Programmer
 
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4 linuxpimp20 is on a distinguished road
Quote:
Originally Posted by Pizentios
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?
that's why. lol. there is so many to choose from that i didn't know if someone already knew if there was one that was well written that they have had experience with. I don't want to stumble upon a badly written one if i can help it. That would be counter productive.
linuxpimp20 is offline   Reply With Quote
Old Aug 26th, 2005, 10:28 AM   #4
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
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
jim mcnamara is offline   Reply With Quote
Old Aug 26th, 2005, 10:29 AM   #5
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
how about gaim?
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Aug 26th, 2005, 11:50 AM   #6
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
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!
Pizentios is offline   Reply With Quote
Old Aug 27th, 2005, 8:16 AM   #7
linuxpimp20
Hobbyist Programmer
 
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4 linuxpimp20 is on a distinguished road
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.
linuxpimp20 is offline   Reply With Quote
Old Aug 27th, 2005, 10:13 AM   #8
mackenga
Professional Programmer
 
Join Date: Mar 2005
Location: Glasgow, Scotland
Posts: 317
Rep Power: 4 mackenga is on a distinguished road
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!
mackenga is offline   Reply With Quote
Old Aug 27th, 2005, 10:44 AM   #9
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Has the author of gaim split the GUI and networking code yet?
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Aug 27th, 2005, 10:52 AM   #10
linuxpimp20
Hobbyist Programmer
 
Join Date: May 2005
Location: ma
Posts: 130
Rep Power: 4 linuxpimp20 is on a distinguished road
Quote:
Originally Posted by Ooble
Has the author of gaim split the GUI and networking code yet?
i dunno. i haven't taken the time to look at the actual code yet. i decided i'd go back and take a look at it after getting familar with GTK
linuxpimp20 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:32 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC