• Advertisement
Sign in to follow this  
  • entries
    114
  • comments
    126
  • views
    64526

Holy cow

Sign in to follow this  

125 views

I just looked over the source code for Quake 3 ... WOW. That is a lot of code. I can't even tell which file is the main file (if there is one).

There are 16 folders with hundreds of files.

The reason I decided to download and look at the files is that I wanted to see John Carmack's style of writing code. I figured I would like to write like one of the best coders out there :P

Unfortunately, at this stage, it is way too confusing for me. I see lots of header files and lots of other files. I noticed lots of pointers, vectors, loops, etc :) But, I have no idea which file does what :(
Sign in to follow this  


2 Comments


Recommended Comments

Quote:
Original post by Sshado
The reason I decided to download and look at the files is that I wanted to see John Carmack's style of writing code. I figured I would like to write like one of the best coders out there :P
DOOMed, in more ways than one. [grin]

Share this comment


Link to comment
You should note that while Carmack is really great with mathematics and optimizing/building algorithms his code and coding style in general is absolutely atrocious and you definately do not want to write code like him.

Also until you really get a handle on the language you will most likely find the source to a massive commercial release quite daunting... but don't get discouraged! Just keep going through your material and tweaking the examples, building new small applications, etc. A key thing is to actually use the language and not just read about it, as that is where you will really learn to master it.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement