C# code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alvin Bruney

    #16
    Re: C# code

    right. thanks for clarifying.

    I agree with your analysis. you never get to see how ugly C++ is if you are
    right up in there working it.

    I always barked at people who claimed C++ was ugly. Then I spent a year in
    C# came back to C++ (to help a student write some code actually) and I was
    like 'what the f#$%@ is this S@#$%% That's when it hit me how bad the model
    was. That's when I could see what the java programmers were fussing about.
    That's when I realized pointers and pointer syntax was difficult if not
    problematic.

    But there are still some good things about the language though. I like STL,
    templates, generics, the idea behind ATL and gowd bless the MFC. Still, say
    what you want, C++ is intimidating. I now see that it doesn't need to be. It
    is pointlessly intimidating. Its such a pitty that folk like Stroustrup and
    Gosling cannot see the error in their ways and embrace this new language,
    maybe even copy from it to extend C++ and breathe new life into it a dying
    platform, cuz it's going down.

    regards

    --


    -----------
    Got TidBits?
    Get it here: www.networkip.net/tidbits
    "Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
    news:7piob.6534 1$Tr4.174983@at tbi_s03...[color=blue]
    >
    > "Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
    > message news:%23Jc9T2vn DHA.3612@TK2MSF TNGP11.phx.gbl. ..[color=green][color=darkred]
    > > > I recently had to go write a MC++ class and got a reminder on how[/color][/color]
    > annoying[color=green][color=darkred]
    > > > it was to have to double define methods,[/color]
    > >
    > > No runtime allows double definition of methods, I'm sure I must have[/color]
    > missed[color=green]
    > > your point. Would you care to clarify?. Overloaded methods are entirely
    > > different.
    > >[/color]
    > I mean, for example
    > //in a header file
    > void MyFunction(Stri ng *x);
    >
    > //in my CPP file
    > void MyFunction(Stri ng *x)
    > {
    >
    > }
    >
    > then, I want to change MyFunction to MyFunction(Stri ng *x, int y); I have[/color]
    to[color=blue]
    > change the code in 2 places, which I find to be a bad design, two
    > definitions of the method that must match.[color=green]
    > > --
    > >
    > >
    > > -----------
    > > Got TidBits?
    > > Get it here: www.networkip.net/tidbits
    > > "Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
    > > news:lq0ob.5962 9$Fm2.42234@att bi_s04...[color=darkred]
    > > > Interesting, one of my favorite features of C#(and java, I suppose)[/color][/color][/color]
    was[color=blue][color=green]
    > > the[color=darkred]
    > > > death of the header file.
    > > >
    > > > I recently had to go write a MC++ class and got a reminder on how[/color][/color]
    > annoying[color=green][color=darkred]
    > > > it was to have to double define methods, to have parameter lists and[/color]
    > > return[color=darkred]
    > > > types defined in TWO places, or my favorite in C, where if you forgot[/color][/color][/color]
    to[color=blue][color=green][color=darkred]
    > > > define a method the compiler couldn't find it... Hell, when I'm[/color][/color][/color]
    writing[color=blue][color=green]
    > > C++[color=darkred]
    > > > code under 500 lines I'll often write my classes like I would in C#.
    > > >
    > > > I personally do not want to go back to these days, I would risk saying[/color]
    > > that[color=darkred]
    > > > it wasn't overlooked but turned down inherently.
    > > >
    > > > I guess I jsut don't like header files...I wonder what others think.
    > > >
    > > > "Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote[/color][/color]
    > in[color=green][color=darkred]
    > > > message news:%23VA%23bo pnDHA.2732@TK2M SFTNGP11.phx.gb l...
    > > > > C# is great but it does have some short comings. Here, I examine one[/color][/color]
    > of[color=green][color=darkred]
    > > > them
    > > > > which I definitely think is a shortcoming.
    > > > > Coming from C++, there seems to be no equivalent in C# to separate[/color][/color]
    > code[color=green][color=darkred]
    > > > > cleanly for the user's benefit. Why is this important? Because a[/color][/color][/color]
    user[color=blue][color=green]
    > > gets[color=darkred]
    > > > > to maintain this code, not a machine. C++ exposed us to header files[/color]
    > > which[color=darkred]
    > > > > was a way, among other things, to cleanly separate class[/color][/color]
    > implementation[color=green][color=darkred]
    > > > from
    > > > > declaration. Why was this overlooked in C#? Mixing implementation[/color][/color][/color]
    and[color=blue][color=green][color=darkred]
    > > > > declaration inside a class is so ugly. Yuck!
    > > > >
    > > > > Sure intellisense can take you a long way, but it's a bandaid on a[/color]
    > > bruise.[color=darkred]
    > > > > Though it is possible to separate classes out into namespaces in C#[/color][/color]
    > you[color=green][color=darkred]
    > > > > still have to port the implementation with it. Yuck! A class can be
    > > > > conceived without an implementation, if only for discussion[/color][/color][/color]
    purposes.[color=blue][color=green]
    > > You[color=darkred]
    > > > > are not always interested in the implementation, that is why it is[/color][/color][/color]
    so[color=blue][color=green][color=darkred]
    > > > yucky.
    > > > > What if you want to take the class function declarations with you to[/color][/color][/color]
    a[color=blue][color=green][color=darkred]
    > > > > meeting to talk about your new class? This does actually happen[/color][/color][/color]
    quite[color=blue][color=green][color=darkred]
    > > > > frequently. You can't do that in C# without intimately knowing the[/color][/color][/color]
    cut[color=blue][color=green]
    > > and[color=darkred]
    > > > > paste editor. Intellisense can't help you there. A class has meaning
    > > > outside
    > > > > of the canvas it was carved on. A class does exist outside of the[/color][/color]
    > visual[color=green][color=darkred]
    > > > > studio GUI. Do not forget, there is no intellisense at the command[/color][/color]
    > line.[color=green][color=darkred]
    > > > > Probably higher level UML tools in C# builder will fit the bill, but
    > > > that's
    > > > > not the point. It should be part of the language implementation[/color][/color]
    > because[color=green][color=darkred]
    > > > > developers get to maintain that code. It's even more troublesome if[/color]
    > > these[color=darkred]
    > > > > UML solutions are not included in the box.
    > > > >
    > > > > We've all gotten used to this mess, and if you come from Java,[/color][/color][/color]
    you've[color=blue][color=green][color=darkred]
    > > > always
    > > > > had it so it seems odd to be without it. But it doesn't make it[/color][/color][/color]
    right.[color=blue][color=green][color=darkred]
    > > > There
    > > > > is (make that was) a better way. I remember that time when when
    > > > > implementation and declaration were different beasts. Sure the[/color][/color]
    > compiler[color=green][color=darkred]
    > > > > could care less if the implementation was on the moon and[/color][/color][/color]
    declaration[color=blue]
    > on[color=green][color=darkred]
    > > > > mars, but then again, a machine does not usually get to maintain[/color][/color][/color]
    code[color=blue][color=green][color=darkred]
    > > > right?
    > > > > So it was never about the machine. It's about making life easy for
    > > > > developers. C# has failed in this regard. A more difficult life
    > > > maintaining
    > > > > code means less productivity. Yes, it does make me less productive[/color][/color][/color]
    if[color=blue]
    > I[color=green][color=darkred]
    > > > need
    > > > > to figure out the moving parts of a class.
    > > > >
    > > > > I feel better now after venting.
    > > > >
    > > > > --
    > > > >
    > > > >
    > > > > -----------
    > > > > Got TidBits?
    > > > > Get it here: www.networkip.net/tidbits
    > > > >
    > > > >
    > > >
    > > >[/color]
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • Daniel O'Connell

      #17
      Re: C# code


      "Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
      message news:e3iGd%230n DHA.1708@TK2MSF TNGP12.phx.gbl. ..[color=blue]
      > right. thanks for clarifying.
      >
      > I agree with your analysis. you never get to see how ugly C++ is if you[/color]
      are[color=blue]
      > right up in there working it.
      >
      > I always barked at people who claimed C++ was ugly. Then I spent a year[/color]
      in[color=blue]
      > C# came back to C++ (to help a student write some code actually) and I was
      > like 'what the f#$%@ is this S@#$%% That's when it hit me how bad the[/color]
      model[color=blue]
      > was. That's when I could see what the java programmers were fussing about.
      > That's when I realized pointers and pointer syntax was difficult if not
      > problematic.
      >
      > But there are still some good things about the language though. I like[/color]
      STL,[color=blue]
      > templates, generics, the idea behind ATL and gowd bless the MFC. Still,[/color]
      say[color=blue]
      > what you want, C++ is intimidating. I now see that it doesn't need to be.[/color]
      It

      It is troublingly intimidating sometimes, in some ways because of
      compatibiltiy. I like some features but I consider some of them to be badly
      designed. Templates and macros for example are often a source of absolute
      HELL, one little mistake somewhere in a maze of define muck and you get
      errors that don't make sense. One problem I was having was trying to use a
      macro that required another macro to be included that I had forgotten
      about...its messy and unpleasent. There is alot of power there but they can
      also totally destroy any chance you have of figuring out what really went
      wrong in some circumstances. I am willing to give up a little of that power
      for C# style generics and no macros.
      [color=blue]
      > is pointlessly intimidating. Its such a pitty that folk like Stroustrup[/color]
      and[color=blue]
      > Gosling cannot see the error in their ways and embrace this new language,
      > maybe even copy from it to extend C++ and breathe new life into it a dying
      > platform, cuz it's going down.
      >
      > regards
      >
      > --
      >
      >
      > -----------
      > Got TidBits?
      > Get it here: www.networkip.net/tidbits
      > "Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
      > news:7piob.6534 1$Tr4.174983@at tbi_s03...[color=green]
      > >
      > > "Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote[/color][/color]
      in[color=blue][color=green]
      > > message news:%23Jc9T2vn DHA.3612@TK2MSF TNGP11.phx.gbl. ..[color=darkred]
      > > > > I recently had to go write a MC++ class and got a reminder on how[/color]
      > > annoying[color=darkred]
      > > > > it was to have to double define methods,
      > > >
      > > > No runtime allows double definition of methods, I'm sure I must have[/color]
      > > missed[color=darkred]
      > > > your point. Would you care to clarify?. Overloaded methods are[/color][/color][/color]
      entirely[color=blue][color=green][color=darkred]
      > > > different.
      > > >[/color]
      > > I mean, for example
      > > //in a header file
      > > void MyFunction(Stri ng *x);
      > >
      > > //in my CPP file
      > > void MyFunction(Stri ng *x)
      > > {
      > >
      > > }
      > >
      > > then, I want to change MyFunction to MyFunction(Stri ng *x, int y); I[/color][/color]
      have[color=blue]
      > to[color=green]
      > > change the code in 2 places, which I find to be a bad design, two
      > > definitions of the method that must match.[color=darkred]
      > > > --
      > > >
      > > >
      > > > -----------
      > > > Got TidBits?
      > > > Get it here: www.networkip.net/tidbits
      > > > "Daniel O'Connell" <onyxkirx@--NOSPAM--comcast.net> wrote in message
      > > > news:lq0ob.5962 9$Fm2.42234@att bi_s04...
      > > > > Interesting, one of my favorite features of C#(and java, I suppose)[/color][/color]
      > was[color=green][color=darkred]
      > > > the
      > > > > death of the header file.
      > > > >
      > > > > I recently had to go write a MC++ class and got a reminder on how[/color]
      > > annoying[color=darkred]
      > > > > it was to have to double define methods, to have parameter lists and
      > > > return
      > > > > types defined in TWO places, or my favorite in C, where if you[/color][/color][/color]
      forgot[color=blue]
      > to[color=green][color=darkred]
      > > > > define a method the compiler couldn't find it... Hell, when I'm[/color][/color]
      > writing[color=green][color=darkred]
      > > > C++
      > > > > code under 500 lines I'll often write my classes like I would in C#.
      > > > >
      > > > > I personally do not want to go back to these days, I would risk[/color][/color][/color]
      saying[color=blue][color=green][color=darkred]
      > > > that
      > > > > it wasn't overlooked but turned down inherently.
      > > > >
      > > > > I guess I jsut don't like header files...I wonder what others think.
      > > > >
      > > > > "Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com>[/color][/color][/color]
      wrote[color=blue][color=green]
      > > in[color=darkred]
      > > > > message news:%23VA%23bo pnDHA.2732@TK2M SFTNGP11.phx.gb l...
      > > > > > C# is great but it does have some short comings. Here, I examine[/color][/color][/color]
      one[color=blue][color=green]
      > > of[color=darkred]
      > > > > them
      > > > > > which I definitely think is a shortcoming.
      > > > > > Coming from C++, there seems to be no equivalent in C# to separate[/color]
      > > code[color=darkred]
      > > > > > cleanly for the user's benefit. Why is this important? Because a[/color][/color]
      > user[color=green][color=darkred]
      > > > gets
      > > > > > to maintain this code, not a machine. C++ exposed us to header[/color][/color][/color]
      files[color=blue][color=green][color=darkred]
      > > > which
      > > > > > was a way, among other things, to cleanly separate class[/color]
      > > implementation[color=darkred]
      > > > > from
      > > > > > declaration. Why was this overlooked in C#? Mixing implementation[/color][/color]
      > and[color=green][color=darkred]
      > > > > > declaration inside a class is so ugly. Yuck!
      > > > > >
      > > > > > Sure intellisense can take you a long way, but it's a bandaid on a
      > > > bruise.
      > > > > > Though it is possible to separate classes out into namespaces in[/color][/color][/color]
      C#[color=blue][color=green]
      > > you[color=darkred]
      > > > > > still have to port the implementation with it. Yuck! A class can[/color][/color][/color]
      be[color=blue][color=green][color=darkred]
      > > > > > conceived without an implementation, if only for discussion[/color][/color]
      > purposes.[color=green][color=darkred]
      > > > You
      > > > > > are not always interested in the implementation, that is why it is[/color][/color]
      > so[color=green][color=darkred]
      > > > > yucky.
      > > > > > What if you want to take the class function declarations with you[/color][/color][/color]
      to[color=blue]
      > a[color=green][color=darkred]
      > > > > > meeting to talk about your new class? This does actually happen[/color][/color]
      > quite[color=green][color=darkred]
      > > > > > frequently. You can't do that in C# without intimately knowing the[/color][/color]
      > cut[color=green][color=darkred]
      > > > and
      > > > > > paste editor. Intellisense can't help you there. A class has[/color][/color][/color]
      meaning[color=blue][color=green][color=darkred]
      > > > > outside
      > > > > > of the canvas it was carved on. A class does exist outside of the[/color]
      > > visual[color=darkred]
      > > > > > studio GUI. Do not forget, there is no intellisense at the command[/color]
      > > line.[color=darkred]
      > > > > > Probably higher level UML tools in C# builder will fit the bill,[/color][/color][/color]
      but[color=blue][color=green][color=darkred]
      > > > > that's
      > > > > > not the point. It should be part of the language implementation[/color]
      > > because[color=darkred]
      > > > > > developers get to maintain that code. It's even more troublesome[/color][/color][/color]
      if[color=blue][color=green][color=darkred]
      > > > these
      > > > > > UML solutions are not included in the box.
      > > > > >
      > > > > > We've all gotten used to this mess, and if you come from Java,[/color][/color]
      > you've[color=green][color=darkred]
      > > > > always
      > > > > > had it so it seems odd to be without it. But it doesn't make it[/color][/color]
      > right.[color=green][color=darkred]
      > > > > There
      > > > > > is (make that was) a better way. I remember that time when when
      > > > > > implementation and declaration were different beasts. Sure the[/color]
      > > compiler[color=darkred]
      > > > > > could care less if the implementation was on the moon and[/color][/color]
      > declaration[color=green]
      > > on[color=darkred]
      > > > > > mars, but then again, a machine does not usually get to maintain[/color][/color]
      > code[color=green][color=darkred]
      > > > > right?
      > > > > > So it was never about the machine. It's about making life easy for
      > > > > > developers. C# has failed in this regard. A more difficult life
      > > > > maintaining
      > > > > > code means less productivity. Yes, it does make me less productive[/color][/color]
      > if[color=green]
      > > I[color=darkred]
      > > > > need
      > > > > > to figure out the moving parts of a class.
      > > > > >
      > > > > > I feel better now after venting.
      > > > > >
      > > > > > --
      > > > > >
      > > > > >
      > > > > > -----------
      > > > > > Got TidBits?
      > > > > > Get it here: www.networkip.net/tidbits
      > > > > >
      > > > > >
      > > > >
      > > > >
      > > >
      > > >[/color]
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Richard A. Lowe

        #18
        Re: C# code

        Alvin, no-one's out to get you. I don't feel I or anyone else has
        'attacked' you - but if you feel that way, then, I am sorry if I've failed
        to convey that with the attempt at a joke in my post... it wasn't aimed at
        you.

        All I am interested in is what the discussion is about. I can't see the use
        cases for header files, just answer my and Jon and Ray's arguments and maybe
        you'll convince one or more of us. I don't think it's a 'religious' issue
        like C# vs. Java - just that I, for one, am not understanding why you think
        headers would be better than the responses we gave you..

        Richard

        --
        Veuillez m'excuser, mon Français est très pauvre. Cependant, si vous voyez
        mauvais C #, c'est mon défaut!
        "Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
        message news:uvV8zbwnDH A.964@TK2MSFTNG P10.phx.gbl...[color=blue][color=green]
        > > Why though? None of your arguments so far hold water, as far as I've
        > > seen.[/color]
        >
        > gowd,
        > i'm heading for the exits. java programmers out to get me...
        >
        > --
        >
        >
        > -----------
        > Got TidBits?
        > Get it here: www.networkip.net/tidbits
        > "Jon Skeet [C# MVP]" <skeet@pobox.co m> wrote in message
        > news:MPG.1a0b4e c8711ee8b69899a 9@msnews.micros oft.com...[color=green]
        > > Alvin Bruney <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote:[color=darkred]
        > > > >The *user* (if you're talking about libraries; if you're not then the
        > > > > user doesn't see any code at all) should be reading the[/color][/color][/color]
        documentation,[color=blue][color=green][color=darkred]
        > > > > not the code.
        > > > >
        > > > c'mon Jon,
        > > > you know this aint real world. How many times has docs kept up with[/color][/color][/color]
        the[color=blue][color=green][color=darkred]
        > > > source code. Its wrong but it's true, programmers prefer to look at[/color][/color]
        > source[color=green][color=darkred]
        > > > rather than docs.[/color]
        > >
        > > So when they want to see the implementation, they look at the real
        > > source. They'd have to do that in C++ as well, so you haven't shown any
        > > benefit there.
        > >[color=darkred]
        > > > Occasionally, you may find someone heading to the docs but
        > > > by far, most programmers consult the source code first.[/color]
        > >
        > > I don't believe that's the case with .NET and languages like Java where
        > > there's a common documentation system which they'll be used to for the
        > > base libraries to start with. When JavaDoc is provided with a Java
        > > library, that's what people look at first, IME - followed by whatever
        > > other documentation is provided, followed by the code itself.
        > >[color=darkred]
        > > > > Note that if you want further separation, you can always use a[/color][/color]
        > separate[color=green][color=darkred]
        > > > > interface in the first place.[/color]
        > >[color=darkred]
        > > > No you are selling me something I don't want just to get what I want.[/color][/color][/color]
        I[color=blue]
        > want[color=green][color=darkred]
        > > > to separate a class implementation from its declaration.[/color]
        > >
        > > Why though? None of your arguments so far hold water, as far as I've
        > > seen.
        > >[color=darkred]
        > > > I don't want to be
        > > > forced to carry an interface baggage. Is there a way to do that in C#?[/color][/color]
        > No.[color=green]
        > >
        > > Thank goodness, IMO.
        > >[color=darkred]
        > > > > Yes, and I was forever checking out two files and making similar
        > > > > changes to both whenever I wanted to add a new method. Yuk!
        > > >
        > > > how is that different from interfaces?[/color]
        > >
        > > I (usually) don't *have* to use interfaces when I don't want to, and I
        > > don't have to add declarations for private members.
        > >
        > > --
        > > Jon Skeet - <skeet@pobox.co m>
        > > http://www.pobox.com/~skeet
        > > If replying to the group, please do not mail me too[/color]
        >
        >[/color]


        Comment

        • Jon Skeet [C# MVP]

          #19
          Re: C# code

          Richard A. Lowe <chadich@yumspa myumYahoo.com> wrote:[color=blue]
          > All I am interested in is what the discussion is about. I can't see the use
          > cases for header files, just answer my and Jon and Ray's arguments and maybe
          > you'll convince one or more of us. I don't think it's a 'religious' issue
          > like C# vs. Java - just that I, for one, am not understanding why you think
          > headers would be better than the responses we gave you..[/color]

          Note that C# vs Java doesn't have to be a religious issue either. I've
          never really understood the people who'd rather hide behind the FUD
          (both ways) where each "side" claims that the other's platform/language
          is slow, inelegant, proprietary etc.

          I use both and like both, and really can't see why it's such a big deal
          or why people are *so* keen to put down the language/platform that they
          don't happen to use...

          --
          Jon Skeet - <skeet@pobox.co m>
          Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

          If replying to the group, please do not mail me too

          Comment

          • Alvin Bruney

            #20
            Re: C# code

            > Alvin, no-one's out to get you. I don't feel I or anyone else has

            hey, my humor is about as dry and sarcastic as they come. I take no offense
            to posts here. non at all. stick around, you'll figure it out. it's all
            good.
            --


            -----------
            Got TidBits?
            Get it here: www.networkip.net/tidbits
            "Richard A. Lowe" <chadich@yumspa myumYahoo.com> wrote in message
            news:#Z6GwS1nDH A.1488@TK2MSFTN GP12.phx.gbl...[color=blue]
            > Alvin, no-one's out to get you. I don't feel I or anyone else has
            > 'attacked' you - but if you feel that way, then, I am sorry if I've failed
            > to convey that with the attempt at a joke in my post... it wasn't aimed at
            > you.
            >
            > All I am interested in is what the discussion is about. I can't see the[/color]
            use[color=blue]
            > cases for header files, just answer my and Jon and Ray's arguments and[/color]
            maybe[color=blue]
            > you'll convince one or more of us. I don't think it's a 'religious' issue
            > like C# vs. Java - just that I, for one, am not understanding why you[/color]
            think[color=blue]
            > headers would be better than the responses we gave you..
            >
            > Richard
            >
            > --
            > Veuillez m'excuser, mon Français est très pauvre. Cependant, si vous[/color]
            voyez[color=blue]
            > mauvais C #, c'est mon défaut!
            > "Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
            > message news:uvV8zbwnDH A.964@TK2MSFTNG P10.phx.gbl...[color=green][color=darkred]
            > > > Why though? None of your arguments so far hold water, as far as I've
            > > > seen.[/color]
            > >
            > > gowd,
            > > i'm heading for the exits. java programmers out to get me...
            > >
            > > --
            > >
            > >
            > > -----------
            > > Got TidBits?
            > > Get it here: www.networkip.net/tidbits
            > > "Jon Skeet [C# MVP]" <skeet@pobox.co m> wrote in message
            > > news:MPG.1a0b4e c8711ee8b69899a 9@msnews.micros oft.com...[color=darkred]
            > > > Alvin Bruney <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote:
            > > > > >The *user* (if you're talking about libraries; if you're not then[/color][/color][/color]
            the[color=blue][color=green][color=darkred]
            > > > > > user doesn't see any code at all) should be reading the[/color][/color]
            > documentation,[color=green][color=darkred]
            > > > > > not the code.
            > > > > >
            > > > > c'mon Jon,
            > > > > you know this aint real world. How many times has docs kept up with[/color][/color]
            > the[color=green][color=darkred]
            > > > > source code. Its wrong but it's true, programmers prefer to look at[/color]
            > > source[color=darkred]
            > > > > rather than docs.
            > > >
            > > > So when they want to see the implementation, they look at the real
            > > > source. They'd have to do that in C++ as well, so you haven't shown[/color][/color][/color]
            any[color=blue][color=green][color=darkred]
            > > > benefit there.
            > > >
            > > > > Occasionally, you may find someone heading to the docs but
            > > > > by far, most programmers consult the source code first.
            > > >
            > > > I don't believe that's the case with .NET and languages like Java[/color][/color][/color]
            where[color=blue][color=green][color=darkred]
            > > > there's a common documentation system which they'll be used to for the
            > > > base libraries to start with. When JavaDoc is provided with a Java
            > > > library, that's what people look at first, IME - followed by whatever
            > > > other documentation is provided, followed by the code itself.
            > > >
            > > > > > Note that if you want further separation, you can always use a[/color]
            > > separate[color=darkred]
            > > > > > interface in the first place.
            > > >
            > > > > No you are selling me something I don't want just to get what I[/color][/color][/color]
            want.[color=blue]
            > I[color=green]
            > > want[color=darkred]
            > > > > to separate a class implementation from its declaration.
            > > >
            > > > Why though? None of your arguments so far hold water, as far as I've
            > > > seen.
            > > >
            > > > > I don't want to be
            > > > > forced to carry an interface baggage. Is there a way to do that in[/color][/color][/color]
            C#?[color=blue][color=green]
            > > No.[color=darkred]
            > > >
            > > > Thank goodness, IMO.
            > > >
            > > > > > Yes, and I was forever checking out two files and making similar
            > > > > > changes to both whenever I wanted to add a new method. Yuk!
            > > > >
            > > > > how is that different from interfaces?
            > > >
            > > > I (usually) don't *have* to use interfaces when I don't want to, and I
            > > > don't have to add declarations for private members.
            > > >
            > > > --
            > > > Jon Skeet - <skeet@pobox.co m>
            > > > http://www.pobox.com/~skeet
            > > > If replying to the group, please do not mail me too[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            • Daniel Billingsley

              #21
              Re: C# code

              Then thank your lucky stars if you weren't around when the java trolls used
              to start month long flame wars here. :)

              "Jon Skeet [C# MVP]" <skeet@pobox.co m> wrote in message
              news:MPG.1a0be6 b085bac07f9899b 4@msnews.micros oft.com...[color=blue]
              > Note that C# vs Java doesn't have to be a religious issue either. I've
              > never really understood the people who'd rather hide behind the FUD
              > (both ways) where each "side" claims that the other's platform/language
              > is slow, inelegant, proprietary etc.
              >
              > I use both and like both, and really can't see why it's such a big deal
              > or why people are *so* keen to put down the language/platform that they
              > don't happen to use...
              >
              > --
              > Jon Skeet - <skeet@pobox.co m>
              > http://www.pobox.com/~skeet
              > If replying to the group, please do not mail me too[/color]


              Comment

              • Jon Skeet [C# MVP]

                #22
                Re: C# code

                Daniel Billingsley <dbillingsley@N O.durcon.SPAAMM .com> wrote:[color=blue]
                > Then thank your lucky stars if you weren't around when the java trolls used
                > to start month long flame wars here. :)[/color]

                To be honest, most of the C#/Java FUD I've seen here has been from
                people who claim that Java is interpreted, or is hideously slow etc.

                I see some similar stuff on the Java newsgroups, but correct it when I
                spot it :)

                --
                Jon Skeet - <skeet@pobox.co m>
                Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

                If replying to the group, please do not mail me too

                Comment

                • Richard A. Lowe

                  #23
                  Re: C# code

                  Jon Skeet [C# MVP] <skeet@pobox.co m> wrote in message news:<MPG.1a0be 6b085bac07f9899 b4@msnews.micro soft.com>...[color=blue]
                  > Richard A. Lowe <chadich@yumspa myumYahoo.com> wrote:[color=green]
                  > > All I am interested in is what the discussion is about. I can't see the use
                  > > cases for header files, just answer my and Jon and Ray's arguments and maybe
                  > > you'll convince one or more of us. I don't think it's a 'religious' issue
                  > > like C# vs. Java - just that I, for one, am not understanding why you think
                  > > headers would be better than the responses we gave you..[/color]
                  >
                  > Note that C# vs Java doesn't have to be a religious issue either. I've
                  > never really understood the people who'd rather hide behind the FUD
                  > (both ways) where each "side" claims that the other's platform/language
                  > is slow, inelegant, proprietary etc.[/color]

                  I wholeheartedly agree! I guess I chose that example because it
                  appears Messrs. Ballmer and McNealy seem to want it to be that way.
                  In truth, developers are the ones who will lose if we don't
                  cross-pollinate our ideas and experiences.

                  Richard

                  Comment

                  • Daniel Billingsley

                    #24
                    Re: C# code

                    Well, the trolls used to make statements like "C# sucks because it's just a
                    clone of java" or "java is better because it's simpler" (yes, someone
                    actually said that) and you can imagine the nonsense that resulted
                    considering the stupidity of the opening premise. And to be sure, they
                    would inevitably include a fair dose of FUD from the MS side as well.

                    I don't know why it's so hard to accept/admit that both have their
                    advantages and disadvantages.

                    "Jon Skeet [C# MVP]" <skeet@pobox.co m> wrote in message
                    news:MPG.1a0c8c f38678a67f9899c c@msnews.micros oft.com...[color=blue]
                    > Daniel Billingsley <dbillingsley@N O.durcon.SPAAMM .com> wrote:[color=green]
                    > > Then thank your lucky stars if you weren't around when the java trolls[/color][/color]
                    used[color=blue][color=green]
                    > > to start month long flame wars here. :)[/color]
                    >
                    > To be honest, most of the C#/Java FUD I've seen here has been from
                    > people who claim that Java is interpreted, or is hideously slow etc.
                    >
                    > I see some similar stuff on the Java newsgroups, but correct it when I
                    > spot it :)
                    >
                    > --
                    > Jon Skeet - <skeet@pobox.co m>
                    > http://www.pobox.com/~skeet
                    > If replying to the group, please do not mail me too[/color]


                    Comment

                    • Alvin Bruney

                      #25
                      Re: C# code

                      what does FUD mean?

                      --


                      -----------
                      Got TidBits?
                      Get it here: www.networkip.net/tidbits
                      "Daniel Billingsley" <dbillingsley@N O.durcon.SPAAMM .com> wrote in message
                      news:OeGuih#nDH A.1072@TK2MSFTN GP09.phx.gbl...[color=blue]
                      > Well, the trolls used to make statements like "C# sucks because it's just[/color]
                      a[color=blue]
                      > clone of java" or "java is better because it's simpler" (yes, someone
                      > actually said that) and you can imagine the nonsense that resulted
                      > considering the stupidity of the opening premise. And to be sure, they
                      > would inevitably include a fair dose of FUD from the MS side as well.
                      >
                      > I don't know why it's so hard to accept/admit that both have their
                      > advantages and disadvantages.
                      >
                      > "Jon Skeet [C# MVP]" <skeet@pobox.co m> wrote in message
                      > news:MPG.1a0c8c f38678a67f9899c c@msnews.micros oft.com...[color=green]
                      > > Daniel Billingsley <dbillingsley@N O.durcon.SPAAMM .com> wrote:[color=darkred]
                      > > > Then thank your lucky stars if you weren't around when the java trolls[/color][/color]
                      > used[color=green][color=darkred]
                      > > > to start month long flame wars here. :)[/color]
                      > >
                      > > To be honest, most of the C#/Java FUD I've seen here has been from
                      > > people who claim that Java is interpreted, or is hideously slow etc.
                      > >
                      > > I see some similar stuff on the Java newsgroups, but correct it when I
                      > > spot it :)
                      > >
                      > > --
                      > > Jon Skeet - <skeet@pobox.co m>
                      > > http://www.pobox.com/~skeet
                      > > If replying to the group, please do not mail me too[/color]
                      >
                      >[/color]


                      Comment

                      • Mike Schilling

                        #26
                        Re: C# code


                        "Daniel Billingsley" <dbillingsley@N O.durcon.SPAAMM .com> wrote in message
                        news:OeGuih%23n DHA.1072@TK2MSF TNGP09.phx.gbl. ..[color=blue]
                        > Well, the trolls used to make statements like "C# sucks because it's just[/color]
                        a[color=blue]
                        > clone of java"[/color]

                        Hiw silly. That's one of its main advantages.


                        Comment

                        Working...