Classes Lesson Poll
Re: Classes Lesson Poll
Going to be going through it probably tonight or at least in the next day or two but is it bad I really want to vote for anal beads just because....
- viruskiller
- Posts: 399
- Joined: June 14th, 2012, 5:07 pm
Re: Classes Lesson Poll
i watched the video again last night and got a bit more of what classes are and how those pointers were working ,i forgot that pointers can be of any type ,even class type pointers:D,so that's how we can call a function by using a pointer to a class instance.
anyway not sure if i'm right but i don't think using recursion for linked list is better than just simple array,i mean they might be better for beeing of dynamic size,but if translated to another scale,where using thousands,maybe millions of items i don't think recursion could do anything there,so if u can in a future video maybe show a linked list example without using recursion:)
anyway not sure if i'm right but i don't think using recursion for linked list is better than just simple array,i mean they might be better for beeing of dynamic size,but if translated to another scale,where using thousands,maybe millions of items i don't think recursion could do anything there,so if u can in a future video maybe show a linked list example without using recursion:)
Re: Classes Lesson Poll
You are absolutely right virus. Recursion is sexy if you like like that sort of thing, but loops are faster and they don't give you stack overflows, so when you're working with large sets of data, loops are probably strictly better than recursive calls.
Why don't you try to implement the scoreboard, or some other kind of module, with linked lists and loops yourself?
Why don't you try to implement the scoreboard, or some other kind of module, with linked lists and loops yourself?
Chili
- viruskiller
- Posts: 399
- Joined: June 14th, 2012, 5:07 pm
Re: Classes Lesson Poll
yeah that sounds like a god challenge:D ,wish i had more free time now tough:(,anyway when i'll have the time i'll try to implement it:).
i also like that u don't choose the best code to teach us some concepts,instead using some solution that leave room for improvement and making us think on how to improve them,or how to code something different based on same concept:D
i also like that u don't choose the best code to teach us some concepts,instead using some solution that leave room for improvement and making us think on how to improve them,or how to code something different based on same concept:D