locked
Different Languages in .Net RRS feed

  • Question

  • User-1138911480 posted

    I have a basic question in .Net

    Why there is a need for .Net Framework supporting different languages? Is it not better to train everyone in a single language?

    Thanks. <!-- google_ad_section_end -->

    Sunday, November 30, 2008 5:59 AM

Answers

  • User-319574463 posted

     >Why there is a need for .Net Framework supporting different languages? Is it not better to train everyone in a single language?

    Aside of the two very general purpose languages VB.NET and C#, there is a variety of special purpose languages to do jobs that neither VB.NET or C# can do efficiently:

    • Fortran
    • Eiffel
    • RPG (and that is RPG as in Report Program Generator)
    • Cobol 
    • Python

    Considering that there are are 20+ .net languages now, there are several reasons:

    • Existing developer base
    • Existing code base
    • Interoperability - suppose you have a routine in one language in a class library, Dot Net allows ready linkage to it from Dot Net applications written in other languages.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 4, 2008 10:47 AM

All replies

  • User1839833660 posted

     Supose a VB or C++ or JAVA programmer wants to switch to .NET , than won't he prefer choosing the language he is proficient in

    Sunday, November 30, 2008 9:09 AM
  • User-319574463 posted

     >Why there is a need for .Net Framework supporting different languages? Is it not better to train everyone in a single language?

    Aside of the two very general purpose languages VB.NET and C#, there is a variety of special purpose languages to do jobs that neither VB.NET or C# can do efficiently:

    • Fortran
    • Eiffel
    • RPG (and that is RPG as in Report Program Generator)
    • Cobol 
    • Python

    Considering that there are are 20+ .net languages now, there are several reasons:

    • Existing developer base
    • Existing code base
    • Interoperability - suppose you have a routine in one language in a class library, Dot Net allows ready linkage to it from Dot Net applications written in other languages.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 4, 2008 10:47 AM
  • User-1630302068 posted

     Honestly no it's not best to move everyone to a single language.  Different languages provide different fundamental approches to programming.  I should not be constrained to a language like C# when a functional language like LISP is the best tool for the job.  Also when you have an application providing scriptability, it's VERY convenient to be able to expose your objects directly to the script without having to write adapters.

    Wednesday, December 10, 2008 3:14 PM
  • User630997147 posted

     A basic answer.
    For the time being forget about .NET Platform. Lets say a question:

    Questioin: Why there are multiple languages avaiulabel?

    Ans: Consider the 2 languages C(.c) and Assembly(.asm)

    In assembly to exit from the code u write

    MOV AX,09H;
    INT 21H;

    in C you write
    exit(0);

    This is very simple example. for more complex liek sorting a string in assemebly will be more complex compared to c and the latest
    languages available. in many languages you will have .Sort() method for the purpose but you have to do that personally in
    Assembly. So wrtting code in C will be much easy, faster and bug free than in Assembly.

    Consider the COBOL Langauge, This is very good for Database operations, like its has inbuilt mechanism for Keeping sorted record,
    Travesing in database rows and finding a specific value etc, Whereas if you want to do the same in C/C++ language you have to
    implemt Linklist, File.h etc, that is some sort of Data Structures in C/C++. So using COBOL in this case is suitable.

    Consider graphics operation: Think its is so easy with Foxpro/VB/VB.NET/Developer 2K/C#/Java etc, so if GUI is important then
    u will not mostly use C or Assembly.

    This above is the one example how languages have been evolved since times bases on the user need. And there are 500 languages
    available in the market now starting from Langauge A, C to unklnown to me.


    So your answer, if you want to have Excellent GUI features, Powerful code, Rapid Application desgin, Machine independant code,
    with lot many other features and if you chose C or Assembly you will simply make your night horrible (may be enjoyable).

    Regards,
    Soumen, India




    Tuesday, April 7, 2009 2:28 AM
  • User-1138911480 posted

     Thanks

    Thursday, September 24, 2009 2:32 AM