69

Coming from a C# background, where Visual Studio would warn me about errors even before compiling the program, Javascript was quite a shock.

Comments
  • 2
    @theScientist I am following a course which only includes Angular and advanced features of Javascript (closures, hoisting IIFE), but thanks for the suggestion. I'll check it out.
  • 1
    Half the time I'm to quick for intellisense to load when I'm only making small changes, nothing better than hitting build alt tabbing for a bit, then alt tabbing back to find that it never even began compiling :/
  • 4
    coming from java, same experience. finished a little and simple program about genetic algorithm in 2 weeks time because of runtime errors i couldn't handle. so my debugging was a mess of alert() messages to keep track of what was (not) working🙄
  • 5
    However, the satisfaction you get when you resolve a bug is much greater (to me).
  • 1
    i know that feeling too well😊
    it can sometimes be like heaven on earth😎
  • 3
    Use a linter (eslint or something). Should catch most of the runtime errors (no type checking tho)
  • 3
    @randomCoder "angular" you mean "angular-js", coz "angular" (angular 2 or 4) is typescript only.
  • 0
    @theScientist TSLINT warning me about trailing whitespace all the freaking time!
  • 0
    @jAsE And how would you add functionality to a website? C# wouldn't really work well there. JS is made to be fast.
  • 1
    @randomCoder Perhaps one day using WebAssembly...
    But that future isn't too close
  • 1
    This is why Elm is fantastic.
  • 0
    @randomCoder, @21stCenturyJoku AssemblyJS of course!

    @cb219 use console.log(). Much, much, much better.
    Also you can always turn debugging on in Chrome/Chromium/Firefox.
Add Comment