Click to See Complete Forum and Search --> : codeexamples.org


EscapeCharacter
10-18-2001, 12:34 AM
hey guys i noticed there arent any linked list examples in c, and since im working on one right now, would guys like me to submit it?

klamath
10-18-2001, 01:23 AM
Not to be negative, but aren't there already like a million implementations of linked lists in C already out there? I'm just curious why you would want to spend your time repeating the same thing that has been done before so many times. Part of the idea of code re-use is that you can grab generic code like this (e.g. from a library like GLib) and get a free, flexible, high-quality, optimized, portable implementation.

EscapeCharacter
10-18-2001, 02:18 AM
simple, i have no life and nothing better to do

Aragorn
10-18-2001, 02:43 AM
Originally posted by EscapeCharacter:
<STRONG>simple, i have no life and nothing better to do</STRONG>

Sounds like a good explanation to me! Pretty much my motivation for any coding I do! hehe

Aragorn
Admin of GetLinuxOnline.Com

TheLinuxDuck
10-18-2001, 09:40 AM
EscapeChar:

That would be fine! When you get it completed, send it on!

kmj
10-18-2001, 10:08 AM
I say great idea; while it's true that there are a million versions out there for using, how many are there for learning? Honestly I could give half a crap if any of the code on CCAE gets used. That's not what it's there for; it's there so that people can learn from it, and everyone should know how to build a linked list, even if they'll never have to do it.

sans-hubris
10-19-2001, 12:34 PM
Originally posted by kmj:
<STRONG>I say great idea; while it's true that there are a million versions out there for using, how many are there for learning? Honestly I could give half a crap if any of the code on CCAE gets used. That's not what it's there for; it's there so that people can learn from it, and everyone should know how to build a linked list, even if they'll never have to do it.</STRONG>
I agree. Even if you never use your own implementation of a linked list after you've learnt it and tried implementing it yourself, learning it will help you with understanding abstraction in programming and give you a taste of data structures. Besides, everyone should have some idea of how data structures like linked lists, binary trees, cursor lists, etc. work so that you can either implement your own if you're not satisfied with the ones available to you or you can more effectively use the ones out there (since you understand what they can do.)