[gameprogrammer] Re: General Purpose Double Linked List Class
- From: Jake Briggs <jakbri@xxxxxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Wed, 01 Mar 2006 11:38:01 +1300
Bob Pendleton wrote:
On Wed, 2006-03-01 at 09:39 +1300, Jake Briggs wrote:
Well it may be an interesting exercise to implement this by hand. I
mean, I have done it a few times in order to polish my pointers (I don't
code in c for a job, and haven't done any c since uni), and it can be
frustratingly fun :)
ROFL! I was a programmer before C was well known and long before C++ was
invented. I have had to code different kinds of linked lists using
pointers many many times. As a result I look at the STL as a wonderful
thing that keeps me from having to waste my life hacking yet another
version of a linked list. (And Boost, don't forget Boost) Doing it a
couple of times to learn is great. Doing it many times because there is
no choice, well you gotta do what you gotta do. Doing it when you don't
need to? That feels a lot like watching American Idol. I did it for 15
minutes once, turned of the TV and said "Well there is 15 minutes of my
life that I will never get back..." :-)
Bob Pendleton
P.S.
If you are an American Idol fan, then please don't flame me. Different
people have different tastes. :-)
True true, but I use scheme and java all day, and its kinda refreshing
to get down and dirty once in a while. Not that writing a few lines of
code to implement a linked list is in any way comparable to those crazy
demosceners. I saw a video the other day of a guy using maybe a 386 to
play full screen, full motion video in text mode with sound. I'll see if
I can dredge up the link, it was on google video. Now that's getting
back to basics just for the hell of it :)
Jake
Bob Pendleton wrote:
On Sun, 2006-02-26 at 20:19 +0100, Torsten Giebl wrote:
Hello !
Thanks for your answer. I do not want to
use STL generally in my game, i just wanted
to throw something in to get a doubly linked list :-)
Why don't you want to use the STL? There is no particular overhead
caused by using it. And it makes writing code so much easier. Consider
how much time you spent developing a doubly linked list class versus the
time it would have taken to just use the STL.
I really do not understand why you wouldn't just use the STL?
Bob Pendleton
But is the way i tried to use STL correct ?
Okay, it is not the best programming style.
CU
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
--
Jacob Briggs
Systems Engineer
Core Technology Limited
Level 1, NZX Centre
11 Cable Street
Wellington
Phone +64 4 499-1108
--
Named after its country of origin 'England', English is a little known dialect
used by up to 1.5 billion non-Americans worldwide. Some interesting but
obviously incorrect features of the language include:
- queues of people
- wonderful coloUrs
- the useful metal aluminIum
- the exotic herbs (h-urbs), basil (ba-zil) and oregano (o-re-gaa-no)
- specialiSed books called 'dictionaries' that tell you how to spell words
correctly
Many people using this bizarre gutter speak also subscribe to the pagan belief
that water freezes at 0 degrees and that distances should be measured in the
forbidden mathematical system of base-10...
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] General Purpose Double Linked List Class
- From: Torsten Giebl
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Tom Wilson
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Torsten Giebl
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Bob Pendleton
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Jake Briggs
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Bob Pendleton
Other related posts:
- » [gameprogrammer] General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
- » [gameprogrammer] Re: General Purpose Double Linked List Class
Well it may be an interesting exercise to implement this by hand. I mean, I have done it a few times in order to polish my pointers (I don't code in c for a job, and haven't done any c since uni), and it can be frustratingly fun :)
ROFL! I was a programmer before C was well known and long before C++ was invented. I have had to code different kinds of linked lists using pointers many many times. As a result I look at the STL as a wonderful thing that keeps me from having to waste my life hacking yet another version of a linked list. (And Boost, don't forget Boost) Doing it a couple of times to learn is great. Doing it many times because there is no choice, well you gotta do what you gotta do. Doing it when you don't need to? That feels a lot like watching American Idol. I did it for 15 minutes once, turned of the TV and said "Well there is 15 minutes of my life that I will never get back..." :-)
Bob Pendleton
P.S.
If you are an American Idol fan, then please don't flame me. Different
people have different tastes. :-)
Jake
Bob Pendleton wrote:
On Sun, 2006-02-26 at 20:19 +0100, Torsten Giebl wrote:
Why don't you want to use the STL? There is no particular overheadHello !
Thanks for your answer. I do not want to
use STL generally in my game, i just wanted
to throw something in to get a doubly linked list :-)
caused by using it. And it makes writing code so much easier. Consider
how much time you spent developing a doubly linked list class versus the
time it would have taken to just use the STL.
I really do not understand why you wouldn't just use the STL?
Bob Pendleton
But is the way i tried to use STL correct ? Okay, it is not the best programming style.
CU
--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
-- Jacob Briggs Systems Engineer
- [gameprogrammer] General Purpose Double Linked List Class
- From: Torsten Giebl
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Tom Wilson
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Torsten Giebl
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Bob Pendleton
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Jake Briggs
- [gameprogrammer] Re: General Purpose Double Linked List Class
- From: Bob Pendleton