David Winterbottom

@codeinthehole
145 Followers
59 Following
26 Posts
Male software craftswoman — Principal Engineer at Kraken Technologies (part of Octopus Energy).
Websitehttps://codeinthehole.com
Twitterhttps://twitter.com/codeinthehole
TILhttps://til.codeinthehole.com/
Githubhttps://github.com/codeinthehole/

Try this:

git log --author="$(git config user.name)" --no-merges --pretty=format:"%s" -200 | llm -s "Based on my history of commit message subjects, what words do I use the most and how can my commit message subjects be improved?"

Petty request of the day: a markdownlint rule to enforce sentence-case titles.
I Will Fucking Dropkick You If You Use That Spreadsheet — Ludicity

TIL How to use 'llm' to act on visual selections in Vim — David Winterbottom

You can use Simon Willison’s excellent llm tool to query or edit Vim buffers by piping the contents of a visual selection to the llm. — can be read in 1 minute

"Delusional rat hangs out with other microinfluencers"
https://www.mcsweeneys.net/articles/dream-big
Hungover Bear and Friends: Dream Big

To help celebrate our twenty-fifth year of being on the information superhighway, we have reached out to some of our former columnists for check-in...

McSweeney's Internet Tendency

I will be using this metaphor many times henceforth.

From (my new favourite tech blog): https://ludic.mataroa.blog/blog/i-accidentally-saved-half-a-million-dollars/

I Accidentally Saved Half A Million Dollars — Ludicity

It's only through trying to maintain *other people's code* that you hone your taste in what makes code maintainable.

There's a limit to what you learn from maintaining your own code.

Why didn't anyone tell me about `git log -p`?
https://til.codeinthehole.com/posts/how-to-show-the-history-of-a-file-with-git-log-patch/

I think I glossed over it previously as I was slightly scared of the word "patch".

TIL How to show the history of a file with 'git log --patch' — David Winterbottom

Am slightly embarrassed to admit it but I’ve only just discovered the --patch option to git log which shows diff information for each commit. [Reading time: 1 minute]

Two tips for using Github Copilot with Vim:
https://codeinthehole.com/tips/vim-and-github-copilot/

#vim

Tips for using Github Copilot in Vim — David Winterbottom

Two recommendations for using Copilot effectively.

If you use Vim and resolve Git conflicts from the command line, this is a useful command:

$ git status -sb | awk '$1 ~ /^(UU|AU|UA)/ {print $2}' | xargs -o vim -c "normal gg]n"

This:

- Uses awk to extract the filepaths of files with conflicts
- Uses xargs to open these files in Vim
- Passes a custom command to Vim to jump to the first conflict marker in the first file.

Note the `]n` movement is provided by (the highly recommended) vim-unimpaired:
https://github.com/tpope/vim-unimpaired/blob/master/doc/unimpaired.txt#L60-L61

#vim

vim-unimpaired/unimpaired.txt at master · tpope/vim-unimpaired

unimpaired.vim: Pairs of handy bracket mappings. Contribute to tpope/vim-unimpaired development by creating an account on GitHub.

GitHub