Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Java and .net

Java and .net

Scheduled Pinned Locked Moved The Lounge
csharpjavacareerlearning
32 Posts 17 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Dario Solera

    Uhmmm... You cannot compare Mono to .NET: Mono is just a copy of the .NET class library and has a C# compiler. The class library is not complete, and it's stuck to .NET 1.1, moreover you have to use GTK# and different namespaces in order to create GUIs. So it's not really usable, unless you have a strict need to make a cross-platform application, but in that case I wouldn't go for .NET nor Mono at all. Maybe Java (God forgive me :-D). IMHO. :) ___________________________________ Tozzi is right: Gaia is getting rid of us. My Blog [ITA]

    L Offline
    L Offline
    Luca Leonardo Scorcia
    wrote on last edited by
    #21

    While I agree that you cannot compare Mono and the .Net Framework, you're wrong in some assumptions: .NET 2.0 support is planned and under heavy work and you can as well run applications built using Windows.Forms, just they don't feel as smooth as native (GTK) apps. And it's going to be better with newer releases. Luca The Price of Freedom is Eternal Vigilance.

    D 1 Reply Last reply
    0
    • M Marc Clifton

      jitAtran wrote:

      among freshers

      So then, why is it that Java is taught to freshmen to introduce programming? Keep in mind, teaching Java replaced teaching BASIC. ;P Disclaimer--I really have no idea whether what I just said is accurate Marc Pensieve Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #22

      Marc Clifton wrote:

      Keep in mind, teaching Java replaced teaching BASIC

      i had 3 years of Modula-2 when i was in school, and no BASIC at all :( Cleek | Image Toolkits | Thumbnail maker

      1 Reply Last reply
      0
      • R Ryan Roberts

        jitAtran wrote:

        some C or C++

        Which are far more difficult languages than either .NET or Java. C has pointers and C++ has pointers and mindblowingly complicated and powerful sideffects of its template mechanism. Ryan

        "Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven." - Penn Jillette

        J Offline
        J Offline
        jith iii
        wrote on last edited by
        #23

        Ryan Roberts wrote:

        jitAtran wrote: some C or C++ Which are far more difficult languages than either .NET or Java. C has pointers and C++ has pointers and mindblowingly complicated and powerful sideffects of its template mechanism

        Sorry dear ...I must have changed it into some basics of C or C++.Generally in india even if you are studying for electrical engineering or mechanical engineering you will have to learn C or C++ . -- modified at 10:02 Monday 1st May, 2006

        1 Reply Last reply
        0
        • L Luca Leonardo Scorcia

          While I agree that you cannot compare Mono and the .Net Framework, you're wrong in some assumptions: .NET 2.0 support is planned and under heavy work and you can as well run applications built using Windows.Forms, just they don't feel as smooth as native (GTK) apps. And it's going to be better with newer releases. Luca The Price of Freedom is Eternal Vigilance.

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #24

          Luca Leonardo Scorcia wrote:

          you can as well run applications built using Windows.Forms, just they don't feel as smooth as native (GTK) apps.

          Can you run them cross platform? It was my understanding tha gtk was needed if you wanted to target a nonwindows desktop.

          L 1 Reply Last reply
          0
          • D Dan Neely

            Luca Leonardo Scorcia wrote:

            you can as well run applications built using Windows.Forms, just they don't feel as smooth as native (GTK) apps.

            Can you run them cross platform? It was my understanding tha gtk was needed if you wanted to target a nonwindows desktop.

            L Offline
            L Offline
            Luca Leonardo Scorcia
            wrote on last edited by
            #25

            Yes, you can. Of course, many advanced features are under development, but you can easily take a dialog based Windows.Forms binary and run it under mono. They have rewritten the entire Windows.Forms using GDI+ calls. Slow, but works (mostly). Check out the screenshots on the mono-project web site. Luca The Price of Freedom is Eternal Vigilance.

            J 1 Reply Last reply
            0
            • L Luca Leonardo Scorcia

              Yes, you can. Of course, many advanced features are under development, but you can easily take a dialog based Windows.Forms binary and run it under mono. They have rewritten the entire Windows.Forms using GDI+ calls. Slow, but works (mostly). Check out the screenshots on the mono-project web site. Luca The Price of Freedom is Eternal Vigilance.

              J Offline
              J Offline
              jith iii
              wrote on last edited by
              #26

              I have been hering about Mono and DotGNU for quite a long time.But nothing really comes out into the developer's arena. Also mono is from novell which owns Suse Linux.So what would be microsoft's real strategy. Evidently projects which aims platform independance are choosing java.Is "windows" killing .net. -- modified at 10:41 Monday 1st May, 2006

              1 Reply Last reply
              0
              • D David Stone

                I just jumped back into Java for one of my classes here at UCSD[^]. I hate it. Java sucks. And Java's generics suck harder. And in general, Java just sucks. Give me C# and .NET any day of the week.

                Oh geez... the forum keeps spinning... you'll take care o f it i'm sure, c'ause ... yeah, i neede this. *cough* anyway good job finding the bug.
                -Shog9 on...a Firefox bug.

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #27

                David Stone wrote:

                I hate it. Java sucks. And Java's generics suck harder. And in general, Java just sucks. Give me C# and .NET any day of the week.

                You've got that right David. I tried out Net Bean 5.0 from Sun over the weekend and back to VS2005 I shall go :) Paul

                D 1 Reply Last reply
                0
                • J jith iii

                  Hi everyone, My intention was not to compare all the features of java and .net.But generally there is a feeling(atleast in india) among freshers that, those who choose .net are lazy guys and those who choose java are bright guys. I think there is some reason behind that.now a days in most of the cases a fresher who wants a programming career would not take a java course if he does not have any programming knowledge .because he/she feels that J2EE is tougher.But guys who love programming during their graduation will not hesitate to jump into java. Clearly we can see this when biggies started calling even from 6 months of experienced people in j2ee ,where they would call a .net professional only if he has atleast two years of experience. -- modified at 5:34 Monday 1st May, 2006

                  G Offline
                  G Offline
                  Giles
                  wrote on last edited by
                  #28

                  C++. Java, is for girls. .NET is for people who want to get the job done quickly.

                  1 Reply Last reply
                  0
                  • I ISIS55

                    Goes straight to my sig :laugh: Isaac Sasson "I hate it. Java sucks. And Java's generics suck harder. And in general, Java just sucks." - David Stone, The Lounge (May 1st 2006)

                    D Offline
                    D Offline
                    David Stone
                    wrote on last edited by
                    #29

                    heh. Glad my late night rantings were of some use. :rolleyes:

                    Oh geez... the forum keeps spinning... you'll take care o f it i'm sure, c'ause ... yeah, i neede this. *cough* anyway good job finding the bug.
                    -Shog9 on...a Firefox bug.

                    1 Reply Last reply
                    0
                    • P Paul Conrad

                      David Stone wrote:

                      I hate it. Java sucks. And Java's generics suck harder. And in general, Java just sucks. Give me C# and .NET any day of the week.

                      You've got that right David. I tried out Net Bean 5.0 from Sun over the weekend and back to VS2005 I shall go :) Paul

                      D Offline
                      D Offline
                      David Stone
                      wrote on last edited by
                      #30

                      computerguru92382 wrote:

                      I tried out Net Bean 5.0 from Sun

                      Oh wow. I'm not even that adventurous. I'm using Eclipse 3.2 RC2 to code...and while Eclipse is a decent IDE (It's got a crapload more in the way of refactoring. Such fine grained code style prefs too.), I still have to code in...Java. X|

                      Oh geez... the forum keeps spinning... you'll take care o f it i'm sure, c'ause ... yeah, i neede this. *cough* anyway good job finding the bug.
                      -Shog9 on...a Firefox bug.

                      P 1 Reply Last reply
                      0
                      • D David Stone

                        computerguru92382 wrote:

                        I tried out Net Bean 5.0 from Sun

                        Oh wow. I'm not even that adventurous. I'm using Eclipse 3.2 RC2 to code...and while Eclipse is a decent IDE (It's got a crapload more in the way of refactoring. Such fine grained code style prefs too.), I still have to code in...Java. X|

                        Oh geez... the forum keeps spinning... you'll take care o f it i'm sure, c'ause ... yeah, i neede this. *cough* anyway good job finding the bug.
                        -Shog9 on...a Firefox bug.

                        P Offline
                        P Offline
                        Paul Conrad
                        wrote on last edited by
                        #31

                        David Stone wrote:

                        I'm using Eclipse 3.2 RC2 to code...and while Eclipse is a decent IDE

                        I've had to investigate Eclipse for my Master's Thesis and it seems pretty alright. PJC

                        1 Reply Last reply
                        0
                        • R Ryan Roberts

                          jitAtran wrote:

                          some C or C++

                          Which are far more difficult languages than either .NET or Java. C has pointers and C++ has pointers and mindblowingly complicated and powerful sideffects of its template mechanism. Ryan

                          "Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven." - Penn Jillette

                          M Offline
                          M Offline
                          Mike Dimmick
                          wrote on last edited by
                          #32

                          Personally I still think pointers are actually easier to understand than C#, VB and Java's reference semantics. There's a syntactic difference between manipulating an area of memory ('object' if you prefer) directly and manipulating one at arm's length, through a reference. Most pointer-based languages do have the problem that you could be manipulating variables of a given type either directly or through a reference, while C# and VB make a clear distinction between value and reference types (struct and class respectively in C#). The CLR allows you to 'box' a value type to use it as a reference type, however. Having said that, I learned pointers using Ada, which does not have any syntactic difference at the point of use to indicate use of a pointer. C's problems typically come from the ability to create highly convoluted declarations - these are not necessary, it's perfectly possible to write clear C code - and explicit use of memory deallocation routines. However, a correct C#, VB.NET or Java program must make use of the Dispose pattern, for all but trivial programs. In C++ one can mask most use of the memory allocator and deallocator, and indeed any other resource deallocation, using the Resource Allocation Is Initialisation pattern. This pattern is so engrained in C++ developers, generally, that they're not even aware it's a pattern. Simply, you use a class to manage the memory or other resource; the class destructor frees the resource. If an object of such a class is created on the stack, the compiler automatically generates code to call the destructor on exit of the block. If created on the heap with new, the destructor is called when the delete operator is used. Diligent use of this pattern normally leaves very few objects whose lifetimes are managed with explicit new and delete statements. C and C++ both have pointer arithmetic, and give no warning of writing outside the bounds of an array or other memory allocation. The former is not required in writing a program - pointer arithmetic can always be substituted with array indexing, and compilers are generally very good at converting back to pointer arithmetic if possible. The latter requires some discipline in tracking the amount of space allocated; again, in C++ you can build a class that manages this appropriately, and the Standard Library and other commonly-used libraries have classes that will meet most users' needs. Stability. What a

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups