You are not logged in.
Pages: 1
Hi, I'm pretty new to programming- only got proficient with Python about a year ago, learning C now just so I can contribute to more projects. I'm wondering what Python or C programs you have found most useful to read, whether because they were very clear, or they coded in a clever and minimalistic way. I'm just looking for a good program to use as an example for how to build infrastructure, since UIs are fairly obvious in nature to me (I'm a designer).
So, anything come to mind? I really just want to get my hands dirty and try to understand a good program inside and out.
Offline
Here's two apps in c that do a similar thing. This one I think is clear and easy to follow and this one is clever and minimalistic. I have a bias and prefer simpler syntax and a clear layout especially when reading someone elses' code. Ultimately it comes down to what works for you.
You're just jealous because the voices only talk to me.
Offline
Clever code without good documentation is little better than obfuscated code, in my opinion. But a good step by step explanation can really improve your perspective on certain types of problems.
Thanks for the contribution. Maybe we could get these into a list of some kind if there are many more.
Offline
Excellent idea for a thread, ScionicSpectre. If you find any other resources I would certainly appreciate a link. After a quick search I have found at least two threads on Stack Overflow; Good code to read? and Code to read and learn from. The later discussion thread was considered a duplicate and closed, but make sure to check dmckee's comment below the original question.
Offline
you want to read everything by suckless!
Fantastic link. A quick read at the monsterwm source was amazing
Thanks!
My blog: blog.marcdeop.com
Jabber ID: damnshock@jabber.org
Offline
I sometimes read OpenBSD code when I'm really, really bored.
Offline
Although not specifically about coding, for general "What I wish I knew then" advice on getting into FOSS and contributing to code, I found this was a nice read:
διπλοῦν ὁρῶσιν οἱ μαθόντες γράμματα.
Offline
For python, I like the cherrypy code. Clean and down to earth. For c, I have a number of favorite projects: evince, zlib, dwm, openbox, lua, libpeas, cogl, and clutter. Look on Browse github by language, look at the top projects and see how they are put together, but don't get discouraged! Some of the projects are daunting, absolutely massive, or have weird programming style. Just stick to your guns and look for the simple ones, when you are ready, go back and look at the really complex projects (V8 anyone?) and try to figure out the entry point and work you way from there. I would also highly recommend ack to help you find stuff in a source tree.
Offline
@demizer thanks for bringing up ack, never used that before and just a couple quick tries without reading how to use it and it is very impressive!
Offline
Pages: 1