4 ms·
For such code I would be holding down the Shift key with my left pinkie while I type the rest with all my other fingers. That is (↓ meaning shift down and ↑ sh
by chrismorgan 13y ago
For such code I would be holding down the Shift key with my left pinkie while I type the rest with all my other fingers.
That is (↓ meaning shift down and ↑ shift up):
↓mboot-page-align↑
The alternative would seem to be less effcient:
<Caps>mboot↓-↑page↓-↑align<Caps>
- deleted 13y ago[deleted]
- w1ntermute 13y agoActually, Caps Lock doesn't affect non-letter keys, so you don't need to hold Shift when typing the dashes.
- chrismorgan 13y agoQuite the opposite—because it doesn’t affect non‐letter keys, you need to hold Shift when typing the dashes, because they need to become underscores.
- ScottBurson 13y agoThis is why I cross-remap _ and = .
- MaulingMonkey 13y agoI find holding down shift for large macro machinations to be a severe cause of pinky strain and awkward hand positioning. I don't do "perfect" home row style typing, but trying to hold left shift through that entire macro is borderline impossible for me to type -- I use my left pinkie for those As, and my left hand for reaching over to that B and that G, which is stressful holding left shift. For right shift, the underscore becomes especially problematic as well. On top of that, right shift (not left!) M has become muscle memory to the point where I reach for it even if I make the effort to hold down left shift for the entire identifier. This results in, if optimized instead of tripping over my own fingers the entire time: ↓mboot↑↓-p↑↓age↑↓-↑↓align↑ My old iBook capslock key broke in half I hit it so often. I think my pinkies might break in half if I hit the shift keys at that rate!
- __david__ 13y agoDoesn't your editor have completion? In Emacs I would end up typing '↑mb↓ M-/ M-/ M-/' (where Meta is the Option key on my keyboard). Because of the way Emacs completes, I might also do '↑mb↓ M-/ M-BS M-BS ↑P↓ M-/'. Either way that's easier to me that typing it out with caps lock or holding the shift key. The only time I can't complete is when I'm defining something for the first time and I'll get over it in that case since it's very rare.
- MaulingMonkey 13y ago> Doesn't your editor have completion? Yes, but you'd agree it's no panacea, surely. - The main code editors I use all have slightly different completion mechanisms. Using a consistent non-IDE editor, while certainly possible, I find much more clunky than making do. I do use the completion of my primary IDE significantly however. - C++ completion is wonky in general due to the poor language grammar - I don't find defining things particularly rare. Every variable (local, member, or otherwise), every function, every class, every macro... - My muscle memory isn't built around the preprocessor, but around much more multi-context languages (such as C++) where entry as terse as yours will generally break regularly. My mental state is brittle. Mis-completing identifiers breaks my flow and concentration, whereas typing is almost completely subconcious at this point having practiced it so regularly everywhere from this forum to my first clashes with 16-bit DOS programming. This means I could be seen as wasteful from a pure keystroke perspective on just about every front. Even in the simple act of googling, I start entering my next, more refined search query while still scanning the results of my previous query. Dynamic search results broke this workflow (prompting me to disable Javascript) as my new text would cause the links I tried to click on to disappear because of the additional text entry, causing the results to refresh. I didn't even realize I was doing it until that change. My use of completion is similar: Type until I scan the refined identifier to select as an early-bail. The closest I get to your completion style is some blind initial 3-5 character tokens + explicit use of completion keywords in some fairly limited contexts where I have a sufficiently low (1-4%?) failure rate. This translates to C-style free functions in C or C++, and C# members of things (classnames generally get typed out and then Ctrl+.ed for "using ...;" statement generation.) My macro names as a rule are too heavily namespace prefixed to blind-complete in that fashion, with the exception of some locally scoped 1-letter #define s which are #undef ed later in the same scope which need no completion. While I've experimented with acronym-style completion methods rather than start-of-word-only, I find acronyming to require too much conscious thought, and disambiguation gives me outright struggle. If I'm in a context where the completion simply won't work (say that I haven't imported it yet like I thought I did), I have to go back and retype the entire thing.
- lutorm 13y agoLike other people said, typing like that is very stressful for your hands. I wouldn't survive many hours typing like that. (This is one excellent use case for the Kinesis foot pedals.)