Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Hamlet

Am I being unreasonable?

This topic is 5721 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok I have this college professor ( for c++ class intro to computer scienceII ) who has assigned a paper with these specs: "To help us better understand where C++ fits into the world of programming (and as part of Exam #2), you will be required to write a technical paper on how a component of C++ compares with a similar component in another programming language. " Well ok that sounds nice and all but would''nt you have to know another programing language to realy do that? The examples he gives are these: "Some example topics may include: -How plymorphism works in C++ compared to Java -How Java''s standard library compares to the new C++ standard library -How C++ standards are developed as compared to Java standards -How C++ compares to C# (Microsoft''s new programming language) -The functionality of the C++ STL as compared to the built-in libraries of other languages (such as Java, Modula-2, ADA, etc) -Visual programming in C++ as compared to Visual Basic " Ok so can you realy do any of those without knowing Java , C# ,Modula-2, ADA, etc... Can anyone put me onto the info (ie a website etc ...) that would help me here? Any help you can give is appreciated. "... thats the rub...

Share this post


Link to post
Share on other sites
Advertisement
Isn''t college all about learning? What would be the point of asking you a question comparing things that you know a lot about?


http://www.stodge.net - the powerhouse in personal commentary

Share this post


Link to post
Share on other sites
You don''t know anything but c/c++? okok


I''d try to find some article on the internet that compares two languages for you, and derive from that (as little as possible, of course)

Share this post


Link to post
Share on other sites
Just Google. I can tell you from personal experience that there is a vast selection of sites, guides and tutorials written to introduce C++ programmers to Java, which often give you a pretty good overview of the most striking differences.

Share this post


Link to post
Share on other sites
I agree and I dont mind learning this stuff at all, but come on learning a whole other language so we can write this paper? Mabey im just being a wuss but it seams strange to me.

"... thats the rub...

Share this post


Link to post
Share on other sites
Ok that all sounds like good advice I will keep on googleing! And if anyone else finds a sight that might help please post.

Thanks!

"... thats the rub...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
-How plymorphism works in C++ compared to Java


Google searche on: static binding, late binding, type introspection, run-time type-interface (RTTI), instanceOf keyword, multiple inheritance vs. single inheritance and interfaces/protocols. I''d pick this one, but if you don''t know much about OO in C++ you''re hosed.

quote:
-How Java''s standard library compares to the new C++ standard library


quote:
-The functionality of the C++ STL as compared to the built-in libraries of other languages (such as Java, Modula-2, ADA, etc)


Basically the same question with the latter being more general. You could take the approach of comparing and constrasting purely OO-based libraries (Java) against more generative-based librararies (STL). You would probably fall into the trap of arguing OO against generative programming though, which obviously isn''t what your assignment is about. I wouldn''t do this one as you have to have in-depth knowledge of a languages libraries to accomplish it. Pass.

-
quote:
How C++ standards are developed as compared to Java standards


Politics. Pass.

quote:
-How C++ compares to C# (Microsoft''s new programming language)


Too broad. Pass.

quote:
-Visual programming in C++ as compared to Visual Basic


You would have to compare VB to a specific visual programming environment built around C++. If you know of one such tool and can tinker with it a bit you could make a decent argument. VB is easy to learn but you would probably be expending too much effort in the learning of it. Pass.

You could argue type-safety mechanisms in C++ against a language like ML (Ocaml), ADA, or Scheme, but that would require some rather involved understanding of type-safety as a fundamental issue in program correctness. C++ is basically an offender on this front because it allows type coersion (casting). Might be worth a shot. Basic Scheme and ML take around a week to learn, if that.

Another topic you could argue is how the module system in C++ compares to one in another language. Java and ML come to mind as worthy opponents. ML has functional modules and Java solves the problem of having to type things twice (.h and .cpp) as well as providing more standardized ways of packaging code, such as jar-files and packages.

I could blabber on for even longer... but I''ll stop.

Share this post


Link to post
Share on other sites
quote:
Original post by Hamlet
I agree and I dont mind learning this stuff at all, but come on learning a whole other language so we can write this paper? Mabey im just being a wuss but it seams strange to me.




I can''t really suggest anything else that hasn''t already been mentioned (Google...), but just so you know.... for my Comp. Sci. class we just had to write a paper stating the positives and negatives (language design wise) of LISP (we actually used Scheme...) Anyway, we also had to write 5 programs which all used different aspects of the language and these programs were to be discussed in the paper as well... all due within one week. The catch is, "we" had never seen LISP or anything LISP-like before (they only teach C++ and a little Java...and very few people actually learn anything outside of class...) So you''re not alone in having to learn a new language just to write a paper. Sorry that it''s kinda a useless post, just thought you might like to know.

-Adam

Share this post


Link to post
Share on other sites
quote:
run-time type-interface (RTTI)

I''ve heard it called run time type identification, or run time type information, but never interface.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Another topic you could argue is how the module system in C++ compares to one in another language. Java and ML come to mind as worthy opponents. ML has functional modules and Java solves the problem of having to type things twice (.h and .cpp) as well as providing more standardized ways of packaging code, such as jar-files and packages.

Best suggestion yet. C++ needs to eliminate header files - or at least make them optional (binary packages that expose public interfaces themselves are one elegant solution) - and forward declaration.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!