Community Forums Archive

Go Back

Subject:C# or Javascript?
Posted by: Monobass
Date:10/9/2008 4:17:08 AM

Hi,

I've been hacking scipts for a while in SF and Vegas but I've decided I want to get some more formal education in scripting...

But what should I go for? C# or Javascript?

Thanks

Steve

Subject:RE: C# or Javascript?
Reply by: _TJ
Date:10/9/2008 3:35:34 PM

C# is a better fit for Scripting in Sound Forge and Vegas. Nearly all of our samples are C#, and we just like the language better.

We are mostly C/C++ programmers to begin with, and that's certainly part of the reason that we prefer C#. But we also prefer to work in a language that is strongly typed. In a strongly typed language like C#, the compiler is more likely to find silly bugs that would compile in Javascript, but not run correctly.

If you program a lot, as we do. The extra effort in getting your code to compile is paid back many times over in fewer runtime errors.

tj

Subject:RE: C# or Javascript?
Reply by: BradlyMusic
Date:10/16/2008 10:37:48 AM

I'm currently working my way through the Sam's "Teach Yourself C in 21 days". I'm finding as I progress in the book, I can understand a lot of how the current scripts work for Sound Forge. Do you already know C or C++?

If not then learning C would be the way to go in my opinion, since C# and Java are just extensions of C programming. Basically you get the foundation you need by learning C, and then you can use all of that knowledge to then learn C#, Java, or C++

The Sam's book that I suggested also has additional learning sections for C++, Java, and C# following the C learning sections.

This is assuming that you want to teach yourself in your free time. If you want a formal education via classes.....you should start with C since that is the 1st step of the other languages such as Java and C# that you are asking about.

I finally understand why "C++" is the next version of C....instead of say "C+" :). Some software geek came up with a cute spin on using the C programming language to make the next version of C. Thus C++ ==(C=C+1)

Oh....and just because the book says "Learn C in 21 days"....don't think that's realistic...if you really want to spend time to learn it....and it's not realistic unless you spend 24 hours of your day doing it day. I got through the 1st 3 days in about 3 days. Starting at Day#4 it's taking me about a week or more for each day. I'm currently on Day#6 and I've been trying to go through the book for at least 2 months now. :)~ But I'm also going through all the exercises in the book and truly learning and understanding it. You can spend a day on a single exercise in the book, writing the code and making sure you understand what is going on and they put at least 10 exercises at the end of each days lesson.

Other than feeling like I was lied to, in that I could learn C in 21 days, I feel it's a really good book though, and highly recommend it if you want to teach yourself.

Message last edited on10/16/2008 10:56:19 AM byBradlyMusic.
Subject:RE: C# or Javascript?
Reply by: Mike C
Date:6/9/2010 10:20:22 AM

Hi,

I have been a professional software engineer for 25+ years. I know languages like Pascal, FORTRAN, C, C++, Java, JavaScript, etc.

>But what should I go for? C# or Javascript?
We need to get our terms straight first.

Scripting is typically associated with a "lighter-weight" language that allows us to write simple "scripts" that don't need to be compiled. Examples might include Python & Perl, DOS command files, UNIX Shell scripts, etc.

"Advanced" computer languages such as C/C++ or Java are more "advanced" and need to be compiled or type-checked.

So C# is an advanced computer language, invented by MS, as an attempt to meet the requirements of Java.

JavaScript is actually not a "scripting" language per se, but it most typically used to "script" HTML in Web Browsers. To my knowledge, there is no practical way to use it outside of the web browser.

It takes longer than 21 days to C. I learned it really well in probably 1 - 2 years but that was after programming for a number of years prior to that.

I hope this helps.

Mike

Go Back