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 v.s. C#

Java v.s. C#

Scheduled Pinned Locked Moved The Lounge
csharpjavamobiledesigndiscussion
31 Posts 14 Posters 4 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.
  • B Brian Delahunty

    Don't hate it... enjoy it.. You'll learn to appreciate things in C# more... like the fact that C# doesn't have checked exceptions (thank God.. I've always found that checked exceptions lead to lazy programmers .. i.e. "Just catch exception and throw it up the stack or just catch exception and eat it up")... and the fact that C# has properties, and attributes, etc. Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
    http://www.briandela.com/pictures Now with a pictures section :-D
    http://www.briandela.com/rss/newsrss.xml RSS Feed

    N Offline
    N Offline
    Navin
    wrote on last edited by
    #16

    Don't hate it... enjoy it.. You'll learn to appreciate things in C# more... like the fact that C# doesn't have checked exceptions (thank God.. I've always found that checked exceptions lead to lazy programmers .. i.e. "Just catch exception and throw it up the stack or just catch exception and eat it up")... and the fact that C# has properties, and attributes, etc. Ergh, those are the features that make me like Java *more* than C#. Checked exceptions at least let you know a function is going to throw something (although functions that have "throws Exception" are extremely annoying, I'll give you that... :mad: ) Properties are silly. They look like they were put into C# just to appease COM and VB programmers. One thing I hate about both, though, is the fact that the "finalize" method exists. It is completely useless in a garbage-collected environment since you don't know when - or if - it will ever get called. Why not just eliminate it and not even give the programmer the false impression that it actually does something useful. :confused: An expert is somebody who learns more and more about less and less, until he knows absolutely everything about nothing.

    B 1 Reply Last reply
    0
    • J Jorgen Sigvardsson

      My question is; WHEN WILL JAVA JUST ROLL OVER AND DIE, AND GET THE H*LL OUT OF MY LIFE!??! :~ :mad::~ I feel better now. :) -- Arigato gozaimashita!

      N Offline
      N Offline
      Navin
      wrote on last edited by
      #17

      As soon as there are free C# compilers, IDEs, and virtual machines for every environment. In other words, never. :) (Yes, Mono shows promise.. but there's no way C#/.NET will ever be anywhere near as portable as Java is now. And considering even Java isn't always portable, that's saying something... :~ ) An expert is somebody who learns more and more about less and less, until he knows absolutely everything about nothing.

      1 Reply Last reply
      0
      • B Brian Delahunty

        As pankajdaga pointed out, it might be worth looking at SWT... but then SUN won't like you because SUN hate SWT. Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
        http://www.briandela.com/pictures Now with a pictures section :-D
        http://www.briandela.com/rss/newsrss.xml RSS Feed

        N Offline
        N Offline
        Navin
        wrote on last edited by
        #18

        SWT is the way to go. You will never, ever, achieve the performance of native widgets if you take an approach like Swing and emulate them. An expert is somebody who learns more and more about less and less, until he knows absolutely everything about nothing.

        B 1 Reply Last reply
        0
        • S Steve McLenithan

          WillemM wrote: I won't start a discussion about Java v.s. C#. But you have;P I hate the fact that I have to take a Java class next year. Stupid degree requirements.

          Found on Bash.org
          [erno] hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is.

          N Offline
          N Offline
          Navin
          wrote on last edited by
          #19

          Quitcher whinin'. Why, when I was your age, neither Java nor C# had been invented yet! We were lucky to get C++. My high school classes were either in straight C or Pascal. :doh: It's the process of learning how procedural and object oriented coding works, not the language itself, that's important. And wait until you deal with a functional language like Scheme or Lisp.... or logical one like Prolog... :-O An expert is somebody who learns more and more about less and less, until he knows absolutely everything about nothing.

          E 1 Reply Last reply
          0
          • P pankajdaga

            The Java Swing user interface is very slow. Try the application using the SWT UI library from IBM. It looks very nice and it is much faster. Cheers, Pankaj /** I'm the one who's gonna have to die When it's time for me to die So let me live my life The way I want to - Jimi Hendrix */

            D Offline
            D Offline
            David Salter
            wrote on last edited by
            #20

            Thats true, but..... just look at something like IntelliJ IDEA and you'll see that good Swing UIs do exist. In my opinion, IDEA rivals Visual Studio for development tools.


            store your internet favourites online - www.my-faves.co.uk

            1 Reply Last reply
            0
            • J Jorgen Sigvardsson

              My question is; WHEN WILL JAVA JUST ROLL OVER AND DIE, AND GET THE H*LL OUT OF MY LIFE!??! :~ :mad::~ I feel better now. :) -- Arigato gozaimashita!

              W Offline
              W Offline
              WillemM
              wrote on last edited by
              #21

              You seem to have traumatic experiences with java :P "Every rule in a world of bits and bytes can be bend or eventually be broken"

              J 1 Reply Last reply
              0
              • W WillemM

                You seem to have traumatic experiences with java :P "Every rule in a world of bits and bytes can be bend or eventually be broken"

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #22

                Yes.. it slows me down, drags me down, making it hard for me to breathe. -- Arigato gozaimashita!

                1 Reply Last reply
                0
                • J Jorgen Sigvardsson

                  My question is; WHEN WILL JAVA JUST ROLL OVER AND DIE, AND GET THE H*LL OUT OF MY LIFE!??! :~ :mad::~ I feel better now. :) -- Arigato gozaimashita!

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #23

                  Couldn't be better said. I've been wondering the same for a while. -- Aaron Eldreth

                  1 Reply Last reply
                  0
                  • A aubndez

                    Sorry to bust your bubble....BlueJ sucks :((. I suppose it has it's uses if this is your first in depth look into object orientated architecture...but really -- it sucks in terms of "Java". The only thing you can possibly take away from BlueJ is the CONCEPT of object orientated. But if you really want to learn Java itself, I suggest looking elsewhere.... Aubrey

                    N Offline
                    N Offline
                    Nnamdi Onyeyiri
                    wrote on last edited by
                    #24

                    Been using it for 10mins and figured that out.


                    website // Project : AmmoITX //profile Another Post by NnamdiOnyeyiri

                    1 Reply Last reply
                    0
                    • W WillemM

                      No this is not a discussion whether java or C# is better. But just a simple fact I discovered today: I made a simple library program in C# with a one book per user principle. And I made exactly the same application in Java. The C# application runs on Windows XP Pro SP2 and the Java application on a Blade 100 desktop. Well, the diffirence between Java and C# was noticable. Java was approx. 70% slower than C#. Hurray for C# if you ask me. I don't know, but the applications were not bigger than 16k each. So that's what I call light weight, but the Java UI was not responsive at all. The startup time of the Java was longer, the response time when clicking on a button was longer, the response time when coming back to the main menu of the application from a random dialog was longer. Everything was slower :(. But again, that's just my test case and I won't start a discussion about Java v.s. C#. Because other people have different experiences and maybe the computers were just too slow to even run Java. "Every rule in a world of bits and bytes can be bend or eventually be broken"

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #25

                      Java is gay. Any Java UI is immediatly and obviously a Java UI, and not just because it is always slow. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                      E S 2 Replies Last reply
                      0
                      • N Navin

                        Quitcher whinin'. Why, when I was your age, neither Java nor C# had been invented yet! We were lucky to get C++. My high school classes were either in straight C or Pascal. :doh: It's the process of learning how procedural and object oriented coding works, not the language itself, that's important. And wait until you deal with a functional language like Scheme or Lisp.... or logical one like Prolog... :-O An expert is somebody who learns more and more about less and less, until he knows absolutely everything about nothing.

                        E Offline
                        E Offline
                        eggie5
                        wrote on last edited by
                        #26

                        Quitcher whinin', at least your high school had programming classes! /\ |_ E X E GG

                        1 Reply Last reply
                        0
                        • C Christian Graus

                          Java is gay. Any Java UI is immediatly and obviously a Java UI, and not just because it is always slow. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                          E Offline
                          E Offline
                          eggie5
                          wrote on last edited by
                          #27

                          Christian Graus wrote: Java is gay. /\ |_ E X E GG

                          1 Reply Last reply
                          0
                          • N Nnamdi Onyeyiri

                            Yeah, I have to learn Java as part of my degree too...start in october but they want me learning how to use BlueJ IDE before I get there.


                            website // Project : AmmoITX //profile Another Post by NnamdiOnyeyiri

                            N Offline
                            N Offline
                            Nick Parker
                            wrote on last edited by
                            #28

                            When I took it in school I used JCreator[^], the IDE reminds me more of Visual Studio than any other free IDE I've seen. - Nick Parker
                            My Blog | My Articles

                            1 Reply Last reply
                            0
                            • N Navin

                              Don't hate it... enjoy it.. You'll learn to appreciate things in C# more... like the fact that C# doesn't have checked exceptions (thank God.. I've always found that checked exceptions lead to lazy programmers .. i.e. "Just catch exception and throw it up the stack or just catch exception and eat it up")... and the fact that C# has properties, and attributes, etc. Ergh, those are the features that make me like Java *more* than C#. Checked exceptions at least let you know a function is going to throw something (although functions that have "throws Exception" are extremely annoying, I'll give you that... :mad: ) Properties are silly. They look like they were put into C# just to appease COM and VB programmers. One thing I hate about both, though, is the fact that the "finalize" method exists. It is completely useless in a garbage-collected environment since you don't know when - or if - it will ever get called. Why not just eliminate it and not even give the programmer the false impression that it actually does something useful. :confused: An expert is somebody who learns more and more about less and less, until he knows absolutely everything about nothing.

                              B Offline
                              B Offline
                              Brian Delahunty
                              wrote on last edited by
                              #29

                              Navin wrote: Properties are silly Have to disagree.. while the use of properties can incur a small overhead (i.e. it's another function call to set/get a property) they do allow code to look more elegant and more understandable IMHO. One thing I hate when looking at code are accessor and mutator methods strewn all over the place... Properties allow for an elegent way of implementing accessors and mutators.... I know that most of the time properties are just used to provide a public interface to a variable/field, which is propably overkill due to the small performance overhead, but I personally use them even for this as it just make the code easier to read for others :-) Navin wrote: although functions that have "throws Exception" are extremely annoying, I'll give you that... That's exactly why I don't like them. I've come across too much of this widely praised "open source" java software where programmers where just sloppy and just throw Exception instead of actually dealing with exceptions properly. Navin wrote: is the fact that the "finalize" method exists. I'm not 100% sure of the semantics of finalize in Java but I presume it's the same as in C#... the lack of deterministic finalisation is a pain but for the time being it's just a simple fact that needs to be dealt with in C#/Java. Cleaning up resources is easy enough though.. just provide a Dispose method and call it.. or better still... use the using {} syntax so that way you can forget to call it. IMO having finalize is more useful than not having it because at least you know that it will be called when the object is GC'd. Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
                              http://www.briandela.com/pictures Now with a pictures section :-D
                              http://www.briandela.com/rss/newsrss.xml RSS Feed

                              1 Reply Last reply
                              0
                              • N Navin

                                SWT is the way to go. You will never, ever, achieve the performance of native widgets if you take an approach like Swing and emulate them. An expert is somebody who learns more and more about less and less, until he knows absolutely everything about nothing.

                                B Offline
                                B Offline
                                Brian Delahunty
                                wrote on last edited by
                                #30

                                Preaching to the converted here... I was just pointing out that Sun seem to hate SWT because it's not platform independent (you need different "arse-end-code" on different platforms) Regards, Brian Dela :-) http://www.briandela.com IE 6 required.
                                http://www.briandela.com/pictures Now with a pictures section :-D
                                http://www.briandela.com/rss/newsrss.xml RSS Feed

                                1 Reply Last reply
                                0
                                • C Christian Graus

                                  Java is gay. Any Java UI is immediatly and obviously a Java UI, and not just because it is always slow. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

                                  S Offline
                                  S Offline
                                  Simon Walton
                                  wrote on last edited by
                                  #31

                                  Every time I see a SWING interface, I think "now there's a UI only a mother could love". Thanks, Simey

                                  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