Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devios157707yI 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… -
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 -
@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'
-
@theScientist yes I have read a few things about them and kinda know how they work but I haven't really used them yet
-
manox141927yThere are two kinds of programming languages , those that people bitch about , and those that no body uses.
-> Bjarne Stroustrup -
I love js too! I started learning to code with java, but now I think js excites me more.
-
@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.
-
abhixec277yFunny story there are haters for every language out there so... Stop worrying about what people say start forming your own opinion
-
Salmakis6737yEscape 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.) -
devios157707y@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. -
Salmakis6737y@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 -
devios157707y@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.
-
Salmakis6737yIsnt it just
new Thread(() => {do stuff});
Or something? Not sure to but it Was something like that
Related Rants
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
undefined
don't judge me pls
javascript js