Computer Science Canada

Recent C++ Tutorial Noobie+

Author:  Geminias [ Sat Sep 24, 2005 3:58 pm ]
Post subject:  Recent C++ Tutorial Noobie+

the other tutorials in this forum are out of date---don't include namespaces.

this tutorial is more recent and should be better to help avoid picking up any bad habits.

its noobie or expert oriented.

[url] http://cplus.about.com/od/learningc/index_r.htm[/url][/quote]

Author:  wtd [ Sat Sep 24, 2005 5:13 pm ]
Post subject: 

I would take some exception with the fact that they assert that C++ is an object-oriented language primarily. OOP is one way of getting things done in C++, but far from the only way, or even the most powerful.

C++ is a "multi-paradigm" language. It is big, complex and not easily categorized.

Author:  Geminias [ Sat Sep 24, 2005 5:52 pm ]
Post subject: 

well wtd, strictly in the context of beginners i'd say that kind of finite differentiation is as useful as nondescript differentiation.

for instance, i'm the smartest person i know, and i can't make much happen inside my brain with what you just said. lol

all i know is that i want to stay away from graphics and gaming as much as possible. graphics wise, the only thing i'm interested in is how to make myself a pretty little signature and avator.

Author:  wtd [ Sat Sep 24, 2005 6:37 pm ]
Post subject: 

Geminias wrote:
well wtd, strictly in the context of beginners i'd say that kind of finite differentiation is as useful as nondescript differentiation.


Well, what if the finite differentiation is essentially wrong?

Geminias wrote:
for instance, i'm the smartest person i know, and i can't make much happen inside my brain with what you just said. lol


Basically, C++ does make object-oriented programming possible. However, there's much more to it than that, and the assertion that all problems should be solve din an OO manner in C++ is just wrong.

Author:  Geminias [ Sat Sep 24, 2005 8:54 pm ]
Post subject: 

yeah i agree. i think an assertion like that is only made to keep it simple for the noobies. sometimes the most effective way to teach something is to downright lie about it. for instance, in grade 10 science class they'll tell you that bohr's electron model is correct. when in fact it's only accurate for one atom, hydrogen. it isn't until grade 11 that they teach you otherwise.

also, i was thinking about writing a program that will translate letters and numbers to binary. would anyone find a program like this useful?

Author:  wtd [ Sat Sep 24, 2005 9:02 pm ]
Post subject: 

Geminias wrote:
also, i was thinking about writing a program that will translate letters and numbers to binary. would anyone find a program like this useful?


Honestly, probably not. It's just that it's been done already, and is quite easy.

Write the program anyway.

If you're only inclined to write programs that people will find useful, then there's not much programming you can do. Wink

Author:  [Gandalf] [ Sat Sep 24, 2005 10:03 pm ]
Post subject: 

Quote:
If you're only inclined to write programs that people will find useful, then there's not much programming you can do.

Personally, I think that is the reason why so many people go into games. You can make something nobody has ever done before (not neccessarily a 4d game or something), and it will be a success - unique. It's not always easy, but that's probably the motivation behind it.

Author:  rizzix [ Sat Sep 24, 2005 10:48 pm ]
Post subject: 

Geminias wrote:
yeah i agree. i think an assertion like that is only made to keep it simple for the noobies.
Wrong (well.. in your context anyways). In C++ unfortunatly it's OOP side is a lot more complex than you think.

Author:  wtd [ Sat Sep 24, 2005 11:21 pm ]
Post subject: 

rizzix wrote:
In C++ unfortunatly it's OOP side is a lot more complex than you think.


With great power comes great responsibility.

Match the level of power you seek to the amount of responsibility you are willing to accept.

Author:  rizzix [ Sun Sep 25, 2005 10:17 am ]
Post subject: 

It dosen't have to be that way. You can have a very effective OO implementation and be just as powerful.

Author:  Geminias [ Sun Sep 25, 2005 10:35 am ]
Post subject: 

Quote:
If you're only inclined to write programs that people will find useful, then there's not much programming you can do.


you guys are dull-minded if you can agree to a baseless statement like that. sure, it may seem that every program useful is already made, but thats because the useful ones that haven't been made haven't been theoreticised yet. therefore they are beyond what you know.

you guys sound like those silly physicists who think they are one step away from discovering the origin of the universe. (that's what they've been saying since the 1600's and that's what they'll keep saying for as long as physics exists.)

i'm not a crude pessimist nor am i shallow.

the fact is simple, when you are looking into a mirror of course all you're going to see is what lies behind you. seeing past the mirror is the same as a fresh idea.

i'm sure i haven't convinced anyone and typing this has been an excessive waste of my time. but i'm just trying to be a good citizen.

Examples of programs no one has made:

-a program that analyzes peoples faces to inform you whether they are hot or not.
-a program that will secure a pc and make it impossible to crack.
-a program that downloads itself onto every computer connected to the internet and wishes everyone a hearty "hello" in big pink italic letters.

Author:  rizzix [ Sun Sep 25, 2005 10:55 am ]
Post subject: 

look... geez.. want me to ban you fool? you come here and light a spark.. that would eventually lead to a flame war... you could have said the same thing without being soo offensive...

besides your examples are not original (well maybe the 1st one) cuz they are already being implemented as you speak... it's nothing new.

Author:  Geminias [ Sun Sep 25, 2005 10:58 am ]
Post subject: 

sorry, i suppose i was a bit offensive..

i thought it would be helping the community to think of programming not as a dead end but as a universe of endless possibility.

i don't flame, but i do engage in intellectually enhancing conversation. if that's a problem than it would be a good idea to ban me.

Author:  rizzix [ Sun Sep 25, 2005 11:00 am ]
Post subject: 

intellectually enhancing conversation do not necessarily have to be offensive..

Author:  Hikaru79 [ Sun Sep 25, 2005 11:05 am ]
Post subject: 

Whoo boy. First you come with your finite differentiations and nondescript differentiation. Now you're trying to sound all high-and-mighty to someone who is simply trying to talk you away from the very high ledge you're about to jump yourself off of.

WTD was not saying in any way shape or form that you cannot make anything useful, or that everything interesting has already been developed. In fact, if you take some time to read the things he posts around here, you'll see he's just about the most interesting thing around. What he was saying is that you shouldn't be afraid to reinvent a few wheels for the sake of learning something. He was responding politely to your question of whether anyone would find a binary converter useful (google those two words and you'll see that there's more implementations of that then there are hairs on your head), but trying to tell you that it shouldn't discourage you from trying -- because you'll learn something.

Yes, there's lots of room for innovation, but someone who still seems to be unable to properly format URLS with BBCode is just not there yet, to be perfectly honest.

Quote:
Examples of programs no one has made:

-a program that analyzes peoples faces to inform you whether they are hot or not.
-a program that will secure a pc and make it impossible to crack.
-a program that downloads itself onto every computer connected to the internet and wishes everyone a hearty "hello" in big pink italic letters.

Nobody has made a program to tell you if someone is hot because that is probably the most subjective decision that it is possible to make. There ARE programs, however, that analyze video feeds of faces and are able to determine facial expressions, emotions, line of sight, etc.

A program that will secure a PC and make it impossible to crack .. just suggesting that is pretty laughable in itself. Same goes for your third idea.

Author:  wtd [ Sun Sep 25, 2005 11:24 am ]
Post subject: 

rizzix wrote:
It dosen't have to be that way. You can have a very effective OO implementation and be just as powerful.


Indeed. For the most part, languages which provide that are not overwhelmingly popular, though. Wink

Author:  Geminias [ Sun Sep 25, 2005 5:50 pm ]
Post subject: 

lol i've got people calling me "boy" and "fool" in this thread and i don't understand what i've said to offend anyone. sorry for having my own oppinion about things.

i started this thread to contribute something to this community and all you people have to say is that i'm a fool and a boy?

i guess i gotta learn to take a hint when i'm not welcome...

Author:  [Gandalf] [ Sun Sep 25, 2005 6:03 pm ]
Post subject: 

All of this happened after:

Quote:
you guys are dull-minded

etc...
You will not be flamed, or critisized for the most part, if you do not do it yourself.


: