Friday, July 31, 2009

The different programming languages?

whats the difference between the basic, c#, c++ and j# programming languages? i know that they all have a different syntax and some are easier to learn than others, but what else is different, why is one more useful at times than others?

The different programming languages?
It looks like you are considering .NET languages here.





In particular though, C and C++ ( which are not .NET) allow you some fine grain control that can let you do things like: allocate memory only when you need it, interface with drivers and interface with kernel libraries. Furthermore there tends to be some accuracy advantages when performing high precision calculations. If I remember correctly, the .NET languages are all techinically scripted languages where .NET is a magical system that compiles it to the same sort of 'intermediary' bytecode that the .NET framework can harness. The only advantage is the syntax. Since he overall system is turned into the same intermediary 'bytecode', all the .NET languages and their components can work together.





My recommendation to you is to go for the C++,C# or J# because the syntax has more breadth. VB is not similar to most other programming syntaxes nor is its object orientation.





Oh, and nobody uses J#. Seriously. It died a miserable death trying to compete with Java before it was ressurected entered .NET . It will probably die again. Programmers do not appreciate it when a company takes a language and redefines it to create vendor lock in and their own little idiosyncarcies that you must train to handle.
Reply:Most of this answer is wrong. Microsoft publishes Visual C++. You can write device drivers and "kernel interfaces" (whatever that means) with the .NET languages. . Report It

Reply:NET is not "scripted languages," it's a framework. There's nothing wrong with Visual Basic, it's just different. J# is still fully supported by Microsoft. Report It

Reply:No easy way to answer this. I'll go with this:





1. Microsoft's J# .NET is useless because of the simple fact no one uses it. It was Microsofts attempt to have a language for it's Java platform which has all but went away due to legal reasons. I'm sure there are J# advocates out there but I have yet to meet one.


2. C# is also a part of the .NET Framework and it's the one language mostly used when creating .NET apps. The best thing about C#, in my opinion, is the fact it un-complicates some of C++ pitfalls (i.e, C# has no pointers, no multiple inheritance, and has a meaningful difference between classes and structs-- reference and value types respectively). I can go on and on, but that's my main love for it.


3. C++ is old and reliable...depending on the point of view. There is a lot of room to program "into" this language instead of programming it, and that's the big one here. Available for many different platforms (/me loves) and is supported strongly by a myriad of open source projects (/me also love). My love for this is only surpassed by C#.
Reply:j#? never heard of that before- java sharp?. basically they are all high level languages that are implemented in an object oriented style. All the languages above could be used to design modren systems, the difference between them is the way in which they invoke hardware and how efficient they are at doing this. Most older programmers use some form of OO C ieC# or C++ , but mainly because for them it is a natural step from C. In my opinion java is as powerful as these 2, but is not so widely used. Basic is not a language used often in industry, due to it not being as powerful as C++ or java.Another consideration needed to choose a language to use would also be the platform you are developing for ie Linux , Windows. and their hardware and Interface consraints.
Reply:If you're referring to the Visual Studio .NET languages, the only practical difference between them is the syntax of the language -- that is, how you write the language.





They all use the Common Language Runtime, so they have the same overhead in compiling / execution; they all use the same Framework, so they have the same assemblies, namespaces, etc. available to each.





Which you choose would mostly have to do with which you favor writing. There's no practical difference other than that.


No comments:

Post a Comment