8,715 karma · joined Feb 25, 2014 (12y ago) · 2,256 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
> I think this narrative, while conventional, is bollocks. [...] Ruby's weird semantics are credited for how one person as able to use it to make a world-changing framework; to call Ruby a "boring" choice now is a testament to how successful the right weird tech can be!
Sorry, but this whole section is bollocks. I've never heard anyone call Ruby boring, and I've had one too many methods monkey-patched in from halfway across the universe to ever call Ruby "boring". Basically no-one seems to use Ruby for new Serious™ Programming™ Projects™ anymore.
comment 3y ago · link · parent
Since there is no difference in Python and other untyped languages between a potential typechecking stage and runtime the definition is meaningless for them.
comment 3y ago · link · parent
A single EBV-negative MS case. While there were 955 MS cases that developed in the 0.5M that were EBV-negative at the start of military service. You'd expect there to be about 50. That's pretty compelling evidence.
[1] https://www.usmedicine.com/clinical-topics/multiple-sclerosi...
comment 3y ago · link · parent
The sandbox stuff sounds amazing in a Minecraft/Garry's Mod kinda way, but those never caught me so I hope it brings joy to many others.
comment 3y ago · link · parent
I don't really understand why this is a problem. Unless you're using things like Haskell, Julia, or Shapeless Scala, you generally accept that not everything is modeled at the type level. I don't know the nuances of the C++ types you mentioned, but I have not encountered the ambiguity you described in Typescript or the JVM. E.g. JSON Schema is pretty clear on that any object can contain additional unspecified keys (std::map I assume) unless additionalProperties: false is specified.
> `anyOf`, `oneOf` and `allOf` for [...] C++ data structures?
Like I said I don't know C++ well enough, but these have clear translations in type theory which are supported by multiple languages.I don't know if C++ types are powerful enough to express this.
allOf is an intersection type and anyOf is an union type. oneOf is challenging, but usually modelled OK enough as an union type.
comment 3y ago · link · parent
Like it works for any other work: you get a roster of when you're expected to work and get paid for that time, and perform tasks during this time. This problem has been solved decades if not centuries ago, e.g. factory shifts or supermarket employees.
comment 3y ago · link · parent
Can you elaborate on this point? There's multiple mature solutions in this space like OpenAPI+Json Schema, GraphQL, gRPC. All try to solve the same problems to varying degrees and provide similar benefits like generated static typed and runtime validation. Was there something unique for you that made these tools not appropriate and prevented you from building upon an existing ecosystem?