12 ms·
I’m surprised this didn’t touch on the IDE autocomplete suggesting variable names. In Java you would have something like `LocationBuilder locationBuilder` which
by tlbsofware 6y ago
I’m surprised this didn’t touch on the IDE autocomplete suggesting variable names. In Java you would have something like `LocationBuilder locationBuilder` which makes users just tab complete the variable name to quickly have access to a variable. The argument in this article was about names being prioritized and I think forcing no auto completion on a variable name would force the developer to be slightly more descriptive than the variablized string of a class name
- dilap 6y agoMaybe a little orthogonal -- I could easily imagine IDEs still doing something like transforming the input ": FooType" into "fooType: FooType" w/ the name selected and ready to be tabbed past.
- mr_tristan 6y agoIn Kotlin, IntelliJ has no problem with this. As you type a new value: `val id`, and you have `IdentName` defined in scope, the value `identName` is suggested automatically. Not all IDEs are the same, though, and I'm not sure how sophisticated this feature was to implement.
- hocuspocus 6y agoJetBrains' autocomplete does pretty well either way, you can be similarly lazy in Scala or Kotlin.