Difference between VB.NET, C#, C++, TorqueScript

Author Topic: Difference between VB.NET, C#, C++, TorqueScript  (Read 2675 times)

So I don't know anything but TS and VB.NET and I want to learn the other two languages and maybe Java.
What are the major differences in syntax between VB.NET/TS and C#?

And does anyone know any good tutorials for these?
« Last Edit: December 18, 2012, 06:49:15 PM by ThinkInvisible »

search thenewboston on youtube

What
.NET isn't a language

C# Example

Code: [Select]
using System;

public class HelloWorld
{
   public static void Main()
   {
      Console.WriteLine("Hello World!");
   }
}
Or go here : http://msdn.microsoft.com/en-us/vstudio/hh341490.aspx and see the examples

TorqueScript Sample
Code: [Select]
package name
{
   function MainMenuGui::onWake(%this)
   {
      echo("Hello World!");
      parent::onWake(%this);
   }
};
activatePackage(name);
Or go here :  http://docs.garagegames.com/tgea/official/content/documentation/Scripting%20Reference/Introduction/TorqueScript.html and see the examples

.NET isn't a language
« Last Edit: December 18, 2012, 02:51:39 PM by Pacnet2012³ »

fine fine VB.NET

sheesh
is it that hard to understand?

They're all completely different things.

VB.NET is designed to be a really easy language to learn and use, but it sacrifices so much speed in the process. So, pretty much: worthless.

C# is a windows-only language that only exists for writing stuffty windows programs that use things like XNA. It's slow and clunky too, but not as bad as VB. It's really easy to make GUI things in, so I'll give it that. Pretty much: worthless for anything but windows app development.

C++ is a godlike language for programming. It is approximately tied in speed as the fastest language in existence, it's competitor being C. Everything runs on C++. Everything. Torque Game Engine, which Blockland runs on, was coded in C++. It's entirely cross platform, if an operating system doesn't have a C++ compiler it's worthless. It blows other languages like Java out of the water in almost every way, but is a rather difficult language to understand with no background in Computer Science. Programming in it is also very dry, people usually like programming in scripting languages better. Pretty much: hard to learn and can be dull to use, but fantastic otherwise.

TorqueScript is the stufftiest language known to man. It is the slowest language I have ever encountered. It compiles to byte code that runs on literally the slowest Virtual Machine in existence. Despite the fact that the TorqueScript parser is a Just-In-Time compiler, TorqueScript takes the cake for the most ungodly molasses-like speeds known to computer programmers everywhere. It runs on every operating system because Torque does, but "runs" in this case is implying too much credit. Pretty much: absolutely useless for anything outside of Blockland.

The above is true. Torquescript and C++ are very similar in syntax though, so if you learn one it's pretty easy to transition to the other.

The above is true. Torquescript and C++ are very similar in syntax though, so if you learn one it's pretty easy to transition to the other.
There are very few things it uses in common except { 's, ;'s, and a couple control statements.
It's actually much more similar to C# than it is to C++.

C# is a windows-only language that only exists for writing stuffty windows programs that use things like XNA. It's slow and clunky too, but not as bad as VB. It's really easy to make GUI things in, so I'll give it that. Pretty much: worthless for anything but windows app development.
C# by itself is a language, you're talking about the Microsoft C# .NET implementation. There is a decent cross platform implementation of C# called Mono that runs on Windows, Linux, Mac, iOS and Android (and I think FreeBSD?). You don't give C# as much credit as it deserves -- it runs at pretty decent speeds, but there's not much interesting available library wise.
TorqueScript parser is a Just-In-Time compiler
No, it's an interpreted language and a slow one at that (fastest interpreted languages are generally standard Lua and Mozilla's JS implementation, SpiderMonkey before they added JIT support).

In short: use C++ if you want to have speedy apps, lots of third party libraries and get hired (although you'll grow to hate C++), learn C# if you want to have simpler code at the code of moderately speedy apps (heaps of jobs available for .NET devs too) and never ever use TorqueScript for anything outside of Blockland. I would honestly give C a try, it's a lot simpler than C++ and easier to learn (and makes it much easier for you to step up to C++ when you're ready).
« Last Edit: December 19, 2012, 09:36:08 AM by Destiny/Zack0Wack0 »

C# by itself is a language, you're talking about the Microsoft C# .NET implementation. There is a decent cross platform implementation of C# called Mono that runs on Windows, Linux, Mac, iOS and Android (and I think FreeBSD?). You don't give C# as much credit as it deserves -- it runs at pretty decent speeds, but there's not much interesting available library wise.
You're right, I forgot about mono.

No, it's an interpreted language and a slow one at that (fastest interpreted languages are generally standard Lua and Mozilla's JS implementation, SpiderMonkey before they added JIT support).
TorqueScript uses a virtual machine that runs on byte code, which TS is converted into upon execution. To my understanding, this is what a JIT compiler does.

EDIT: my understanding of JIT compilation was wrong. forget you, Wikipedia.
« Last Edit: December 19, 2012, 03:43:52 PM by Trinick! »

You could say that torque script has the php functions :P
Code: [Select]
<html>
<head>
<script>
function showUser(str)
{
if (str=="")
  {
  document.getElementById("txtHint").innerHTML="";
  return;
  }
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","getuser.php?q="+str,true);
xmlhttp.send();
}
</script>
</head>
<body>

<form>
<select name="users" onchange="showUser(this.value)">
<option value="">Select a person:</option>
<option value="1">Peter Griffin</option>
<option value="2">Lois Griffin</option>
<option value="3">Glenn Quagmire</option>
<option value="4">Joseph Swanson</option>
</select>
</form>
<br>
<div id="txtHint"><b>Person info will be listed here.</b></div>

</body>
</html>

^ confused me so much, start talking about TorqueScript and PHP then paste HTML/JavaScript code..

-failsnop-
what does that code have to do with

anything


related to this topic

C# builds upon Java. Java was designed to be used on all forms of hardware. C++ was an attempt to bring OOP to the C Language.
.NET is (I believe) Libraries of code, used by most programs running any of Microsoft's OS's. It provides common functionality for those applications to run.

Torquescript is a scripting language, unlike C#, Java, And C++, which are programming langauges.
The differences are subtle, and I need to refresh myself on the specifics. But I dislike torque, if that means anything.
« Last Edit: December 30, 2012, 01:05:01 PM by Rykuta »

VB.NET is designed to be a really easy language to learn and use, but it sacrifices so much speed in the process. So, pretty much: worthless.

C# is a windows-only language that only exists for writing stuffty windows programs that use things like XNA. It's slow and clunky too, but not as bad as VB. It's really easy to make GUI things in, so I'll give it that. Pretty much: worthless for anything but windows app development.
The only difference between VB.NET and C# is syntax.