• 0

.Net or Java on Linux? confused after .Net is Open Source


Question

Hi guys, Just a lettle background about me. I am a person who like to code for fun and for the past years I learned SQL Server, C#, Xaml.

And these days am thinking for developing apps for the mobiles. I did some for WP8 and I am starting to get into Android using Xamarin (iOS later).

 

What I need is a server that is cheap and stable that I can relay on it, that can push the data from it to the handsets. And I found that Linux CentOS is what I need. For this I am currently learning MySql for the database. But this come to the problem of either chosing .Net or Java.

 

I will be using Restful service to do the data push. I was going with Java straght since that it will be only supported on that system. But with the announcement of Microsoft that it is open sourcing .Net and supporting Linux, It got me confused of what to pick since both support Restful using (jax-rs in Java) and (WCF in .Net).

 

Please advise me on what to pick. And I am open to any suggestions.

 

Thanks,

 

 

15 answers to this question

Recommended Posts

  • 0

I'm not a .net guy, or a very experienced programmer for that matter, but from what I understand the mono project has provided .net compatibility on Linux for some time now.  Microsoft just open sourced the "official" one.

 

http://www.mono-project.com/

  • Like 1
  • 0

Just a few thing to think about.

 

1. How easy is each choice to scale - you never know if your app takes off.

2. How easy is it to find solutions when things go wrong or you are stuck

 

I have found moving general code around is usually quite easy, but things like web services are more cumbersome. 

 

I'd edge slightly towards Java as I usually code on either my Mac or Windows then move to either a Linux box or an AS400, the latter does not support .net but I like the idea of .net portability and will be keeping an eye on its progress now it's open source.

  • 0

I don't do Linux nor Web development but FYI you're not limited to .NET and Java, popular options on Linux include Ruby on Rails and Python. From what I've heard servers supporting .NET tend to be more expensive.

  • Like 2
  • 0
  On 22/11/2014 at 09:33, Gerowen said:

I'm not a .net guy, or a very experienced programmer for that matter, but from what I understand the mono project has provided .net compatibility on Linux for some time now.  Microsoft just open sourced the "official" one.

 

http://www.mono-project.com/

Mono provided limited ASP.NET support, and is way behind current standards.

 

Microsoft is changing that.

  • 0
  On 22/11/2014 at 20:49, adrynalyne said:

Mono provided limited ASP.NET support, and is way behind current standards.

 

Microsoft is changing that.

10-4 on that, now I know, :-)

  • 0

Yeah as Adrynalyne said, ASP.NET support sucks on Linux compared to Windows at the minute, you're far better going with one of:

 

  • PHP
  • Ruby
  • Python
  • Java

Ordered by my preference for web development. PHP probably sucks the most, but it's by far the most widely known.

  • 0
  On 22/11/2014 at 20:39, Andre S. said:

I don't do Linux nor Web development but FYI you're not limited to .NET and Java, popular options on Linux include Ruby on Rails and Python. From what I've heard servers supporting .NET tend to be more expensive.

Asik, as much as I love you normally, .NET support usually wasn't allowed on Linux hosts except VPN (where you'd have to install mono-project yourself), Linux being free was usually a cheaper option for hosting, now those cheaper hosts are slowly adding .NET support at the same price.

 

*manly hugs*

  • 0
  On 25/11/2014 at 12:58, Kami- said:

Asik, as much as I love you normally, .NET support usually wasn't allowed on Linux hosts except VPN (where you'd have to install mono-project yourself), Linux being free was usually a cheaper option for hosting, now those cheaper hosts are slowly adding .NET support at the same price.

 

*manly hugs*

 

Are .NET and Windows costs lowering or are Linux costs increasing to the same levels as Windows ? 

  • 0

I would look at Azure / Azure Mobile services and focus on .NET/C# especially if you'll be also using Xamarin and C# for your mobile apps - that way you use the same language end-to-end. Azure prices have been getting lower and lower and you can start dirt cheap and scale up as needed. Also you get access to a ton of other services should you need them.

  • 0
  On 22/11/2014 at 08:33, deep1234 said:

Hi guys, Just a lettle background about me. I am a person who like to code for fun and for the past years I learned SQL Server, C#, Xaml.

And these days am thinking for developing apps for the mobiles. I did some for WP8 and I am starting to get into Android using Xamarin (iOS later).

 

What I need is a server that is cheap and stable that I can relay on it, that can push the data from it to the handsets. And I found that Linux CentOS is what I need. For this I am currently learning MySql for the database. But this come to the problem of either chosing .Net or Java.

 

I will be using Restful service to do the data push. I was going with Java straght since that it will be only supported on that system. But with the announcement of Microsoft that it is open sourcing .Net and supporting Linux, It got me confused of what to pick since both support Restful using (jax-rs in Java) and (WCF in .Net).

 

Please advise me on what to pick. And I am open to any suggestions.

 

Thanks,

 

WCF uses the SOAP protocol, not RESTful. To do a RESTful service you need to use ASP.NET Web API as the starting point.

 

Now, the current version would require a lot more work to get working on Linux. You can start with the current version and wait for the next version to release next year, or you can start developing on the new version if you are able to work on pre-release of .NET and VS.

 

The major changes for ASP.NET is merging MVC and Web API into one framework. Then they are fully supporting installing ASP.NET on OSX and Linux.

 

 

  On 23/11/2014 at 13:23, Majesticmerc said:

Yeah as Adrynalyne said, ASP.NET support sucks on Linux compared to Windows at the minute, you're far better going with one of:

 

  • PHP
  • Ruby
  • Python
  • Java

Ordered by my preference for web development. PHP probably sucks the most, but it's by far the most widely known.

 

Next version of ASP.NET changes that.

  • 0
  On 26/11/2014 at 18:24, libertas83 said:

WCF uses the SOAP protocol, not RESTful. To do a RESTful service you need to use ASP.NET Web API as the starting point.

 

Now, the current version would require a lot more work to get working on Linux. You can start with the current version and wait for the next version to release next year, or you can start developing on the new version if you are able to work on pre-release of .NET and VS.

 

The major changes for ASP.NET is merging MVC and Web API into one framework. Then they are fully supporting installing ASP.NET on OSX and Linux.

 

 

 

Next version of ASP.NET changes that.

Of course it does.  We were clarifying why it was needed.

  • 0
  On 22/11/2014 at 09:33, Gerowen said:

I'm not a .net guy, or a very experienced programmer for that matter, but from what I understand the mono project has provided .net compatibility on Linux for some time now.  Microsoft just open sourced the "official" one.

 

http://www.mono-project.com/

Looks like a lot of effort,

http://www.mono-project.com/docs/about-mono/dotnet-integration/

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Yeah!!!! I was damn well shocked to see the tab with previous file open when I clicked on the new file. It had private info and I was opening another file to show another person. That was weird
    • The article says the whole setup is about the size of a pencil case which sounds pretty portable to me.
    • I thought router has to have 6 Ghz band to be called wifi-7, guess I was wrong...
    • I have the Pixel 9 Pro XL...Unless this thing is "leaps and bounds" faster than the 9, I'll pass. And by leaps and bounds, I don't mean on benchmarks. "Real world" faster. Most people don't even come close to topping out the performance of their phones. Tensor G5 is Google's most powerful chip to date, boasting a staggering 36 percent performance leap over G4.
    • MIT's stunning 'bubble wrap' device squeezes water out from thin air even in deserts by Sayan Sen Image by Matteo Roman via Pexels Massachusetts Institute of Technology (MIT) engineers have built a new kind of device that can pull clean drinking water straight out of the air—no electricity needed. It’s designed for areas where water is scarce and traditional sources like rivers or lakes aren’t reliable. Right now, more than 2.2 billion people globally don’t have access to safe drinking water. In the United States alone, 46 million face water insecurity, with either no running water or water that’s not safe to drink. This new device, called an Atmospheric Water Harvesting Window (AWHW), uses a unique hydrogel panel that looks like black bubble wrap. These dome-shaped bubbles soak up water vapor from the air, especially at night when humidity is higher. During the day, sunlight makes the vapor inside evaporate. That vapor then condenses on a glass surface and drips down through a tube, turning into drinkable water. The AWHW doesn’t rely on power sources like batteries or solar panels. It’s completely passive, meaning it works on its own. The team tested a meter-sized panel in Death Valley, California, one of the driest places in North America, and got between 57.0 and 161.5 milliliters of water per day even with humidity as low as 21 percent. That’s more than what other similar passive devices have managed. “We have built a meter-scale device that we hope to deploy in resource-limited regions, where even a solar cell is not very accessible,” said Xuanhe Zhao, a professor at MIT. “It’s a test of feasibility in scaling up this water harvesting technology. Now people can build it even larger, or make it into parallel panels, to supply drinking water to people and achieve real impact.” Another cool part of the design is how they kept the water safe to drink. Usually, these kinds of hydrogels use salts like lithium chloride to absorb more vapor but that can lead to salt leaking into the water, which isn’t ideal. To solve this, MIT’s team mixed in glycerol, a compound that helps keep salt locked inside the gel. In testing, the lithium ion concentration in the harvested water stayed below 0.06 ppm (parts per million), which is way below the safe limit. The hydrogel domes also give the material more surface area, letting it collect more vapor. The outer glass panel is coated with a special polymer film that helps cool the glass, making it easier for vapor to condense. “This is just a proof-of-concept design, and there are a lot of things we can optimize,” said lead author Chang Liu, now a professor at the National University of Singapore. “For instance, we could have a multipanel design. And we’re working on a next generation of the material to further improve its intrinsic properties.” Published in Nature Water, the study says the AWHW could last at least a year and shows promise for making safe, sustainable water in places with harsh climates. The researchers believe an array of vertical panels could one day supply water to individual households, especially in remote or off-grid locations. Source: MIT News, Nature This article was generated with some help from AI and reviewed by an editor. Under Section 107 of the Copyright Act 1976, this material is used for the purpose of news reporting. Fair use is a use permitted by copyright statute that might otherwise be infringing.
  • Recent Achievements

    • One Month Later
      Ricky Chan earned a badge
      One Month Later
    • First Post
      leoniDAM earned a badge
      First Post
    • Reacting Well
      Ian_ earned a badge
      Reacting Well
    • One Month Later
      Ian_ earned a badge
      One Month Later
    • Dedicated
      MacDaddyAz earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      ATLien_0
      209
    3. 3
      Michael Scrip
      202
    4. 4
      Xenon
      143
    5. 5
      +FloatingFatMan
      121
  • Tell a friend

    Love Neowin? Tell a friend!