44

Are there any other people out there who like JavaScript? It is my favorite language but I only see rants calling it a shitty language

Comments
  • 15
    I love JavaScript.

    I hate *parts* of JavaScript, but overall it's a killer powerful language.

    It's not for everyone though. Personally, I prefer power over safety. I don't like it when languages won't let me do something because it's considered unsafe.

    Well JavaScript never says that. :D

    But you know what they say about great power…
  • 4
    I love JavaScript, but with a mixed feeling.. :D the ability for asynchronous calls are a blessing, but sometimes a curse.. How many times I've ended up with "undefined" at the end of my script and the amount of functions, just to process and combine data from two seperate ajax requests... :D

    That's something that I love about for ex. PHP. You just write your code almost top to bottom (the flow of the execution) and every line waits for its predecessor even if there's an API request in between or some sort.. :D
  • 3
    @BertMaura yes I know that :D I used to code in PHP but when I switched to JS and node I often got confused because I had so many callbacks, this is how I got to know the so called 'callback hell'
  • 2
    @theScientist yes I have read a few things about them and kinda know how they work but I haven't really used them yet
  • 13
    There are two kinds of programming languages , those that people bitch about , and those that no body uses.
    -> Bjarne Stroustrup
  • 0
    I love js too! I started learning to code with java, but now I think js excites me more.
  • 0
    @manox14 Needed this much!
  • 1
    @maltedMilk my first language that I learned was Java followed by Python and over the last 2 years I also had a (very) small look into c# and c++. I also learned Rust a bit.
  • 0
    Funny story there are haters for every language out there so... Stop worrying about what people say start forming your own opinion
  • 1
    Escape the callback hell: use nodejs 7 or higher with harmony flag.

    Now it fells like c# async, and i love it.

    At all i love JavaScript, well the language, specially with ecma5 or 6 on a v8 environment.
    (i think what the ppl hate is the Browser api and frameworks like jSucky, fuckularJs and *some random word*JS.)
  • 1
    @Salmakis I've only used C# async for one project for about 4 months, but I can say I don't love it. It has some neat abilities, like being able to return to a method at the point that it was left at, but you end up having to add 'async' to everything.

    I love callbacks because they are dead simple and support closures without even having to think about it. But that's not to say you can't be dumb in how you use them. If you've wrapped something in 15 callbacks, you're doing it wrong.

    JavaScript is great at letting people make bad decisions, but like I was saying earlier, that's kind of the power of the language. You have to know what you're doing with it.
  • 0
    @devios1 thats the cool thing, u we can decide what to use i think there are Situations for both.

    Stuff like
    request -> database acess -> some stuff -> answer
    Is very clean and readable with await like code and you can even catch exceptions within the flow
  • 0
    @Salmakis Yeah I'm not saying it's a strong opinion or anything, just that I haven't really "gotten" it yet. It seems like a good idea in theory, but using it I just found it confusing. Also I could not for the life of me figure out how to execute a block of code on a particular thread, something that is trivial on other platforms.
  • 0
    Isnt it just
    new Thread(() => {do stuff});
    Or something? Not sure to but it Was something like that
Add Comment