ajfapoiawejf
ajfapoiawejf on Hacker News
I run into this a lot with Python, where when I manually cut/paste some block, I have to go up and double check all the lines are in the right place, etc. because an autoformatter can't do it correctly and obviously like it can in C++, e.g.
I pay for a T-shirt, then I use it for as long as I want. I don't pay every month to wear the T-shirt.
The name is a reference to Harry Potter books.
CMU's compiler's course teaches neither "forward" nor "backward".
It teaches in increasing complexity.
You start by writing the whole pipeline for straight line code. Then you add branches, and structs, and functions, in succession.
This bypasses the whole "which direction?" debate.
https://www.cs.cmu.edu/afs/cs/academic/class/15411-f20/www/a...
> They also offer zero discoverability for someone that did not read the manual (see the vim jokes).
I don't see why I would use a specialized tool for hours a day without reading the manual.
> good pointer UI + robust keyboard shortcuts
vim jokes aside, you can use a mouse with vim, terminal, tmux, etc just fine. I sometimes do, but most of the time I find the keyboard simpler.
I could never remember what the ctrl/alt/shift modifiers do and never managed to get fluent with them - they also require repeating movement many times by holding/tapping the arrow keys until you get to where you want to go, so it feels imprecise to me. I've seen plenty of people who are much better with the arrow keys than I am so I know it's possible to do very well with it though.
`dap` was simpler for me and is easily repeatable with `.` in vim.
Either way, you're not touching the mouse.
The difference for me was realizing that Shift-V % will typically highlight precisely what I want - though that's a bad example, visual mode is rare for me. More frequently it's something like `dap`, which works with a level of precision across lines that aren't necessarily all on screen. If I click and drag, I'm liable to select one extra or one less line, e.g.
> Isn’t most of work browsing code and Googling things?
Browsing code is mostly done in an editor with the keyboard, for me. And Googling things isn't exactly something I spend hours a day doing.
Additionally, I make more mistakes clicking slightly outside what I'm trying to click on than I do using keyboard shortcuts which work without precise fine motor control.