16. Programmable
• Doesn’t need to be Turing complete
• Although that’s nice
• If you can select some text, send it to an
external program, and get the output
inserted back in, you’re good to go
19. Take-home message
• Pay some attention to what you’re doing
• Configure your environment so that most
frequently done stuff can be done easily
20. Take-home message
• Pay some attention to what you’re doing
• Configure your environment so that most
frequently done stuff can be done easily
• The F keys on your keyboard are not just
to skip tracks in your MP3 player
21. Take-home message
• Pay some attention to what you’re doing
• Configure your environment so that most
frequently done stuff can be done easily
• The F keys on your keyboard are not just
to skip tracks in your MP3 player
• Keep your configs in git – you will screw
them up. This will save you.
27. Fix your editor so this
never happens again
autocmd BufWritePost *.pl !chmod +x %
(add-hook 'after-save-hook
'executable-make-buffer-file-executable-if-script-p)
29. Commit messages
• Set up your revision control system so your
commit messages are written in your
preferred editor
30. Commit messages
• Set up your revision control system so your
commit messages are written in your
preferred editor
• $EDITOR, $VISUAL, $GIT_EDITOR, etc.
31. Commit messages
• Set up your revision control system so your
commit messages are written in your
preferred editor
• $EDITOR, $VISUAL, $GIT_EDITOR, etc.
• Vim users may enjoy a brief moment of
smugness at this point in the talk
32. Commit messages
• Set up your revision control system so your
commit messages are written in your
preferred editor
• $EDITOR, $VISUAL, $GIT_EDITOR, etc.
• Vim users may enjoy a brief moment of
smugness at this point in the talk
• Emacs users should look into
emacsclient -t
35. Code Formatting &
Tidying
• Same idea as “make executable on save”
• When you save a file, before it gets
written, run perltidy on the file content
and save the tidied version instead
36. Code Formatting &
Tidying
• Same idea as “make executable on save”
• When you save a file, before it gets
written, run perltidy on the file content
and save the tidied version instead
• If you don’t want to do that, you can at
least configure things like trailing
whitespace removeal, de-tab/en-tab, etc.
39. Syntax Checking
• I have one trick and I use it everywhere
• During file save, after the file is written out,
run perl -c on it and display any errors
50. Auto-complete
• Can’t be done perfectly
• Can be done fairly well
51. Auto-complete
• Can’t be done perfectly
• Can be done fairly well
• Takes a lot of effort, is very fragile, and probably
isn’t worth it
52. Auto-complete
• Can’t be done perfectly
• Can be done fairly well
• Takes a lot of effort, is very fragile, and probably
isn’t worth it
• Really all you need is “complete based on stuff
in open files”
53. Auto-complete
• Can’t be done perfectly
• Can be done fairly well
• Takes a lot of effort, is very fragile, and probably
isn’t worth it
• Really all you need is “complete based on stuff
in open files”
• If you’re at the point where you’re messing with
this, you probably need to get back to work
55. The more subtle
take-home message
• 5% of us care about this stuff way too much
56. The more subtle
take-home message
• 5% of us care about this stuff way too much
• 80% of us don’t care about it nearly enough
57. The more subtle
take-home message
• 5% of us care about this stuff way too much
• 80% of us don’t care about it nearly enough
• If you’re not sure which group you fall into,
you’re in the 80%
58. The more subtle
take-home message
• 5% of us care about this stuff way too much
• 80% of us don’t care about it nearly enough
• If you’re not sure which group you fall into,
you’re in the 80%
• 67% of statistics are made up to fill slide
space
60. The more subtle
take-home message
• The editor is one of the tools you use the
most when practicing your craft
61. The more subtle
take-home message
• The editor is one of the tools you use the
most when practicing your craft
• Spending some time to make it work better
for you will let you work better too
62. The more subtle
take-home message
• The editor is one of the tools you use the
most when practicing your craft
• Spending some time to make it work better
for you will let you work better too
• The less friction you have around frequent
operations, the more chance you have to
get into flow