CGPersia Forums
Release Blog CGPeers IRC Chat FAQ
Go Back   CGPersia Forums > Off Topic > Off-Topic Discussion
Reload this Page C#? Javascript?
Off-Topic Discussion Freely chit-chat about anything

Reply
 
Thread Tools Search this Thread
Old 05-20-2017, 02:08:29 PM   #1
Original Poster
Join Date: Dec 2011
Posts: 2
Thanks (Given): 0
Thanks (Received): 0
Default C#? Javascript?

Hello guys

im starting with game dev using unity, but i cant decide
which is better for beginner?
thx for reply
is Offline  
Reply With Quote
Old 05-20-2017, 03:25:07 PM   #2
drdvdr
Join Date: Nov 2016
Posts: 85
Thanks (Given): 28
Thanks (Received): 47
I think you'll find C# being used more often in current unity projects so I'd suggest learning that ...
is Online  
Reply With Quote
Old 05-20-2017, 04:26:03 PM   #3
XDF5
Join Date: Feb 2015
Posts: 664
Thanks (Given): 294
Thanks (Received): 97
Link(s):
 
for begginer c# for future javascript (native react)
gamedev is btw the most poor pay in IT
is Online  
Reply With Quote
Old 05-21-2017, 05:04:09 AM   #4
Sproxar
Sproxar's Avatar
Join Date: Sep 2013
Posts: 3,020
Thanks (Given): 2318
Thanks (Received): 2152
Link(s):
 
I disagree. JS (actually UnityScript as implemented in Unity) is generally considered easier to learn for beginners, because it's less structured. But it starts to hold you back when you get into more complex coding, especially when you need to reference other scripts, or access the APIs of other assets - most of which are written in C#. C# has more of an initial learning curve, but makes your life easier in the long run. There's also talk that Unity might deprecate UnityScript at some point, now that they've embraced .NET and IL2CPP. As for JS React Native support, I'm not ruling it out, but don't see a lot of buzz on the Unity forums about it yet.

Here's some additional info:
Link(s):
 
Link(s):
 
Link(s):
 
Link(s):
 
Not sure what this has to do with anything. It's not what @ehyunmin was asking about, and isn't always a factor when people get into gamedev anyway. Sometimes it's just a hobby.
__________________

doing my part to make the world a better place... one post at a time.
is Offline  
Reply With Quote
1 Thanks, 0 Dislike - 2snap thanked for this post
Old 05-21-2017, 05:52:47 AM   #5
totonos
Join Date: Nov 2013
Posts: 1
Thanks (Given): 33
Thanks (Received): 0
Well firstly depends on your background. Probably javascript is more known. If you have a bit of experience (or at least you tried to read the source of a web site) javascript could be more easily to start with.
However I would go with C#. You could never know where your game development journey will land you (perhaps you will move to app development), so I would go with C#.
is Offline  
Reply With Quote
Old 05-21-2017, 07:15:32 AM   #6
ehyunmin
Original Poster
Join Date: Dec 2011
Posts: 2
Thanks (Given): 0
Thanks (Received): 0
Thank you guys!
very helpful for me!! thx!!
is Offline  
Reply With Quote
Old 05-21-2017, 01:19:55 PM   #7
Indisguise
Join Date: Mar 2012
Posts: 100
Thanks (Given): 209
Thanks (Received): 77
I don't think C# is more difficult to learn than "JavaScript" (the language in Unity is actually called UnityScript, but looks just like JavaScript) it's just much more powerful and therefore gets more complex as you learn the more advanced features. The basics of both languages look very similar if you compare a script written in each.

If I were starting out, I would stick with C#. Once you learn C#, you will be able to sight-read JS/US scripts if you need to.
is Offline  
Reply With Quote
Old 05-21-2017, 05:52:14 PM   #8
tripps
Join Date: Dec 2013
Posts: 1
Thanks (Given): 0
Thanks (Received): 0
I would suggest trying to learn C#. It's quite robust, is getting to be more mainstream as far as a cross-platform language. I might also suggest learning straight up C++ and looking into Unreal as well.
is Offline  
Reply With Quote
Old 05-21-2017, 06:45:35 PM   #9
qazokm
Join Date: Apr 2010
Posts: 22
Thanks (Given): 23
Thanks (Received): 0
C# for sure. Javascript is very limited and barely used in it's pure form anymore
is Offline  
Reply With Quote
Old 05-22-2017, 09:17:34 AM   #10
kent93
Join Date: Sep 2012
Posts: 7
Thanks (Given): 2
Thanks (Received): 1
C# better for beginner developer, at least the autocomplete is working in MonoDevelop and also most of the tutorial are written in C#.

Both language can do exactly the same under Unity, they are just intermediate code that will compile into native platform code.

Outside Unity, don't try to compare. There are always another better language, you have to keep learning new language.
is Offline  
Reply With Quote
Old 05-25-2017, 08:10:49 AM   #11
SRDDonkey
Join Date: Mar 2014
Posts: 1
Thanks (Given): 0
Thanks (Received): 0
As a beginner, choose whichever seems to be the most popular language for what you are trying to accomplish. In this case, C# for Unity. The reason for this is that the documentation and support for using that language is more plentiful.
is Offline  
Reply With Quote
Old 05-25-2017, 06:33:15 PM   #12
kclv
Join Date: Oct 2013
Posts: 12
Thanks (Given): 3
Thanks (Received): 2
From experience, learn C#. It will help if you start stepping into the realm of Editor extensions etc. Also, it helps to know a language as robust and widely used as C#. BUT, no matter what you choose to learn, you will do fine as long as you have a solid willingness to learn and a passion for what you're doing! Good luck!
is Offline  
Reply With Quote
Old 10-07-2017, 05:09:04 PM   #13
vladik865
Join Date: Aug 2014
Posts: 9
Thanks (Given): 4
Thanks (Received): 0
Full support at Unity C# therefore is better on it and learns to begin. some functions in JavaScript just are not supported
is Offline  
Reply With Quote
Old 10-07-2017, 05:26:17 PM   #14
groo69
Join Date: Aug 2010
Posts: 27
Thanks (Given): 14
Thanks (Received): 4
c# all the way for me!
is Offline  
Reply With Quote
Old 10-09-2017, 05:29:41 PM   #15
auruk
Join Date: Dec 2009
Posts: 1
Thanks (Given): 0
Thanks (Received): 0
I normally use JS in my daily work and C# only sometimes but for Unity I only can recommend C#, the JS implementation in Unity is partial with custom made additions and with low support from community.
is Offline  
Reply With Quote
Old 10-09-2017, 06:09:49 PM   #16
ks1nger
Join Date: May 2013
Posts: 1
Thanks (Given): 1
Thanks (Received): 1
bye bye javascript in unity
Link(s):
 
is Offline  
Reply With Quote
1 Thanks, 0 Dislike - Sproxar thanked for this post
Old 10-10-2017, 08:19:26 AM   #17
Sproxar
Sproxar's Avatar
Join Date: Sep 2013
Posts: 3,020
Thanks (Given): 2318
Thanks (Received): 2152
Link(s):
 
Well I guess that's the definitive answer to the OP's question. Also say bye bye to Boo (Yay, all it ever did was generate incomprehensible error messages anyway. )
__________________

doing my part to make the world a better place... one post at a time.
is Offline  
Reply With Quote
Old 10-10-2017, 10:10:12 AM   #18
drikklfraque
drikklfraque's Avatar
Join Date: Oct 2014
Posts: 399
Thanks (Given): 148
Thanks (Received): 70
If you want to be later the publisher/holder/vallue-$-farmer of your unity-app/game C++ is a unity-must.
And Java Script is a also needed tool for all arround this... in java you can make and understand like in C++
and you will not go around it, to think in " wahtsbetter-worse", does never work in real.
so c++ robust skill = unitiy = your benefit..
Java Sc = much in web it can be
And other new things ( if we would have one comon sense, 2017 all is like 1417.. idotism 4.0) will lead ( mobile)
wherer you think you can earn more/ and vallue of work you set on it..

BUT DO IT! YOU WILL BE FINE!
is Offline  
Reply With Quote
Old 10-10-2017, 05:24:50 PM   #19
XDF5
Join Date: Feb 2015
Posts: 664
Thanks (Given): 294
Thanks (Received): 97
.js for future (testing/web develop)
is Online  
Reply With Quote
Old 10-12-2017, 03:14:50 PM   #20
tosiabunio
Join Date: Jan 2011
Posts: 1
Thanks (Given): 0
Thanks (Received): 0
C# if you plan to stick with games. But these are just languages, focus on programming, algorithms and data structures.
is Offline  
Reply With Quote
Old 10-12-2017, 11:59:50 PM   #21
snowshine
Join Date: Apr 2013
Posts: 9
Thanks (Given): 50
Thanks (Received): 55
I recommend C# it is easier for a beginner. There are more examples/assets using C# for you to learn.
is Offline  
Reply With Quote
Old 10-13-2017, 12:55:09 PM   #22
Stalker23b
Join Date: Feb 2011
Posts: 1
Thanks (Given): 0
Thanks (Received): 0
C# defenitely better!
is Offline  
Reply With Quote
Old 10-14-2017, 01:10:56 PM   #23
vienem
Join Date: Jan 2014
Posts: 1
Thanks (Given): 0
Thanks (Received): 0
C# in Unity3D for sure, a good way to learn is to watch some youtube tuts such as Brackeys.
is Offline  
Reply With Quote
Old 10-17-2017, 08:16:13 PM   #24
vzv123
Join Date: Mar 2013
Posts: 1
Thanks (Given): 0
Thanks (Received): 0
"+" for C#, javascript is great but is handy only for small parts of code (IMHO)
is Offline  
Reply With Quote
Old 10-25-2017, 04:48:23 AM   #25
seer
Join Date: Jun 2011
Posts: 3
Thanks (Given): 1
Thanks (Received): 1
it would really depend on what you plan to do, if you are going to use unity then C# is the way to go. (they are discontinuing support for JS). Once you learn the concepts of C# you can transfer that knowledge to several other languages
JS is a somewhat different beast, if you plan to make a game on the web, then its the way to go, although unity with webgl is always good too
is Offline  
Reply With Quote
Old 10-25-2017, 12:31:39 PM   #26
bedtimebear
bedtimebear's Avatar
Join Date: Aug 2011
Posts: 1,038
Thanks (Given): 322
Thanks (Received): 328
C++ and Unreal 4 Blueprint!!!!

- Otherwise, it's pure waste of time
__________________
I Am!I Was! You Are?
is Offline  
Reply With Quote
Old 10-25-2017, 07:00:31 PM   #27
magallanes
magallanes's Avatar
Join Date: Jul 2009
Posts: 1,175
Thanks (Given): 386
Thanks (Received): 618
Javascript is practically the most used language.

However, this reason is moot since working with Javascript-unity is different than to work in javascript-html.
__________________
Revenge is never good, it kills the soul and poisons it. -Ron Damon
is Offline  
Reply With Quote
1 Thanks, 0 Dislike - Sproxar thanked for this post
Old 10-30-2017, 01:59:47 PM   #28
bedtimebear
bedtimebear's Avatar
Join Date: Aug 2011
Posts: 1,038
Thanks (Given): 322
Thanks (Received): 328
There are two Java. Java programming language and JavaScript. As the name says JavaScript is a scripted language.

And again I can say: Why wasting time with Java? Like Flash, who nowadays is expending time with it?

I would not give Java programming language much more time to disappear too! And why C# and not C++? C++ it is much more powerful.
C++ is suitable for graphics applications while C# is most commonly used in non-graphics applications and OS core programming.
__________________
I Am!I Was! You Are?
is Offline  
Reply With Quote
Old 11-03-2017, 07:51:33 AM   #29
ps2invader
Join Date: Jan 2013
Posts: 6
Thanks (Given): 1
Thanks (Received): 18
For my experience if you want do more than scripting you have to use C#

With Unity Javascript you can script really fast, but if you want do something more complicated in the future like Editor scripting or Editor extension or Engine Integration / plugin etc. with C# you can do it fast and easy (after some learning obviously)
is Offline  
Reply With Quote
Old 11-06-2017, 08:27:51 AM   #30
cazsan
Join Date: Feb 2012
Posts: 1
Thanks (Given): 0
Thanks (Received): 0
As an application dev i'd suggest you to go with C# because of its simplicity, flexibility and also becauSe it's a strong typed language and allows you to do less mistakes coding a way you should not
is Offline  
Reply With Quote
Old 11-19-2017, 02:27:39 AM   #31
kh2010
Join Date: May 2010
Posts: 5
Thanks (Given): 0
Thanks (Received): 0
you should start c#
is Offline  
Reply With Quote