4 ms·
I just wanted to note that static typing isn't required for autocomplete. JetBrains has IDEs for languages like Ruby and Python that can do it. If you open the
by manicennui 3y ago
I just wanted to note that static typing isn't required for autocomplete. JetBrains has IDEs for languages like Ruby and Python that can do it. If you open the REPL in a recent version of Ruby you get much of what you expect from an IDE with a statically typed language (with regards to autocomplete and syntax checking).
- manicennui 3y agoAlso, DRY is not about repeated code. This drives me crazy. Ruby developers love to make code worse by trying to "DRY it up".
- Capricorn2481 3y agoWhat are you replying to? The article is about how Dry shouldn't be over applied. Dry is literally "Don't Repeat Yourself" and is definitely pushed for cleaning up redundant code, so it's not unreasonable for people to think that's what about. It's only recently that people have pointed out that there's a difference between Duplicated code and Repeated code.
- manicennui 3y agoRedundant code is not code that looks the same. It's only reasonable for people to believe it is about code that looks the same if they have never bothered to learn what it means.
- Capricorn2481 3y agoThat's what I said, yes. There's a difference between duplicated logic and redundant code. And it's clear the Grug article agrees with that.
- 998244353 3y agoYou are correct, but static typing does make it a lot easier. Working with Rider feels like working with an IDE that fully understands the code, at least structurally. Working with PyCharm feels like working with an IDE that makes intelligent guesses.
- manicennui 3y agoThe REPL in current versions of Ruby is probably a better example of how it should be done. Because it is actually running the code it has much better information. https://ruby-doc.org/core-3.1.0/NEWS_md.html#label-IRB+Autocomplete+and+Document+Display https://ruby-doc.org/core-3.1.0/NEWS_md.html#label-IRB+Autoc...