3 ms·
TabNine has absolutely improved my life as a programmer. There's something really rewarding about having a robot read your mind for entire blocks of code. It's
by dmix 4y ago
TabNine has absolutely improved my life as a programmer. There's something really rewarding about having a robot read your mind for entire blocks of code.
It's not just functions either, one of the most common things that it helps me with daily is simple stuff like this:
Typing
const x = {
a: 'one',
b: 'two',
...
}
And later I'll be typing
y = [
a['one'],
b[' <-- it auto-completes the rest here
]
It's really amazing the amount of busy-work typing in programming that a smart pattern matching algo could help with.
- bogwog 4y agoI don't think this is a good example of the value of these things. You can just as easily do that same thing with advanced text editor features. Sublime for example supports multi-cursor editing. Just hold alt+shift+arrow keys to add a cursor, then type in the brackets you want. Ctrl+D can be used to select the next occurrence of the current selection with multiple cursors, built-in commands from the command pallete can do anything to your current selection (e.g. convert case), etc. All of that efficiency without having to pay a monthly subscription, wasting electricity on some AI model, and worrying about the legal/moral implications.
- ChrisLTD 4y agoMultiple cursors wont do what the parent comment is talking about without a lot more work.
- bogwog 4y agoWhy? You can copy and paste the entire section, and use multiple cursors to add in the brackets. going from a: 'one', to a['one'], just requires you to add two brackets and remove the colon. With multiple cursors you can do that exact same operation for all lines in a few keystrokes.
- yamtaddle 4y agoIt's having to go find the other block you want, copy and paste it, and then set up the multiple cursors and type, versus it just happening automatically without any of that.
- dmix 4y agoIn my use cases I’ve long moved on from writing the original hash. Having it autocomplete without having to open a file and tab back/forth (or find then copy/paste a block to the other file to temporary work on it) etc. But what's lost in my over simplified example is the contetxt is usually way more involved. I'm usually passing those as arguments to some function or other unique syntax situation that a glorified find and replace can solve. It's all about doing it in the times you would never think even bother writing a custom command because typing is faster given the unique syntactical context... The only thing faster then is autocomplete. I'm not actually recreating a new hash with the convienient same format.
- dmix 4y agoI’ve used Vim for over a decade I know what it can do. This is automated and happens immediately without you even thinking about it. You only ever pull out the complicated Vim editing when you have a particular hard task, I’m talking about the small stuff many times a day.
- Aeolun 4y agoThat autocomplete was sort of ok in tabnine, but Copilot completely blows it out of the water. Resource consumption for Copilot is also much more restrained. Which reminds me I have to cancel my tabnine subscription. Been paying them for a year without using it.
- dmix 4y agoI haven't tried Copilot personally but thanks I'll try it. I did try TabNine over a year ago and found it's improved dramatically since then so maybe it's gotten better within training.