| ▲ | psychoslave 4 hours ago | |||||||
That's why I'm now considering what are the ratio for each language in term of exposing the business logic nub that human can grab (mostly) correctly vs all the clutter that is here mainly to bring additional type safety and please the compiler in some way. One approach that Ruby took for type introduction was to put that in a different file. That comes to my mind. Typescript brings some niceties, but also some boilerplate all other the place. Combined with something like Effect, Zod, and the like and line count explode. Not sure OCAML or Haskell would provide more compactness for equivalent safety. | ||||||||
| ▲ | duesabati 3 hours ago | parent [-] | |||||||
What you refer to as "clutter" is what actually documents the code without the need of comments if done correctly i.e. naming things properly i.e. ubiquitous language. Before rushing to throw away things you don't know, learn about them. | ||||||||
| ||||||||