3 ms·
WTF slide brought be here. In the world where Python and Ruby exist - calling javascript best dynamic language is nothing but heresy.
by uqimerioni 8y ago
WTF slide brought be here.
In the world where Python and Ruby exist - calling javascript best dynamic language is nothing but heresy.
- deleted 8y ago[deleted]
- rictic 8y agoI like all three languages. I spend most of my time with JS because it runs in the browser with no overhead, and it has the highest quality VMs.
- Scarbutt 8y agoI think you are taking it too seriously.
- always_good 8y agoHow? Javascript has a lot going for it from async-everything to conveniences like destructuring. And it works in the browser and has things like Typescript. I have to find good reasons to use another dynamically-typed language over Javascript.
- LargeWu 8y agoI would argue async-everything the biggest hassle with Javascript. Most of the time, I need things to run synchronously. Do this thing, then do that thing based on the result of the first thing. The need for async is the exception. So what we end up doing is expending extra effort forcing all the async stuff to run synchronously when that should be the default case.
- emilsedgh 8y agoWith the callback methods it was really a hassle. With async/await is so nice now. await step1() await step2() That's it.
- LargeWu 8y agoI get what you're saying, and yes, async/await is much better. But the entire reason it has to exist (and be used everywhere) is because javascript's default async behavior gets in the way so often. The irony is that when I do want some sort of async behavior, I often have to reach for something like bluebird anyway because I want better control over the Promises. So either I'm circumventing JS's default behavior by using async/await, or using a library that makes promises manageable. Almost never is it preferable to me to use JS's standard plain async behavior.
- duderific 8y agoThank you for summarizing this so succinctly. The true use case for async in the browser is rare. Sure, you're not blocking the UI while making server calls, but how often do you need to click around while waiting for something on the server to happen?
- mschuetz 8y agoUnlike Python, javascript did a lot to fix its issues in recent years. Python still can't get scoping right.
- NoahTheDuke 8y ago> Python still can't get scoping right. Python's scoping is easy, it's just also very shallow. What are your problems with it?
- bgorman 8y agoClojure is quite clearly the best dynamic language ever created.