»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 07-15-2003, 03:31 AM   #1 (permalink)
Registered User
 
Join Date: Apr 2002
Location: Georgia
Posts: 137
Jüš† ä gü¥ is on a distinguished road
Kids Best place for nontrivial source code?

Okay. I'm highly annoyed at how hard it is to find good source code samples on the Internet without downloading zip files which contain the code. I really don't like spending my time downloading large zip files with many many source files included therein. It is just too monstrous.

On the other hand, reading APIs is too monstrous as well because most APIs are simply ENORMOUS with most of the functions easily user-implementable anyway. (at least I think so). Plus the fact that any API is COMPLETELY incompatible with all other APIs, for the most part, and it really becomes a PITA. It is difficult to filter through the useful functions from the useless, and ridiculously large nested structures and classes are just the worst!

It seems the only way for finding out the really useful functions in any API is from actually reading lots of useful source code from people who have coded using that API before-----you quickly see which functions are used the most, which the least, and which not at all (as in, probably shouldn't have even been implemented in the API at all-----too few uses).

Unfortunately, try any search for source code and like 99.9% of it is purely worthless beginner stuff. I don't want the beginner stuff; I want some real code! I don't want to see how you "Hello World" and other beginner stuff in any source code. I also don't want to have to download a zip file, only to have to unzip it into 50 million source files with absolutely no hints as to which files are related to which/etc....

I just want to go to a website, click to view code, and see an entire page worth's of GOOD code which performs USEFUL functions------preferably code snippets from REAL working programs out there!

I would like to see such code for Windows Win32 API, COM objects, Windows multimedia, DirectX, Windows networking, low-level Windows disk/file management, Linux APIs, XWindows, SDL, and OpenGL. I do not want to see code in Visual Basic, C#, "managed" C++, or any other Microsoft .Net language. C code is preferable to C++ code. (Less ugly)

Cryptic and uncommented is fine AS LONG AS the code does not deal with using predefined important numbers that I should be aware of (such as if it is inline assembler code, I will want to know what interrupt dadada function dadada does with input dadada). I will also want to know what is at hardware port dadada if that is hardcoded into the application WITHOUT first searching on my own computer for what is there. Also, if Windows function blahblah takes a certain parameter, and that is sent as some hex number, rather than the standard #defined way in the standard Windows header, then I will want to know what that is/means. Basically, if the code is assuming, then it should be commented, and, if not, I don't care if it is the most cryptic thing on this planet!

Also, when I try checking out books which look potentially useful from the university library, about 70% of them have severely grammatically-challenged authors with severe spelling and logic mistakes in a good portion of their work. Also, their code is FREQUENTLY fraught with horrendous errors such as spelling and semantic errors(they will define a variable one way one place, and use it with a misspelled name throughout, for example). Of the other 30%, about 90% of them are of the beginner/useless variety, and only about 10% serve marginal use.

Public libraries (other than university)----hahahahaha---don't even have ANYTHING! (at least not where I am)

I need some advanced code to read from. What I don't need is pretentious authors who assume I am some newbie who never turned on a computer before! (Well, almost seems like that with some of them).

The other types of books are the purely theoretical types. **** theory! I want to make code, not contemplate how blah blah blah. Besides, I do that already! I don't need a book to give me theoretical ideas/concepts/processes!

I simply want to read large amounts of GOOD advanced code illustrating the practical uses of the APIs is all

__________________
Jüš† ä €öm¶ù†Ê® §ÇÌÈñŒ mÅjÒ®
Jüš† ä gü¥ is offline   Reply With Quote
Old 07-15-2003, 04:19 AM   #2 (permalink)
Registered User
 
nishark's Avatar
 
Join Date: Aug 2002
Location: Downunder
Posts: 427
nishark is on a distinguished road
Re: Best place for nontrivial source code?

Quote:
Originally posted by Jüš† ä gü¥

Also, when I try checking out books which look potentially useful from the university library, about 70% of them have severely grammatically-challenged authors with severe spelling and logic mistakes in a good portion of their work. Also, their code is FREQUENTLY fraught with horrendous errors such as spelling and semantic errors(they will define a variable one way one place, and use it with a misspelled name throughout, for example). Of the other 30%, about 90% of them are of the beginner/useless variety, and only about 10% serve marginal use.

Public libraries (other than university)----hahahahaha---don't even have ANYTHING! (at least not where I am)
dont u hate those WROX (rocks?) books with 30-40 authors each of them writing one chapter in a book, without hardly knowing what the other authors have already mentioned.

!drives me nuts!
nishark is offline   Reply With Quote
Old 07-15-2003, 04:42 AM   #3 (permalink)
Registered User
 
nishark's Avatar
 
Join Date: Aug 2002
Location: Downunder
Posts: 427
nishark is on a distinguished road
just a thought ...

u could try reading source code for open source programs that you use/that are written in C++. that would be real code. but i gues u'd have to download a zip
nishark is offline   Reply With Quote
Old 07-15-2003, 06:06 AM   #4 (permalink)
Registered User
 
Join Date: Apr 2002
Location: Albany, Ga.
Posts: 1,063
no1_vern is on a distinguished road
In other words you want the work done for you. As such, the person who does the work will want to be paid for his work. Im willing to bet if you work on something YOU would want to be paid for your labor.

Right?

How much are you willing to pay for such a source? I know of several but the FEES begin in the $500.00 range and go north from there. The lower the price the worse the source.

If you want it done FREE FOR YOU, I wish you good luck, but I dont think you will find anything.
no1_vern is offline   Reply With Quote
Old 07-15-2003, 06:30 AM   #5 (permalink)
Registered User
 
nishark's Avatar
 
Join Date: Aug 2002
Location: Downunder
Posts: 427
nishark is on a distinguished road
it appeared to me that 'just a guy' was after some serious 'illustrations' of C++ code
but then i guess no1_vern might have a point there/
nishark is offline   Reply With Quote
Old 07-15-2003, 08:49 AM   #6 (permalink)
Registered User
 
Join Date: Apr 2002
Location: Georgia
Posts: 137
Jüš† ä gü¥ is on a distinguished road
Quote:
Originally posted by no1_vern
In other words you want the work done for you. As such, the person who does the work will want to be paid for his work. Im willing to bet if you work on something YOU would want to be paid for your labor.

Right?

How much are you willing to pay for such a source? I know of several but the FEES begin in the $500.00 range and go north from there. The lower the price the worse the source.

If you want it done FREE FOR YOU, I wish you good luck, but I dont think you will find anything.
I'm not asking for personal contracting here! I know how to code, and I code quite well. What I want are leads as to which API functions are the essential/crucial ones. There are billions of API functions (if you include all major APIs), and there is no way it is possible to learn every single function.

Basically, I'm not asking for someone to do the work for me. What I AM asking is if someone already HAS posted such code on websites ALREADY (and I KNOW they have---such code postings are HARD to come by, though) and if you just so happen to have come across such a link and just so happen to remember what it was, if you would kindly link me. I try searching for such postings on websites myself, but, as I've said, really good code examples are hard to come by.

I don't want to see much more than practical uses of the APIs. I don't care to see functions built/created in that source-----in fact, seeing a small snippet of the code in a single function is probably good enough, provided it calls a reasonable amount of API functions. Various sites that have such snippets are what I seek.

Basically, I am very strong on my code, but very weak in my APIs. I have been known to completely code things from scratch which I can guarantee you were somehow implemented in the API somewhere just because I couldn't find appropriate documentation/usage for the API or could not filter through to find what I needed.

I have completely created my own graphics routines and others, based on only a couple of very basic API calls, and done incredible things with them.

I hate large APIs, and I need a minimal, working set of function calls from each of the above APIs which should do the trick.

I hate reading paragraphs about coding. I like reading raw source code. Understand?
__________________
Jüš† ä €öm¶ù†Ê® §ÇÌÈñŒ mÅjÒ®
Jüš† ä gü¥ is offline   Reply With Quote
Old 07-16-2003, 02:53 PM   #7 (permalink)
Registered User
 
Lemon[H]ead's Avatar
 
Join Date: Dec 1969
Location: Heriot-Watt Uni
Posts: 1,370
Lemon[H]ead is on a distinguished road
Send a message via AIM to Lemon[H]ead
If you want to, you can check out the sample code on apple's website, i'm not sure how much of it will be helpful. Always nice to see examples of good code though.

http://developer.apple.com/samplecode/
Lemon[H]ead is offline   Reply With Quote
Reply




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
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 04:38 AM.