• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Why is it said that using C# the development is rapid and easier as compared to Java?

 
Ranch Hand
Posts: 2949
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is said that using C#,  the time required for development is faster than Java and it is easier to develop using C# than using Java?

Thanks
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Who says this? Perhaps those are the people should ask about why they think so.
 
Bartender
Posts: 669
15
TypeScript Fedora
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I dont see why it would be faster.
 
Monica Shiralkar
Ranch Hand
Posts: 2949
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was trying to know the reasons that in which scenarios would someone prefer C# over Java.  My understanding was that someone would choose C# over java when they do not want to run application on Linux and want to run it only on Windows and want rapid development that includes easier shorter syntax for properties (no getter setter required),  no separate servers required (only IIS required which comes in built with Windows OS and no tomcat, joss, web logic setup required).

 
Saloon Keeper
Posts: 15727
368
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my experience there's no significant difference. I've been working with Java for 13 years and with C# for 5 years and I find it easier to quickly pound out apps with Java simply because I'm more familiar with the API.

Anybody who is concerned with how much faster they can write an application in one language because that language has some cool language feature that another doesn't has the wrong priorities: the most time in development is spent on planning and designing applications, not programming.

Except VBScript. **** VBScript. When I have to maintain an application written in VBScript I first invest some time rewriting it to JavaScript.
 
Monica Shiralkar
Ranch Hand
Posts: 2949
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. So when this one is ruled out then under which scenario/s should someone choose C# over java for their application development?
 
Stephan van Hulst
Saloon Keeper
Posts: 15727
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When most developers on the team are more comfortable with C#, or when you're targeting features or applications specific to Windows.

For instance, I would pick C# when I have to do COM interop with Microsoft Word.

Why do you need to know this? It's good to know both languages.
 
Marshal
Posts: 79953
396
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Stephan van Hulst wrote:. . . It's good to know both languages.

It's also good to understand the differences between them, which will enhance your knowledge of computer sciences.
 
Monica Shiralkar
Ranch Hand
Posts: 2949
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks

First, I started to understand the differences between C# and Java. The primary ones I found are java is platform independent whereas C# is for Windows platform. C# doesn't have checked exceptions and we do not need to explicitly propagate up the exception. C# properties is simpler and doesn't require getter and setter. C# has a different concept for generics which I am yet to study. C# has features of delegates and linq which I am yet to study.


Second, I tried to understand that in which scenarios should one choose Java and in which scenarios should one use C#. I understood that Java and C# are high level languages not suited for low level programming like OS programming using C/C++. If the application is to be run on non we down platform like Linux, then Java has to be chosen instead of C#.

Now I want to know that suppose a team has equal expertise in both Java and C# and also there is no requirement of building it for non windows platform and also we do not need to target windows specific features,  then in such a case how to decide whether to choose Java or C# for the application?
 
Marshal
Posts: 8960
646
Mac OS X Spring VI Editor BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Monica Shiralkar wrote:C# is for Windows platform


It used to be the case in the past. As far as I know - not anymore.
 
Stephan van Hulst
Saloon Keeper
Posts: 15727
368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
C# is not platform dependent. If you only use the .NET Standard libraries, you can run C# applications on any OS.

You are asking what you need to do when the circumstances don't favor a specific language. Then you flip a coin.
 
Liutauras Vilda
Marshal
Posts: 8960
646
Mac OS X Spring VI Editor BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Monica Shiralkar wrote:Now I want to know that suppose a team has equal expertise in both Java and C# and also there is no requirement of building it for non windows platform and also we do not need to target windows specific features,  then in such a case how to decide whether to choose Java or C# for the application?


Team changes over the time. Maybe worth considering how much effort would be to acquire new developers with an expected level of expertise. I don't think there is such definite answer to the question you are rising with such prescribed set of statements around.
 
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic