Page 1 of 2 12 LastLast
Results 1 to 40 of 66

Thread: c# worth learning?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Posts
    235
    Love C#. All for learning C#. C# is good.

    C# is a cross between vb6 and c++. You get true OO programming and the luxury of RAD. It's still a question whether it will take off, but most of us who know .NET love it.

    Do you prefer writing c++ of vb? If you prefer vb, then think about VB.NET.

  2. #2
    hellswraith
    Guest
    What I think in cool about C# compaired to VB.Net is it dosen't shield you too much from the complexities of .Net. Everything is like it should be with a true OO type language. None of this MyBase stuff...instead you use the 'this' keyword and such. It is more inline with C++ and Java ways of doing things. I love C#.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Posts
    235
    Yeah, even those who know vb6 and move to .NET seem to prefer C# over vb.net.

    I ordered a new computer yesterday. That mean I can finally get VS.NET. Woohoo!!!

  4. #4
    Jethro
    Guest
    Disagree, have moved from vb6 to .net and still prefer vb.net over C#. Am presuming with c# you still need framework on the computer you are going to distribute your app too, if so kind of defeats the purpose in my opinion....

  5. #5
    hellswraith
    Guest
    Defeats what purpose?

    How long did you spend with C#? My guess is not very long. It takes a couple weeks to get fully used to it, but once I did, VB.Net code just didn't look as good anymore. Of course that is me, and not everyone will have the same experience as I did.

  6. #6
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Originally posted by Jethro
    Disagree, have moved from vb6 to .net and still prefer vb.net over C#. Am presuming with c# you still need framework on the computer you are going to distribute your app too, if so kind of defeats the purpose in my opinion....
    What purpose? It is all about choice. Some people are just more comfortable with the C# syntax. The only major difference between VB and C# beyond syntax is the C# is a standard and any .NET compilers are most likely to only compile C#. Chances of a cross platform VB .NET compiler is nill...although a compiled VB app should still run on a Linux framework if it is written properly to standards.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  7. #7
    Jethro
    Guest
    Clearly didn't explain myself here. One of the major advantages to C and then C++ was portability between OSs, if you have to drag along all the framework stuff it kind of defeats the purpose of portability. Mind you l guess not all unix systems are equal....


    hellswraith, you are quite correct haven't really started looking at C# (pronouced sharp don't you know) and it looks like l might now be dragged off into PHP, which was what l was doing before .net Gee l wish l could be a manager and make these sorts of decisions.....

  8. #8
    Frenzied Member markman's Avatar
    Join Date
    Nov 2000
    Location
    Florida.
    Posts
    1,197
    I think Ill stick with no for now. Ive heard the sytax is simple; i could pick it up quickly if necessary.

    GO C++!!!!!!
    retired member. Thanks for everything

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Posts
    235
    C#'s syntax may be simple, but the .NET Framework and runtime libraries isn't quite as simple. The closest thing that comes to it is Java (and I really don't know how close, because I don't know Java that well), but to do anythng, you have to learn a whole new API.

  10. #10
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196
    Originally posted by csnyder
    but to do anythng, you have to learn a whole new API.
    True but everything is laid out so simply in the framework that everything is easy to find. IMHO It's all about syntax. I switched from C++ then to VB6 and now C#. VB.net is way to verbose for it's own good. Verbose to the point it is harder to read than VB6. The one perk about C# is most of the 3rd party documentation and MSDN Samps are in C#. I hear a lot of people complain about the .net framework. Why complain. I for one will not complain when someone gives me an easy to use lump of code tweaked to the max that I probably would have to code myself any way. It is a powerfull tool. My first Hello world app in C++ was considered bloated compared to the one I wrote in C some odd years ago. Disk is cheap these days and the framework only dogs out your comp considerably the first time it fires up after a fresh reboot.

  11. #11
    New Member
    Join Date
    Aug 2002
    Posts
    1
    One of the things that I like about C# is that you can create XML documentation while you write your apps. This makes it perfect for creating class libraries, as others who use those libraries in the future will have information about how your classes work and know exactly what your methods do.

    But on the other hand VB makes creating the user interface MUCH easier, in that you can use the drop-down lists at the top of the development environment to add event handlers. Wiring up events is kinda a pain in the ass in C#.

    So, I don’t think one language is better than the other, they each have their strengths and weaknesses, but I think C# is totally worth learning.

  12. #12
    Addicted Member MasterBlaster's Avatar
    Join Date
    Jul 2002
    Location
    Seattle
    Posts
    196
    Each Control Has the events listed in the propertys window. All you have to do is dbl click on them to code an event. I hadn't noticed it myself and was coding them by hand too.

  13. #13
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    The syntax of C# is pretty similar to C++. If you already know C++ then it won't that hard to pick up with C#. Although I don't find why Microsoft even developed C# when they already made VB OO and put other features in it.
    Baaaaaaaaah

  14. #14
    Hyperactive Member Scott Penner's Avatar
    Join Date
    Dec 2000
    Location
    Mountain View
    Posts
    327

    Talking

    They developed C# because it's better than both VB and C++.
    Having programmed in both I would have to agree.

    The idea in C++ that you can ignore errors is a piece of garbage. That's how nasty bugs like access violations can slip through when C# would have caught it immediately and forced you to deal with them...

    Garbage collection and Winforms alse make C# far easier to work
    with than C++.

    VB is just a dog now...I hate maintaining my legacy code. I wish I could just throw away all my VB code and just use C#!!
    -scott
    he he he

  15. #15
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    nah vb still rules


    but in some time i believe vb will start sucking each time more untill C# gets his riverbed

  16. #16
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551
    I'm just beginning to move towards c#... originally i had just planned to go into vb.net which is already a serious change from vb6... having almost no c++ experience, and some php experience, i was all for the vb/asp syntax. However, one key thing has pursuaded me to go to c# instead of vb.net ....

    c# is microsoft's new toy... they've told people at their seminars that c# is their new language and eventually vb could be phased out. I was at a fork in the road where learning c# and vb.net would be the same amount of work.. i'd imagine many other people are out there like me... why not learn a newer technology?

    there are other reasons why c# is better, including the fact stated before that any other compilers would probably support c# only, and c# would almost always be the language of choice when programming for multiple operating systems...

    quite a clear choice to me :/ though, it is tough switching.. i'm at the point where i know a lot of vb6, and have projects going still in vb6, but i'm trying to learn c#, but i don't know enough c# to code things usefully yet... but i'm gonna stick it out and learn!

    also, a university i will be applying to this year (University of Waterloo in Ontario, Canada), has joined microsoft in a sense and is making c# a required course for the computer sciences programming... so, hopefully i'll be one up on them if i end up going there ...

  17. #17
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    To add to what Redth was saying:
    If you come from VB6, you already know the syntax, and you have come to expect certain things from VB that isn't there in VB.Net. I see so many people get frustrated because they are trying to make old habbits work in VB.Net. Now take a VB programmer that moves to C#. They are totaly new to the syntax, and therefore looking at the documentation, trying new things out, etc. You will generally be more accepting of the .Net Framework if you are learning the new language from scratch. Once you learn C#, you can go over to VB.Net easily because you have .Net framework knowledge and your prior VB6 knowledge. The transition is very smooth. I am now having fun with both languages, but I lean WAY over on C# though because I feel it isn't as combersome as VB.Net is.

  18. #18
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    About the only current difference between VB.NET and C# is syntax. VB is - well -VB, while C# is Java. MS did not invent C#, they took the Java syntax and built a compiler that compiles to .NET apps.

    Scott Penner: The idea in C++ that you can ignore errors is a piece of garbage. That's how nasty bugs like access violations can slip through when C# would have caught it immediately and forced you to deal with them...

    I have to disagree. In fact, I have to disagree heavily.
    Code:
    int *p = 0;
    *p = 23;
    IF C# knew pointers, would it catch this? It wouldn't, and this is about the simplest access vioation you can do. You can't ignore errors in C++. How the hell did you come up with that idea?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  19. #19
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    C# is not Java. That is like saying C and C++ are the same. Just because two languages share a lot of the same type of stuff, doesn't mean they are the same.

    Also, C# can do pointers, although it isn't recommended.

    Why do you hate C# so much, it is a great language, even though it takes all the good stuff from the other languages out there.

  20. #20
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    I don't hate C#. I didn't say I hate C#.
    BUT someone up there said C# is so much better than C++, and I just happen to love C++.
    And someone (and MS) said MS invented C#, by taking C++ and stripping away all unnecessary, overly complicated and dangerous parts. That's exactly what Sun did, and the result LOOKS the same. Give C# and Java source to a VB6 or C++ programmer and they probably couldn't tell it apart without extensive looking.
    Java doesn't know real namespaces, but that's the only large difference I see.
    Both are compiled to bytecode (MSIML or JBC).
    The large difference between the two is what goes on under the hood. But look at it this way: For both Java and C#, the command to write something to the console is
    System.Console.WriteLine

    And now they want to introduce J# too - total waste IMHO.


    I want to repeat it again: you cannot ignore errors in C++!
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  21. #21
    Hyperactive Member Scott Penner's Avatar
    Join Date
    Dec 2000
    Location
    Mountain View
    Posts
    327
    Sorry to argue with you...

    I use C++ all the time, and it doesn't force you to handle errors in many situations. Most ATL methods return an HRESULT. Do I have to look at the HRESULT? No! Of course it makes no sense and it's poor programming, but I can ignore it. Then, I can get an access violation or some other ambiguous error somewhere down the road that is not so easily traced back to the problem. This happens. It is a fact. In the world of C# an exception is thrown that would halt execution at that line unless dealt with.

    I would say a majority of MFC / ATL methods return error codes instead of raising exceptions. Do you disagree?

    Just for grins...Does a release build of this code throw an error?
    Code:
      int i [20];
      i[20] = 5;
    -scott
    he he he

  22. #22
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    It might. This code will:
    vector<int> vi(20);
    vi[20] = 100;

    But the thing is: this is not a feature of C#. This is a feature of the CLR, that it ONLY throws exceptions and never returns error codes. I can achieve the same using managed C++.
    Seen this way, I admit that you can ignore library errors in non-managed languages (C, C++, Pascal, ...), I only thought about language errors.

    MFC suffers from it's age. It is older than exceptions, older than the STL and older than RTTI.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  23. #23
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    IMO, C# is worth learning if you don't care that you can only program windows .NET with it. If you already know VB.NET, I see no point in learning it. If you already know C++, you can go for managed C++ if you plan to use it from time to time, or learn C# (only a small step) if you want to use .NET heavily.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  24. #24
    Hyperactive Member Scott Penner's Avatar
    Join Date
    Dec 2000
    Location
    Mountain View
    Posts
    327
    Yeah that's what I meant.
    It's not a knock on unmanaged C++, it's just a small difference that can make all dot net languages (you're right, not just C#) a bit easier to debug.

    C# is a cool language, but you're definitely boarding the M$ bus if it's all you know. But, I guess the same applies to VB...
    -scott
    he he he

  25. #25
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I admit that using C++ gives you the freedom of writing for different OS's, but I think real soon that you will see C# being used on different OS's too. If you haven't seen the Mono project, then it might be worth a look.
    http://www.go-mono.com/

  26. #26
    I think c# will be a worthy language of at least knowing in the future, it might come in handy, you never know. It's pretty easy to learn too depending on your programming background.
    ‚©‚ºB

  27. #27
    New Member
    Join Date
    Sep 2002
    Posts
    2
    I've a VB developer but I've been using C# for over a year and I love it. Looking at all Microsofts press releases and documentation I get the impression that they will push C# as the primary .net language. While VB.net in many ways is just as powerful as C# I think that if you go the VB.net route it would pay to gradually build up your C# skillset on the side
    Mark Johnson“Cleaning your house while your kids are still growing is like shoveling the sidewalk before it stops snowing”

    My Sites | Domestic Cleaning London|

  28. #28
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    i cant understand why all this chat...i work in vb.net and when i look at C# sintax i understand all as well as vb.net...omg...they are exactly the same..the logic is the same...why dont learn C# or VB.NET and learn the sintax of the other? they are the same..some times u find the code in C# other in VB.NET but its almost the same...

  29. #29
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    PT Exorcist you absolutly correct, but the problem is most VB.Net people don't even want to learn C#. They complain when I give them an example in C# because they don't even want to learn the syntax enough so they can convert code.

    I love knowing the syntax of both languages. I can convert back and forth relatively easy. I try to tell everyone that knowing both is just going to give you more source code to look at and use. Then you can pick the language you like, and use it.

  30. #30
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Or use both, thanks to the .NET mechanism.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  31. #31
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    Is it true or not that C# runs 15% of the speed of C++? Seems Slow...

    M.
    VS.NET 2003

    Need to email me?

  32. #32
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    That depends.

    Normal C++ is faster, as it is native code, opposed to the bytecode of C# or Managed C++.

    Depending on the usage C# would reach about 50 to 95% of the speed of C++. The usage might be CPU-intensive algorithms (50% or even less) over memory-intensive algorithms (80-90%) over waiting for hard disks and other devices to do something (95-99%) to waiting for user input (100%).

    The typical office application will not be noticeably slower on average, a game will suffer heavily.
    .NET was developed for office applications though, not for games.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  33. #33
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    I remember seeing a game engine that was wrote in C#. From what I have heard, it really isn't that slow either.

  34. #34
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    that kind of ppl should not be real programmers...real programms get interested by understanding the logic behind programs, behind languages, behind the machine and not only by 1 damn sintax..

    Originally posted by hellswraith
    PT Exorcist you absolutly correct, but the problem is most VB.Net people don't even want to learn C#. They complain when I give them an example in C# because they don't even want to learn the syntax enough so they can convert code.

    I love knowing the syntax of both languages. I can convert back and forth relatively easy. I try to tell everyone that knowing both is just going to give you more source code to look at and use. Then you can pick the language you like, and use it.

  35. #35
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Yeah, I've also decided to make the switch from vb to C#. To be quite honest, I'm getting to the point where I am getting sick of developing in vb. Like someone above stated, vb.net it to verbose. However, that does not mean I'm not going to learn and practice the language. I like the fact that I now get to re-learn a language all over again.

    I've also talked to companys where they are more inclined to higher someone with c# skills over vb.net b/c typically, C# programmers are porting from languages such as C++, Java, or other oop centric languages. In the employers eyes, he or she is more versed in oop development.

    Just my 2 cents..

  36. #36
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018
    I program in GWBasic.

    Much better than VB.Net or C#

    Parksie

  37. #37
    Junior Member
    Join Date
    May 2002
    Posts
    20
    My 2 Cents:

    I used to code in C & C++ throughout college and for quite awhile after, but the companies I worked for tended to focus on visual basic... so out of nessisity, VB became my primary platform. As .NET came into the picture, I naturally grew into VB.NET, and, after a great deal of frustration, I gradually learned to love the changes.

    Now I find myself facing the same choices I made back when I went from a C++ programmer to a VB programmer... the demand in the job market. The sad fact, in these parts anyway, is that .NET programmers still aren't in huge demand at all (I sure hope that will change soon). But of those companies that ARE looking for .NET professionals... most seem to want those with a c# background. So here I go again. I'm not "switching" from vb.net to C#... but I'm definately working toward being equally comfortable with both languages.

    Other than that... I still have trouble seeing any significant advantage of one over the other over the scope of things.

  38. #38
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Since you already know C++ AND VB.NET it should be a snap for you to learn C#.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  39. #39
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Yeah, I didn't have the luxury of knowing C++, however, I have had a little experience with J++.

    It's only been about 4 days since I began my quest in C#, and I already feel very comfortable with the syntax and language. Once you know what the functionality the framework offers or how to find out, the rest is fairly straight forward.

  40. #40
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Yes, indeed. I didn't know how to keep my app from exiting, so I thought "Well, a message loop is something that concerns the whole app, so let's see if there is an 'Application' class." What should I say, there is one and I found the method I need.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width