What do Java programmers feel is missing from C#?

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

    What do Java programmers feel is missing from C#?

    I may be opening a can of worms and don't want to start a religious war,
    but...

    What features of Java do Java programmers miss when working in C#?

    Other than, of course, great portability. C# has more limited
    cross-platform portability (Mono).

    I'm thinking more about data structures and ways to express algorithms.


  • Dan Leifker

    #2
    Re: What do Java programmers feel is missing from C#?

    mc wrote:
    I may be opening a can of worms and don't want to start a religious war,
    but...
    >
    What features of Java do Java programmers miss when working in C#?
    >
    Other than, of course, great portability. C# has more limited
    cross-platform portability (Mono).
    >
    I'm thinking more about data structures and ways to express algorithms.
    I sort of liked fall-thru in switch statements, but I'm the first to
    admit that it can lead to unreadable code.

    The Java Language Reference mentions something called a Duff's Device,
    which I never really understood and which C# would probably frown on
    anyway. :)

    dleifker

    Comment

    • mc

      #3
      Re: What do Java programmers feel is missing from C#?


      "Dan Leifker" <dleifker@leifk er.comwrote in message
      news:KIWdnbA267 Pogk7anZ2dnUVZ_ iydnZ2d@comcast .com...
      mc wrote:
      >I may be opening a can of worms and don't want to start a religious war,
      >but...
      >>
      >What features of Java do Java programmers miss when working in C#?
      >>
      >Other than, of course, great portability. C# has more limited
      >cross-platform portability (Mono).
      >>
      >I'm thinking more about data structures and ways to express algorithms.
      >
      I sort of liked fall-thru in switch statements, but I'm the first to admit
      that it can lead to unreadable code.
      Actually, I think the switch statement is the most awkward thing in C#,
      largely because it isn't the Fortran-like thing from C that it looks like.
      I wish C# had adopted the Pascal case statement.


      Comment

      • Mishagam

        #4
        Re: What do Java programmers feel is missing from C#?

        mc wrote:
        I may be opening a can of worms and don't want to start a religious war,
        but...
        >
        What features of Java do Java programmers miss when working in C#?
        >
        Other than, of course, great portability. C# has more limited
        cross-platform portability (Mono).
        >
        I'm thinking more about data structures and ways to express algorithms.
        >
        I am just esthetically prefer Java. I think Java is simpler language.
        There is no properties, no defined operators, no delegates - for me it
        makes everything more clear. I know only one language that is comparable
        in transparency - C.
        I also liked Java collections Api and general API more - just preference.
        Java has checked exceptions and this makes dealing with exceptions more
        easy - you mostly know which exceptions you can expect.
        JavaDoc - is more clear that C# XML Docs, and in my opinion leads to
        better quality API descriptions.
        I prefer Java Strict package / folder structure to unclear C# conventions.

        Comment

        • Dan Leifker

          #5
          Re: What do Java programmers feel is missing from C#?

          mc wrote:
          Actually, I think the switch statement is the most awkward thing in C#,
          largely because it isn't the Fortran-like thing from C that it looks like.
          I wish C# had adopted the Pascal case statement.
          But I seem to recall (good grief, I learned Pascal in 1981) that the
          Pascal case statement had no default/otherwise/else, right? Well, I
          don't think it did on that creaking Univac we used, but I just Googled
          it and and I guess other flavors of Pascal did support it.

          See also Brian Kernighan's famous paper about Pascal at:



          One bit of trivia about the Java default (I think) is that it can occur
          anywhere in the case sequence, even at the top.

          cheers
          dleifker

          Comment

          • mc

            #6
            Re: What do Java programmers feel is missing from C#?

            >I wish C# had adopted the Pascal case statement.
            >
            But I seem to recall (good grief, I learned Pascal in 1981) that the
            Pascal case statement had no default/otherwise/else, right? Well, I don't
            think it did on that creaking Univac we used, but I just Googled it and
            and I guess other flavors of Pascal did support it.
            Yes... when I say Pascal I really mean Turbo Pascal and Delphi. Early
            Pascal was impoverished in some ways, as Kernighan pointed out in the paper
            you cite.


            Comment

            • Nobody

              #7
              Re: What do Java programmers feel is missing from C#?

              Well now that just has to be the IDE... Visual Studio is just so 1990's



              "mc" <look@www.ai.ug a.edu.for.addre sswrote in message
              news:4fyAj.4184 $by3.1171@bigne ws5.bellsouth.n et...
              >I may be opening a can of worms and don't want to start a religious war,
              >but...
              >
              What features of Java do Java programmers miss when working in C#?
              >
              Other than, of course, great portability. C# has more limited
              cross-platform portability (Mono).
              >
              I'm thinking more about data structures and ways to express algorithms.
              >
              >

              Comment

              • mc

                #8
                Re: What do Java programmers feel is missing from C#?


                "Nobody" <nobody@shaw.ca wrote in message
                news:lyYAj.6645 7$pM4.24579@pd7 urf1no...
                Well now that just has to be the IDE... Visual Studio is just so 1990's
                What kind of IDE do you prefer?

                >
                >
                >
                "mc" <look@www.ai.ug a.edu.for.addre sswrote in message
                news:4fyAj.4184 $by3.1171@bigne ws5.bellsouth.n et...
                >>I may be opening a can of worms and don't want to start a religious war,
                >>but...
                >>
                >What features of Java do Java programmers miss when working in C#?
                >>
                >Other than, of course, great portability. C# has more limited
                >cross-platform portability (Mono).
                >>
                >I'm thinking more about data structures and ways to express algorithms.
                >>
                >>
                >
                >

                Comment

                • Harry Walters

                  #9
                  Re: What do Java programmers feel is missing from C#?

                  On Sat, 8 Mar 2008 10:26:56 -0500, "mc"
                  <look@www.ai.ug a.edu.for.addre sswrote:
                  >I may be opening a can of worms and don't want to start a religious war,
                  >but...
                  >
                  >What features of Java do Java programmers miss when working in C#?
                  >
                  I miss the slow performance of Java and overall lack of productivity
                  and the vast amount of crappy offshored leftover code I used to work
                  on.

                  I get so much more done in C# it leaves me longing for that crappy
                  Java environment I left behind.

                  Comment

                  • Robert Larsen

                    #10
                    Re: What do Java programmers feel is missing from C#?

                    Harry Walters wrote:
                    I miss the slow performance of Java and overall lack of productivity
                    and the vast amount of crappy offshored leftover code I used to work
                    on.
                    >
                    I get so much more done in C# it leaves me longing for that crappy
                    Java environment I left behind.
                    I did a quick Google search for "java c# benchmark" (try it yourself)
                    and it seems that it's only that offshored code that is slow and crappy
                    and not Java itself, because all benchmarks I could find concludes that
                    Java is way faster than C#.

                    Comment

                    • mc

                      #11
                      Re: What do Java programmers feel is missing from C#?

                      "Harry Walters" <nomail@notmail .comwrote in message
                      news:mkmbt3d2om 5ojhptf0sfarfma fbkbh948t@4ax.c om...
                      I get so much more done in C# it leaves me longing for that crappy
                      Java environment I left behind.
                      Ah, the fast pace of modern life :)

                      Likewise, a whole generation of office workers longs for the days of snail
                      mail instead of e-mail, so that we would actually be allowed some *time* to
                      do our work :)


                      Comment

                      • mc

                        #12
                        Re: What do Java programmers feel is missing from C#?

                        I did a quick Google search for "java c# benchmark" (try it yourself)
                        and it seems that it's only that offshored code that is slow and crappy
                        and not Java itself, because all benchmarks I could find concludes that
                        Java is way faster than C#.
                        Well, this one:



                        is the first one that comes up, but obviously something has gone wrong. A
                        factor of 7700 speed difference? They're just not measuring the same thing.
                        If C# were 7700 times slower than Java, it would be unusable.

                        I'm going to explore this and see what I can find out. A quick test shows
                        that his C# program is indeed woefully slow.





                        Comment

                        • mc

                          #13
                          Re: What do Java programmers feel is missing from C#?


                          "mc" <look@www.ai.ug a.edu.for.addre sswrote in message
                          news:vxwBj.1484 6$dT.4812@bigne ws1.bellsouth.n et...
                          >I did a quick Google search for "java c# benchmark" (try it yourself)
                          >and it seems that it's only that offshored code that is slow and crappy
                          >and not Java itself, because all benchmarks I could find concludes that
                          >Java is way faster than C#.
                          >
                          Well, this one:
                          >

                          >
                          is the first one that comes up, but obviously something has gone wrong. A
                          factor of 7700 speed difference? They're just not measuring the same
                          thing. If C# were 7700 times slower than Java, it would be unusable.
                          >
                          I'm going to explore this and see what I can find out. A quick test shows
                          that his C# program is indeed woefully slow.
                          Quick preliminary answer: Both of the programs measure the time taken to
                          *compile* a regex, not the time taken to run it. The two compilers are
                          probably doing very different things.


                          Comment

                          • Harry Walters

                            #14
                            Re: What do Java programmers feel is missing from C#?

                            On Tue, 11 Mar 2008 11:14:43 -0400, "mc"
                            <look@www.ai.ug a.edu.for.addre sswrote:
                            >
                            >"mc" <look@www.ai.ug a.edu.for.addre sswrote in message
                            >news:vxwBj.148 46$dT.4812@bign ews1.bellsouth. net...
                            >>I did a quick Google search for "java c# benchmark" (try it yourself)
                            >>and it seems that it's only that offshored code that is slow and crappy
                            >>and not Java itself, because all benchmarks I could find concludes that
                            >>Java is way faster than C#.
                            >>
                            >Well, this one:
                            >>
                            >http://www.manageability.org/blog/ar...m_with_cameron
                            >>
                            >is the first one that comes up, but obviously something has gone wrong. A
                            >factor of 7700 speed difference? They're just not measuring the same
                            >thing. If C# were 7700 times slower than Java, it would be unusable.
                            >>
                            >I'm going to explore this and see what I can find out. A quick test shows
                            >that his C# program is indeed woefully slow.
                            >
                            >Quick preliminary answer: Both of the programs measure the time taken to
                            >*compile* a regex, not the time taken to run it. The two compilers are
                            >probably doing very different things.
                            >
                            It's like dude went very far out of the way to find some bizarre
                            benchmark to suit his goal. Who uses compiled regexs in c#
                            applications?

                            Comment

                            • Harry Walters

                              #15
                              Re: What do Java programmers feel is missing from C#?

                              On Tue, 11 Mar 2008 10:08:13 -0400, "mc"
                              <look@www.ai.ug a.edu.for.addre sswrote:
                              >"Harry Walters" <nomail@notmail .comwrote in message
                              >news:mkmbt3d2o m5ojhptf0sfarfm afbkbh948t@4ax. com...
                              >
                              >I get so much more done in C# it leaves me longing for that crappy
                              >Java environment I left behind.
                              >
                              >Ah, the fast pace of modern life :)
                              >
                              >Likewise, a whole generation of office workers longs for the days of snail
                              >mail instead of e-mail, so that we would actually be allowed some *time* to
                              >do our work :)
                              Those guys are called COBOL programmers, and they make the big bucks
                              :)

                              Comment

                              Working...