The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > The ProgrammersTalk > General Talk


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags: ,

Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 07-07-2007, 06:49 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,118
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Icon8 Is C# Evolution of C++?

Is this comment true? Many people told me that C# is the substitution for C++ language. It is much more simpler than C++ and have similarities with Java. As many people told me that programming in C++ is much more difficult than if I program with Java, but I still plan to learn it in the future as currently I'm learning C# in ASP.NET

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #2 (permalink)  
Old 07-07-2007, 07:29 PM
rpgfan3233 rpgfan3233 is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jul 2007
Posts: 118
iTrader: (0)
rpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura about
C# is very close in syntax to Java. I'm not sure what it inherits from C++, except maybe the using directive and the idea of a difference between signed and unsigned values. Then again, I've never seriously looked at C# more than a couple of tutorials.

I personally find the locations of useful functions in C# less than easy to figure out. I tried helping my friend who was taking C# by using what knowledge I have of Java. It turned out that things were in completely strange places. For example, he was working with regular expressions at the time. Knowing that you could easily use something like someString.matches("[0-9]+[0-9]*") in Java (thanks to the java.lang.String class), I hunted for something near there in C#. However, what I found was nowhere near strings in C#. It turned out that in C#, you had to first create new Regex objects (System.Text.RegularExpressions), which then had a member method "IsMatch" to test a string against the Regex object. Yes, I know, small difference, right? I personally find Convert.ToInt32("49") rather unusual. I prefer the simpler Integer.parseInt("49"). I also dislike the fact that it is pretty much required to include "using System;" at the top of a C# program because everything is derived from System, such as System.Console.WriteLine or System.Convert.ToInt32. I hate to sound like I'm criticising C# (I probably am), but I feel that Java has set things up much better. It isn't without its problems or criticisms, but I do feel that Java is a superior language. Now if only Java apps could run as fast as native code apps...

As for C++ being more difficult than Java, that much is true. With C++, the minimal amount of things are provided to allow you to program efficiently, while also allowing you to reinvent the wheel to suit your purposes. I started with C++ and then moved to Java. Something as simple as Integer.toString(14) in Java needs to be implemented by you (unless you use C++.NET, in which case, you might as well just go the C# way and use someint = 14; someint_string = someint.ToString() usually via stringstreams. I wonder if C# has anything like Java's java.math.BigInteger class... I work with large numbers a lot, so I find BigInteger very useful...

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #3 (permalink)  
Old 07-07-2007, 10:29 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,118
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Quote:
It turned out that in C#, you had to first create new Regex objects (System.Text.RegularExpressions), which then had a member method "IsMatch" to test a string against the Regex object.
do you know that in Java it's really similar that when you want to create a function to replace something?

Last time I had a project where I had to create a notepad and implement all of its function, it was a pretty big project at that time, and I had a lot of fun. I used REGEX and replaceAll method in java which I forgot inherit from which class to implenent replace all function in notepad!!!

Quote:
Now if only Java apps could run as fast as native code apps...
many people said so too, but my friend who's actually a java programmer told me that it's not much difference since Sun always developed new JVM versions that will load faster... i'm not sure if it's true, well he said the difference is not as much it's about some seconds or so to compile and loads...

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

   Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 09:58 AM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50