Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Just Upgraded From JS To C#

Discussion in 'General Discussion' started by ChrisIsAwesome, Jul 27, 2017.

  1. ChrisIsAwesome

    ChrisIsAwesome

    Joined:
    Mar 18, 2017
    Posts:
    184
    I don't know why I waited so long to do so, but I'm glad I did. :)

    Turns out not many major differences between the two. Was easy to switch.
     
  2. ChrisIsAwesome

    ChrisIsAwesome

    Joined:
    Mar 18, 2017
    Posts:
    184
    Especially since Unity will be dropping support for JS in the future.
     
  3. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,571
    Before starting it feels like switching from English to French. But it turns out to be more like switching from American English to English English.
     
    Kiwasi and ChrisIsAwesome like this.
  4. ChrisIsAwesome

    ChrisIsAwesome

    Joined:
    Mar 18, 2017
    Posts:
    184
    Exactly! *Sips tea as I write in British English*
     
    Deleted User and neoshaman like this.
  5. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Welcome to the Dark Side. We have generics.
     
    Meltdown and ChrisIsAwesome like this.
  6. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,321
    There should be a Darker Dark Side. With C++ bindings and templates.
     
    Kiwasi likes this.
  7. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    And namespaces, getters/setters and cookies!
     
    lunaticCoder likes this.
  8. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Wait, I thought it was the web developers that had cookies... :p
     
  9. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,033
    Don't eat any cookies offered by web devs!
     
    Ryiah and neoshaman like this.
  10. RichardKain

    RichardKain

    Joined:
    Oct 1, 2012
    Posts:
    1,261
    JavaScript isn't bad. I use it a lot in my day job. (web development) But I will always prefer languages that have nice, strict typing. Being able to play fast and loose with variables is always too confusing for me. I like my types to stay what I initially declare them to be. This is why I always use C# with Unity. When I'm dealing with logic, I need some consistent structure. Willy-nilly just makes things harder to keep track of.

    When I use JavaScript in my day job, I try to treat it like a more strictly typed language.
     
    Deleted User likes this.
  11. EternalAmbiguity

    EternalAmbiguity

    Joined:
    Dec 27, 2014
    Posts:
    3,144
    I am all kinds of triggered.

    On topic, nowadays I go "eww" if I see implementations of something I'm trying to figure out in JS.
     
  12. elmar1028

    elmar1028

    Joined:
    Nov 21, 2013
    Posts:
    2,353
    Welcome to the club ;)
     
  13. tango209

    tango209

    Joined:
    Feb 23, 2011
    Posts:
    379
    In case you are not aware of it, have you looked into TypeScript? Haven't had a chance to play with it much myself, but it's a javascript superset that imposes strict typing that 'compiles' to javascript.