For modern development Javascript indeed is a shit language
1–10 of 243 posts
Re: For modern development Javascript indeed is a shit language
#2Edit: I mean stuff like "callback hell", does it allow me to programm normally and still avoid blocking the loop?
Re: For modern development Javascript indeed is a shit language
#3Sure, it has a bunch of quirks. Sure, it's not good for everything (I do mostly relatively simple CRUD apps). Sure, in the browser, it gets slow when the DOM is involved. Sure, this is hardly a rebuttal of the points in the original article.
But, still, I love JavaScript.
I think the problem is that the author is writing JavaScript as though it's Ruby. A JS developer switching to Ruby would have similar problems.
Re: For modern development Javascript indeed is a shit language
#4Re: For modern development Javascript indeed is a shit language
#5* lexical scope
* first-class functions
* prototypal inheritance
Re: For modern development Javascript indeed is a shit language
#6My view is: instead of ranting about languages (think about the meaning of that word), why not instead dissect what we do with them: programs, and find ways to improve them ?
Re: For modern development Javascript indeed is a shit language
#7Personally, I disagree. I find JavaScript to be the most "write-able" language, and switching to Node + frontend JS as my main language (I've done Python, Ruby, PHP, Java and C++ as jobs) has been the best thing I've done in a long time. Express and Angular are amazing. Sure, it has a bunch of quirks. Sure, it's not good for everything (I do mostly relatively simple CRUD apps). Sure, in the browser, it gets slow when…
This part of Javascript sounds the most absolutely insane to me: Silencing an error like that is catastrophic.
Re: For modern development Javascript indeed is a shit language
#8You can just do
if(myObjectToTest instanceof typeOfObjectIExpect)Re: For modern development Javascript indeed is a shit language
#9Aren't all these rants about programming languages as sterile as debating whether Spanish language sucks because it is not as regular as Italian language ? I really don't get it, people keep attacking issues of javascript or php. Fact is: 1) people use the languages of their choice to make programs. 2) Programs work, no matter as shitty the program is reputed to be 3) why look further ? My view is: instead of ranting…
The way to improve a lot of programs is to write them in a different language.
Re: For modern development Javascript indeed is a shit language
#10 "Being nice will not help it, and CoffeeScript is not radical enough."
As the guy who started CoffeeScript, I agree. It's an intentionally very conservative approach. But there's more than one good way to skin the JavaScript cat. I think it would be fun to take another run at the same problem — attempt to find a minimal, readable, and easier-to-learn language that fits in the same role as JavaScript — but to do so with a much more radical design. Whereas previously such a thing would have been unusable in practice, having good sourcemap support in most browsers these days makes it viable, perhaps. I've been playing around with it a bit...