Posted by doomraider on Wed Jul 21st at 8:22am 2004
doomraider
member
17 posts
12 snarkmarks
Registered: Mar 23rd 2003
Location: Pennsylvania

Occupation: none
Posted by ReNo on Wed Jul 21st at 11:25am 2004
ReNo
member
5457 posts
933 snarkmarks
Registered: Aug 22nd 2001
Location: Scotland
Occupation: Level Designer
Posted by Forceflow on Wed Jul 21st at 11:44am 2004
[addsig]
Forceflow
member
2420 posts
342 snarkmarks
Registered: Nov 6th 2003
Location: Belgium

Occupation: Engineering Student (CS)
Posted by doomraider on Wed Jul 21st at 5:13pm 2004
doomraider
member
17 posts
12 snarkmarks
Registered: Mar 23rd 2003
Location: Pennsylvania

Occupation: none
Posted by ReNo on Wed Jul 21st at 5:36pm 2004
I'm really meant to do it myself to be honest mate, with the uni course and all. I guess its acceptable to have others do it provided you give credit but I like to make everything myself, even if it does end up crap. Thanks for the offer though, I appreciate it ![]()
ReNo
member
5457 posts
933 snarkmarks
Registered: Aug 22nd 2001
Location: Scotland
Occupation: Level Designer
Posted by doomraider on Wed Jul 21st at 5:41pm 2004
| ? posted by ReNo |
|
I'm really meant to do it myself to be honest mate, with the uni course and all. I guess its acceptable to have others do it provided you give credit but I like to make everything myself, even if it does end up crap. Thanks for the offer though, I appreciate it |
No problem
Though I know what you mean, when you do a project by yourself, its alot easier to keep track of and keep organized.
doomraider
member
17 posts
12 snarkmarks
Registered: Mar 23rd 2003
Location: Pennsylvania

Occupation: none
Posted by Campaignjunkie on Wed Jul 21st at 8:03pm 2004
| ? quote: |
| im only 14 too, so maybe that has something to do with it. |
I just have to say that age really has nothing to do with it, to answer your question. I know some teenage programmers that are programming particle systems and whatever at age 15. As cheesy as it sounds, you can pretty much learn anything if you put your mind to it.
[addsig]
Campaignjunkie
member
1309 posts
291 snarkmarks
Registered: Feb 12th 2002
Location: West Coast, USA
Occupation: Student
Posted by Crono on Wed Jul 21st at 8:53pm 2004
Posted by ReNo on Wed Jul 21st at 10:31pm 2004
ReNo
member
5457 posts
933 snarkmarks
Registered: Aug 22nd 2001
Location: Scotland
Occupation: Level Designer
Posted by Monqui on Thu Jul 22nd at 5:06pm 2004
| ? posted by Campaignjunkie | ||
I just have to say that age really has nothing to do with it, to answer your question. I know some teenage programmers that are programming particle systems and whatever at age 15. As cheesy as it sounds, you can pretty much learn anything if you put your mind to it. |
Agreed. I mean, take DesPlesda. He's what, 7, and is quite skilled in most things computer related. Impressive little gnome, he is.
Monqui
member
743 posts
94 snarkmarks
Registered: Sep 20th 2002
Location: Iowa, USA

Occupation: Poor College Student
Posted by Crono on Thu Jul 22nd at 7:30pm 2004
| ? quote: |
| Yeah, thats one of the things that makes it harder to learn while young. Programming books really aren't cheap, but if you go to a uni to do computing (or just go to a uni that DOES computing) then you will most likely have access to a library that has plenty to offer. Obviously you CAN learn these things for free from the internet, but most of the time a book is far more in depth and clear, as well as consistant throughout.
|
... and correct. You'd be amazed how many people release "working" code or ideas on the Internet for C++ (specifically) and there's crap wrong with it. Like, they'll use recursion in a menu or something stupid like that. Or, they'll make something that uses the most inefficient ways possible, like making 20 thousand temp variables, like morons.
A book is the way to go, because the author knows what the hell he's talking about. Most programmers ... don't, even though they can use the language, when they do certain things they're not really aware of the implications of that operation. (An example is the postfix increment or decrement operator). [addsig]
Posted by DesPlesda on Sat Jul 24th at 3:10pm 2004
| ? quote: |
|
Agreed. I mean, take DesPlesda. He's what, 7, and is quite skilled in most things computer related. Impressive little gnome, he is. |
Wow, thanks Monqui. You're just out by a decade
DesPlesda
member
204 posts
30 snarkmarks
Registered: Feb 14th 2002
Location: Tasmania, Australia

Occupation: Student
Posted by scary_jeff on Sat Jul 24th at 6:22pm 2004
Posted by ReNo on Sat Jul 24th at 6:47pm 2004
ReNo
member
5457 posts
933 snarkmarks
Registered: Aug 22nd 2001
Location: Scotland
Occupation: Level Designer
Posted by Hornpipe2 on Sun Jul 25th at 5:28am 2004
| ? quote: |
| Like, they'll use recursion in a menu or something stupid like that. Or, they'll make something that uses the most inefficient ways possible, like making 20 thousand temp variables, like morons. |
I'll bet you get asked to help people with homework a lot, and you end up doing most of it for them and shaking your head at the bad code they bring in to begin with.
At least, that's how things work out for me. I've taken to hiding out at friends' apartments in the evenings before homework is due
EDIT: Oh yeah, this NS thing looks a lot like Codename Gordon. Anyone else tried that? It's a pretty entertaining Metal Slug-like game that is offered over Steam now. [addsig]
Hornpipe2
member
636 posts
94 snarkmarks
Registered: Sep 7th 2003
Location: Conway, AR, USA

Occupation: Programmer
Posted by ReNo on Sun Jul 25th at 2:03pm 2004
ReNo
member
5457 posts
933 snarkmarks
Registered: Aug 22nd 2001
Location: Scotland
Occupation: Level Designer
Posted by scary_jeff on Sun Jul 25th at 9:31pm 2004
Posted by Hornpipe2 on Sun Jul 25th at 9:41pm 2004
This:
i = 4 * (j++);
is different from this:
i = 4 * (++j);
If j was 3, then in the first case i would be 12, in the second i would be 16. After both operations j would be 4. Postfix does the operation first, then increments the variable, and prefix does the increment first, then the operation. Make sense? [addsig]
Hornpipe2
member
636 posts
94 snarkmarks
Registered: Sep 7th 2003
Location: Conway, AR, USA

Occupation: Programmer
Posted by Crono on Sun Jul 25th at 9:54pm 2004
I'd hope if you came to that situation and you weren't using globals (and you really shouldn't they're more hassle then they're worth) then you better be passing a pointer by value, if not, you're passing actual data by value ... you're making a nice old copy of the entire thing. (You can use by reference to avoid that, obviously)
But just imagine this: You do all that, and you have three function calls, one with in each function. So in your main you call a function passing this monstrosity of a data structure ... it calls a function ... then that calls a function ... Depending on the size of your tree and lists you could be in some deep s**t.
What if this thing is a tree of information in a banking service?
There's so many goofs you can do with simple crap, like putting two plus or minus signs in back instead of front ... or forgetting an ampersands.
HOWEVER, post fix DOES have a purpose. You use post fix if AND ONLY IF you want to inc or dec the value AFTER it is used in an expression.
This is useful in pipelining ... everywhere else its probably a better idea to suck it up and add a line of code saying "++ var;" instead of making three god damned copies of the thing on the heap.
Its funny, I'd say take a class on optimizing code (I never did, but this is the way I learned it) but I've seen some of their course work at certain school .... and they suck balls. They're using post fix and all sorts of garbage.
[Another Note]
I'd suggest learning C++ first, just because the language has so much power, it will take longer to learn, and when you're done, you inadvertently know C ... thats that. You have to memorize the fact that there are no classes (this no ->) and you're good to go. Going the other way around is much harder.
And again ... C is really only good for building fast programs. I don't mean you build them fast, I mean they run fast. C++ tends to have overhead, because you have so much freedom (you do in C as well, just not as much).
C++ suits a programmer at any level of capabilities ... unless they go out and get ahead of themselves (which is most often the case).
C has too many restrictions for someone to be really happy with it if its their first language.
But then there are die hards out there (like my old CS instructor) who's first language is assembly (Or Fortran ... bleh).
But maybe that's just my opinion ...
Horn, Dude, you fail the class if you're caught doing that ... and if they really get pissed at you they can very well throw you out of school. And I mean at my school, not yours. Like, if you recycle your programs, such as print it out and throw it in the recycle bin. It can very well show up as someone else's assignment and you both fail ... no questions. However, its not as hard as it sounds, since if you think you left something like that somewhere you can inform your instructor and they will know that a duplicate of your work might be coming in without your name on it.
Jeff, Don't worry ... Microsoft releases code all the time, I'm sure your code would be beautiful in comparison
Posted by Hornpipe2 on Tue Jul 27th at 2:21am 2004
From http://lists.slug.org.au/archives/slug/2003/05/msg00747.html
| ? quote: |
| I understand foo++ to be the postfix operator. The postfix operator must return a copy of the object in its *pre-modified* state, ie: Foo Foo::operator++(int) throw() { Foo old = *this; ++(*this); return old; } Where as the prefix operator, ++foo, just returns the object after it has been incremented. Foo & Foo::operator++() throw() { // here is where your real code to do the increment goes return *this; } Therefore, the postfix is the one with the superfluous copy, and hence is inefficient. Prefix just returns a reference, there is no additional copy involved. And in any case, the compiler will probably optimise the postfix operation anyway Rgz, Luke. |
Hornpipe2
member
636 posts
94 snarkmarks
Registered: Sep 7th 2003
Location: Conway, AR, USA

Occupation: Programmer
Snarkpit v6.1.0 created this page in 0.014 seconds.

