CppCon 2016: Tommy Bennett “Algorithm Mnemonics: Increase your Productivity with STL Algorithms'

preview_player
Показать описание


Lightning Talk


*-----*
*-----*
Рекомендации по теме
Комментарии
Автор

4 years on, still my favourite CppCon talk.

kwanarchive
Автор

half the talk was about how to avoid hitting the ESC key. Brilliant! XD

YuTe
Автор

This is why I love the Practical Vim learned about ctr+[ from

yiluan
Автор

I use

inoremap <C-l> <Esc>bgUawea

in insert mode to compensate the lack of Caps Lock. It uppercases the previous word while in insert mode.

danieldiaz
Автор

Great talk. About 20 years with VIM and I didn't know about that left bracket thing.

elegantdice
Автор

Man you sure know how to make an interesting presentation out of a subject that might not lead to that naturally! :)

j
Автор

This is cool, sort of like emmet for C++ algorithms. As for esc vs. ctri+[, I have ":imap jj <Esc>" (without the quotes) in my .vimrc so pressing jj (two j's in quick succession) gets me into normal mode.

EntertainmentUnit
Автор

French AZERTY user here.

If I replace caps with ctrl and want to type ^[ for ESC (I mean Echap ;-)) it's like hitting "CapsLock + Alt. Gr. + 5"

yes. French keyboard have [ on alt. gr +5 and { on alt. gr + 4. ( is on 5 and we have the closing ones on the right of the keyboard.

The place QWERTY have it's [] keys, we have ^ and $. "^" is everywere in french, in the words that you have an S -and we used to) like Forest -> Forêt and Island (Isle) -> Île

That's pretty annoying, to be honest. ^^"

Ybalrid
Автор

I think I’ll try something like this in Ultisnips (vim snippet plugin).

atimholt
Автор

Very entertaining, but:
"jk" optimization > "ctrl + [" optimization

inoremap jk <Esc>
cnoremap jk <C-C>

Ilendir
Автор

What is all this blather about not hitting the Esc key? I program all day and never hit the Esc key except to close Search/Replace (which I don't need very often). Maybe the key to greater productivity is "don't use code editors that require hitting the Esc key every fourth action." (Possibly re-written as: "always use editors from the present century.")

BrookMonroe
Автор

Hungarian qwertz user here: vim is useless for this keyboard. Don't even try to waste yout rime trying it unless you have an US keyboard to use.

Orgyilkos