lainchan / λ

Good Source code for a beginner to study?

Nemissa · 2017-12-11 03:16
Hello, all. I am new to programming. I understand basic concepts such as types of loops variables basic scripting in bash, python, lua, whatever difference between compiled and interpreted languages etc But I want to know more. Seeing as this side-interest could very well be more profitable than whatever soykaf degree I get, and I would find it incredibly gratifying to create my own programs, what are some good open source projects to dig into? Like I said, I understand the basics but I've never been able to build a large program and I don't really understand how one would go about doing so. I just can't comprehend (right now) how you would successfully organize hundreds of functions and thousands of lines of code into something that actually works. Every script I've written always has to stop after one or two levels (I don't know the term for this, not recursion, perhaps indentation) since I am lost as to how to build things deeper. Linux source code seems too hard. I'm thinking some sort of smallish program where I could read through the code and comments, perhaps ask a friendly developer about the parts I can't grasp, and then one day (gasp) contribute something to the project. Any recommendations of well-documented, well-written source code for me to look through?
Roger Pollack · 2017-12-11 03:53
>>5552 Depends on what language you are looking into and where you want to go with programming. If you want to study C source code I would suggest looking at old video game engines that have been made open source (and ported to "modern" operating systems) like Doom and Quake. Personally I have found that ioq3's (quake 3) source code to be very clean and relatively easy to understand. I have also heard the same about Chocolate Doom. Of course you could always study the source code for any small GNU programs, I definitely agree the Linux kernel would not be a good starting point. Hell, even TempleOS might be a good starting point if you don't mind learning a nonstandard C dialect.
Crazy Jake · 2017-12-11 04:20
AS has been said, depends on what you want to do. There are a zillion languages, paradigms and domains for programming, from low-level to research, from osdev to webdev, you could do distributed computing or graphics, perhaps cryptography or networked applications. So now you know, you would need to consider in what particular domain you want to work for a while, find out the technologies and languages, what you need thinks bettering, and what applications exist for that purpose. It's not bad to know a bunch of different paradigms, and you should be open to competing technologies in any field you want to get into, need breadth and depth of knowledge, but have to stick to a subject, and the projects will naturally arise, either 3rd party or your own. So shop around, find a tool you like, and try and contribute to it. If anything, you'll learn about the subject quite a bit, even if you move on.
Wintermute · 2017-12-11 18:29
>>5553 >>5555 >>5555 WHERE DO I STUDY SCHEME SOURCE CODE
Drano · 2017-12-11 18:44
>>5576 The code in SICP is well written and explained in detail.
Hong, Guil Dong · 2017-12-12 03:23
>>5576 what is wrong with you Anyway, I find it rather stupid that TSPL would be such a humongous book for such a small language, but it being full of example code, you might find it useful.
Jet Black · 2017-12-12 15:33
reading code from the guys @ suckless.org made me understand bigger projects alot more.
Lain Iwakura · 2017-12-12 22:12
>>5607 >the guys @ suckless.org literally just Rob Pike