4 ms·
What are your thoughts on Go/Rust? Node.js? Node.js with Typescript?
by MuffinFlavored 8y ago
What are your thoughts on Go/Rust? Node.js? Node.js with Typescript?
- dnautics 8y agoTyping is kind of a pain in the butt, it does buy you I would say 20% but when your paradigm is "code the happy path, let it fail if there's a screwup, you'll find it and fix it in another release, it won't bring down the server, the world will still be there", runtime typing errors aren't horrible. Dialyzer for erlang/elixir is quite nice and brings the delta even lower, if you must need type analysis. Go's type system is atrocious, try multiplying a time interval by an user-input integer. You can't do it. That aside, Go is a fairly good programming language, and I especially like using it for CLIs since there's cross platform guarantee.
- barrongineer 8y agoI dunno, to me it makes perfect sense that you would need to convert it to a duration. time.Second * time.Duration(userInputInt)
- dnautics 8y agothe units on that would be time squared. As a scientist, this makes my brain explode. https://en.wikipedia.org/wiki/Dimensional_analysis https://en.wikipedia.org/wiki/Dimensional_analysis For the record, at least two languages, F# (which is statically typed) and Julia (which is strongly typed) do this 100% correctly