SitePoint Sponsor

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 25 of 30

Thread: Java or .net??

  1. #1
    SitePoint Member
    Join Date
    Dec 2011
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Java or .net??

    Why we choose .Net over Java???

  2. #2
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Java, regardless of its name, does not make you coffee. .NET doesn't make such pretenses. .NET wins.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Location
    Melbourne, Australia
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm a .NET person myself. I find C# to be a nicer language than Java (it's essentially like Java but nicer). Lambda expressions and LINQ are really handy. Being able to compare strings with == is nice, too (a lot of little things make a big difference!) :P

    ASP.NET MVC 3 is a really well-designed framework, and the new "Razor" templating language is very concise and easy to use. It's definitely worth learning if you haven't already (and are interested in .NET development). Having said that, the Play Framework for Java is pretty good too.

    The only downside of .NET is that it's not fully cross-platform. Having said that, Mono has made some very big improvements over the past 1-2 years. ASP.NET MVC 3 works out of the box on Mono, including the Razor templating language.

  4. #4
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Yes, I agree Linq alone is a mighty fine way of life.

  5. #5
    SitePoint Guru Jason__C's Avatar
    Join Date
    Oct 2009
    Location
    Racoon City
    Posts
    660
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Java?? What is this 1997?
    Chuck Norris is so tough,
    mosquitos ask for permission before they bite him

  6. #6
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by USPaperchaser View Post
    Java?? What is this 1997?
    LOL. Now, now. Java is used for Android apps.

  7. #7
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,653
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    .NET has probably surpassed java over the last few years -- they are doing some amazing things in the CLR these days. It can do lots of things the current versions of the JVM can't at this time. That said, it seems like Oracle is putting lots of muscle into updating java, the things coming out for 1.8 look pretty exciting and will largely catch that platform up to .NET 4.0.

    Also, the huge advantage with java isn't the platform but rather the ecosystem. There are lots of things you just can't get on .NET. Like a decent open source NLP library . . .


    @imaginekitty -- they use java syntax but it isn't compiling to java bytecode but rather davlik. They weren't that far from using C# as the language spec from what I understand.

  8. #8
    Resident OCD goofball! bronze trophy Serenarules's Avatar
    Join Date
    Dec 2002
    Posts
    1,911
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    Java may even be preferred on non-windows hosts, unless they have something like mono, or another interpreter installed (none of which are 100%). Sometimes it isn't about one language being "better" than another, but what the best fit is for the rest of the system.

    =)

  9. #9
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by wwb_99 View Post
    @imaginekitty -- they use java syntax but it isn't compiling to java bytecode but rather davlik. They weren't that far from using C# as the language spec from what I understand.
    Ah, I see. Either way, it's worth learning if that's your direction. Is Microsoft going to allow Visual Studio to compile for Android or iPhone? That'll put a damper on Java.

    Quote Originally Posted by Serenarules View Post
    Java may even be preferred on non-windows hosts, unless they have something like mono, or another interpreter installed (none of which are 100%). Sometimes it isn't about one language being "better" than another, but what the best fit is for the rest of the system.
    Truth.

  10. #10
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Location
    Melbourne, Australia
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Java may even be preferred on non-windows hosts, unless they have something like mono, or another interpreter installed (none of which are 100%). Sometimes it isn't about one language being "better" than another, but what the best fit is for the rest of the system.
    That's very true, Java will work just as well on Linux or Mac as it does on Windows.
    Mono's pretty good now though (especially with version 2.10) and has implemented most of .NET 3.5 and ASP.NET 4.0, and some bits of .NET 4.0. I wouldn't be too scared running an ASP.NET MVC app on Mono in production, as long as you don't use anything not available in Mono (eg. Entity Framework). Mozilla's Developer Network is running MindTouch Core (formerly DekiWiki) on top of Mono. If Mozilla uses it, it's probably safe to say it's production-ready . I'm not sure if they still use it, but Wikipedia used to use Mono and dotLucene to power the search.

    Java, regardless of its name, does not make you coffee.
    I guess you don't like CoffeeScript or the Mocha library, then

  11. #11
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Daniel15 View Post
    ... I guess you don't like CoffeeScript or the Mocha library, then
    Moar liez!!!

  12. #12
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,880
    Mentioned
    48 Post(s)
    Tagged
    0 Thread(s)
    Well. I am a Java(Android) developer as well as a .NET developer. What I can tell you is the .NET and Visual Studio is by far more superior to JAVA. And that if google did support Android dev from VS witn C#, I would definitely switch. Having said all that. Java is not terrible. The syntax is similar to C#. My biggest problem is with eclipse. It is very unstable. But I must say, over the past few months, it has gotten a lot better, but still not 100%

  13. #13
    SitePoint Member pamela88's Avatar
    Join Date
    Oct 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you choose .NET you choose Microsoft operating systems with it. But JAVA apps will work out with any operating system or even hardware like iPhone or whatever.

  14. #14
    SitePoint Guru Jason__C's Avatar
    Join Date
    Oct 2009
    Location
    Racoon City
    Posts
    660
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pamela88 View Post
    When you choose .NET you choose Microsoft operating systems with it. But JAVA apps will work out with any operating system or even hardware like iPhone or whatever.
    Wow, another generic open-source argument. So, Java runs on linux? Who gives a ****. Only 1% of people use Linux. Server? MS is catching up. Have fun spending all day in the command line.



    Off topic: I took a break from .NET, but I'm back. Look for more posts and interaction with you guys. Oh, imaginekitty, welcome back to the dark-side.
    Chuck Norris is so tough,
    mosquitos ask for permission before they bite him

  15. #15
    Resident OCD goofball! bronze trophy Serenarules's Avatar
    Join Date
    Dec 2002
    Posts
    1,911
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    You just gave me a good name idea for a sith character in the new Star Wars MMO. LOL.... DarthNET

  16. #16
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,653
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    No, java doesn't work on the iPhone.

    Lots more people use linux than 1%, especially on the server side. Command lines rock, even microsoft admitted as much -- the primary admin interface to the newer server products is powershell not some management studio.

  17. #17
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,880
    Mentioned
    48 Post(s)
    Tagged
    0 Thread(s)
    Yes, java does not work on iPhone or iPad. Only objective-c there. And yes, there are more linux servers around than windows IIRC. Terminal is very good and powerful if you know what you are doing. I am only on Android development at the moment with no .net. And I am running linux instead of windows. It is great. Sure, app support is pretty bad without WINE, but the shell is powerful. It is just a matter of getting used to it.

    Having said all that. For a server side technology. I would definitely use .net over java. It is really a lot better and the IDE just adds to the experience.

  18. #18
    SitePoint Member waqas.om's Avatar
    Join Date
    Dec 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As my .NET background, I suggest you of .NET. But Java is also better. In my openion .NET wins over famous back of Microsoft. So you can have a lot of good support.

  19. #19
    SitePoint Addict dotancohen's Avatar
    Join Date
    Aug 2005
    Location
    Haifa
    Posts
    314
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by imaginekitty View Post
    Ah, I see. Either way, it's worth learning if that's your direction. Is Microsoft going to allow Visual Studio to compile for Android or iPhone? That'll put a damper on Java.
    One month ago I would have said that this is exactly the argument for Java: no waiting or wondering what MS is going to do. But now in Oracles hands, Java is no better:
    http://developers.slashdot.org/story...users-machines
    . Have a question?
    . . What Is Firefox?
    . . . . What Is Open Office?
    . . . . . . What Is What?

  20. #20
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by USPaperchaser View Post
    Wow, another generic open-source argument. So, Java runs on linux? Who gives a ****. Only 1% of people use Linux. Server? MS is catching up. Have fun spending all day in the command line.
    Funny how your post is as ill-informed as the comments you are referring to...

    The technology you choose to implement with should be defined by the project scope/spec, not by personal preference. Both .NET and Java have advantages over each other in various respects. For some projects, .NET is a better fit and in others Java would be the clear choice. A decent developer should have at least some familiarity with both...

  21. #21
    SitePoint Addict dotancohen's Avatar
    Join Date
    Aug 2005
    Location
    Haifa
    Posts
    314
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by USPaperchaser View Post
    Wow, another generic open-source argument. So, Java runs on linux? Who gives a ****. Only 1% of people use Linux. Server? MS is catching up. Have fun spending all day in the command line.
    What a troll! I must be one of those command line idiots, seeing how I'm using Kubuntu. I wonder how I ever got Firefox or Open Office to work in the CLI.

    Most Linux users that I know never touch the CLI. The command line is no more needed in Linux today than it is in Windows.
    . Have a question?
    . . What Is Firefox?
    . . . . What Is Open Office?
    . . . . . . What Is What?

  22. #22
    SitePoint Addict dotancohen's Avatar
    Join Date
    Aug 2005
    Location
    Haifa
    Posts
    314
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by imaginekitty View Post
    Java, regardless of its name, does not make you coffee. .NET doesn't make such pretenses. .NET wins.
    .NET, regardless of its name, does not catch butterflies or fish. Java doesn't make such pretenses. Java wins.
    . Have a question?
    . . What Is Firefox?
    . . . . What Is Open Office?
    . . . . . . What Is What?

  23. #23
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Here's an egg for your shoe.

  24. #24
    SitePoint Guru Jason__C's Avatar
    Join Date
    Oct 2009
    Location
    Racoon City
    Posts
    660
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by dotancohen View Post
    What a troll! I must be one of those command line idiots, seeing how I'm using Kubuntu. I wonder how I ever got Firefox or Open Office to work in the CLI.

    Most Linux users that I know never touch the CLI. The command line is no more needed in Linux today than it is in Windows.
    I'm speaking from experience, not trolling, I programmed in Java in 2002, and it absolutely sucked. Eclipse follows suit in suckage.


    Still using a command line? Well, I would rater use a Wizard/GUI then being stuck in the 90's. Your going to sit here and tell me Java is better then .NET?

    Well, I would like to sell you a cardboard box in Florida.
    Chuck Norris is so tough,
    mosquitos ask for permission before they bite him

  25. #25
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Way to go about proving your not a troll!

    Meh...


Bookmarks

Posting Permissions

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