• 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,

 

 

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 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.

Link to comment
Share on other sites

  • 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
Link to comment
Share on other sites

  • 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/

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

 

Microsoft is changing that.

Link to comment
Share on other sites

  • 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.

Link to comment
Share on other sites

  • 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.

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*

Link to comment
Share on other sites

  • 0

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 ? 

Link to comment
Share on other sites

  • 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.

Link to comment
Share on other sites

  • 0

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.

 

 

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.

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 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/

Looks like a lot of effort,

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

Link to comment
Share on other sites

  • 0

well since .NET is going open source, this should change a lot of things client and serverside, just not immediately.

Link to comment
Share on other sites

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

    • No registered users viewing this page.