4 ms·
I mean we're talking about a language community where someone created a package to tell if a variable is a number... and it gets used *a lot*. That JavaScript
by stephenr 1y ago
I mean we're talking about a language community where someone created a package to tell if a variable is a number... and it gets used *a lot*.
That JavaScript has progressed so much in some ways and yet is still missing basic things like parameter types is crazy to me.
- chrisweekly 1y agoThe overwhelming majority of serious work in JS is authored in TypeScript.
- stephenr 1y agoThat just Sounds like an even stronger argument to add types to the language.
- chrisweekly 1y agoCould be.
- paulddraper 1y agoYeah. The hard part is that types are very hard/complex, with many tradeoffs. A standard with strong backwards compat and is interpreted consistently is hard (see Python).
- cluckindan 1y agoThat is a ”no true Scotsman” argument.
- chrisweekly 1y agoHow so? GP complained about JS lack of types. I pointed out that most JS actually benefits from types, given it's typically authored in TS. No moving goalposts, no "true Scotsman" arg.
- cluckindan 1y agoParaphrasing: >> JS has progressed but it still lacks types, it seems crazy to do serious programming work in a language that doesn’t have such basic things > Serious programming work in JS is done in TypeScript
- chrisweekly 1y agoMy point was agreeing with the GP's underlying point that types matter. Yes it'd be crazy to do serious programming work in JS without types -- that's why ~nobody does that. It's why TypeScript exists and ~everybody doing serious work on JS projects uses it. Their argument was almost a strawman, it refers to a hypothetical situation that doesn't pertain. Serious JS programmers use TS.
- cluckindan 1y agoAnd are vanilla 0-dep 0-build projects just gimmicks and toys?
- cluckindan 1y agoSomeone needs to start creating leftPad and isOdd type troll packages in Rust just so we can ridicule the hubris.
- maleldil 1y agoDone and done: https://docs.rs/isodd/latest/isodd/ https://docs.rs/isodd/latest/isodd/ https://docs.rs/leftpad/latest/leftpad/ https://docs.rs/leftpad/latest/leftpad/ I bet you can find something similar in all modern package managers.
- deleted 1y ago[deleted]
- yencabulator 1y agoThe joke falls flat: > This crate is not used as a dependency in any other crate on crates.io. https://crates.io/crates/isodd/reverse_dependencies https://crates.io/crates/isodd/reverse_dependencies
- paulddraper 1y ago> and yet is still missing basic things like parameter types Like Bash, Python, Ruby?
- stephenr 1y agoPython is making steps to add parameter types. That ruby doesn't have types is also bizarre to me, but Ruby also sees monkey patching code as a positive thing too so I've given up trying to understand its appeal.