3 ms·
GitLab is 30k+ lines of Ruby code http://gitlab-org.gitlab.io/gitlab-ce/coverage-ruby/#_AllFiles http://gitlab-org.gitlab.io/gitlab-ce/coverage-ruby/#_AllFil...
by sytse 10y ago
GitLab is 30k+ lines of Ruby code http://gitlab-org.gitlab.io/gitlab-ce/coverage-ruby/#_AllFiles http://gitlab-org.gitlab.io/gitlab-ce/coverage-ruby/#_AllFil...
We're not missing static typing as far as I know. We still are able to ship a lot of changes every month. I'm not sure if it is our structure (idiomatic Rails), test coverage (over 85%), something else, or maybe we should miss it but don't realize it.
One disadvantage is that static typing causes more lines of code than dynamic code. And code size is the best predictor of code quality http://blog.vivekhaldar.com/post/10669678292/size-is-the-best-predictor-of-code-quality http://blog.vivekhaldar.com/post/10669678292/size-is-the-bes...
- adamnemecek 10y ago> One disadvantage is that static typing causes more lines of code than dynamic code. Not if the statically typed language uses inference.
- sytse 10y agoThat would be the best of both worlds indeed. Hope we get this for Ruby https://codon.com/consider-static-typing https://codon.com/consider-static-typing
- saurik 10y agoThe seminal languages with static typing had this feature, so I feel it does the field a disservice to say "the best of both worlds": there are a few annoyingly popular statically typed languages which don't have this property, and they should be considered deficient to the extent to which it is not for theoretical type depenence reasons.