News for hackers. Stuff that matters.
Re:Is the keyboard faster than the mouse? by FollowSteph3 on Tuesday June 13, 2017 @10:22AM (#14544874)
If you really want to see the advantage of keyboard hotkeys just look at the top Starcraft players. Yes they still use their mouse but they need hotkeys to even be able to compete at that level. They actually measure the number of actions they can execute per minute! There's no way it can be done only with either just the mouse or keyboard

I think software development also falls into this category. Some hotkeys are at least an order of magnitude faster. And 90% of the time hotkeys will be faster. But in some cases you absolutely need to use your mouse, it's just much faster.

Here's a YouTube video that discusses what it takes to be a competitive Starcraft player and shows them entering actions: https://youtu.be/zmYhX8fjmo8

Re:Is the keyboard faster than the mouse? by hultner on Tuesday June 13, 2017 @10:26AM (#14544902)
As a heavy keyboard user I have to agree. I've been using vim extensively and also use vim bindings for my browsers, without them navigation feels constrained. Obviously I still use the mouse for some tasks and certain types of text selection are much easier with a mouse then a keyboard for me.

I'd say that is heavily dependent on personal workflow and taskset.

Re:Is the keyboard faster than the mouse? by snarfy on Tuesday June 13, 2017 @10:30AM (#14544939)
> Obviously I still use the mouse for some tasks and certain types of text selection are much easier with a mouse then a keyboard for me.

Like Starcraft, the best thing the mouse is for is box selection. Everything else is done with keys.

Re:Is the keyboard faster than the mouse? by oblio on Tuesday June 13, 2017 @10:36AM (#14544985)
And for actually pointing at things.

My brain doesn't "point" at something in Vi motions, not matter how much I try. Maybe some people manage to rewire their brains, I haven't. Despite using Vi/Vim for a long time.

Re:Is the keyboard faster than the mouse? by chandler on Tuesday June 13, 2017 @12:10PM (#14545853)
> My brain doesn't "point" at something in Vi motions...

In emacs there's a mode called ace jumping. Essentially, it lets you pinpoint exactly on screen where you want to move the cursor ~3 keypresses.

Similar to how the vimium extension to Chrome let's you jump to any link/button/control with two keypresses.

These aren't motion commands as you'd typically get in vim/emacs; instead it's a different interface to allow directly jumping to an arbitrary position (more of a warp than a movement).

http://emacsrocks.com/e10.html

Anyways, the point I wanted to make is that even some instances where the mouse is considered superior can be negated by a different UX.

So consider the idea that FPS games are more effective with a mouse. I believe this is a UX choice to reward developing mouse skills, not a fundamental limitation of the keyboard. As such, consider the following levels of keyboard FPS controls--

Option 1: Aim by directional arrows. Will be beat out by a mouse user for sure.

Option 2: Aim by movement commands (e.g. B skips and tracks the target on the left, F skips and tracks the target on the right, etc). Might be on par? Definitely has a different learning curve than using a mouse.

Option 3: Aim by label. Every target has a letter hovering over its head, and pressing the key will aim & track at that target. I suspect this would be much more _efficient_ control scheme than using a mouse.

Option 1, is akin to navigating text with arrows, Option 2 is akin to navigating with jump commands, and Option 3 is akin to navigating with an ace-jump type interface.

So although #3 would be considered unfair in a typical FPS context, as a programmer I just want to reduce effort as much as possible.

Re:Is the keyboard faster than the mouse? by steinuil on Tuesday June 13, 2017 @12:51PM (#14546245)
#3 is basically how Typing of the Dead works, and when you reach high WPM it is indeed faster than using a mouse.
Re:Is the keyboard faster than the mouse? by cavanasm on Tuesday June 13, 2017 @01:27PM (#14546613)
AHH TYPING OF THE DEAD! Best typing game ever (helps that it's just a rework of an actual rail gun shooter). From a gameplay simulation perspective though, mouse is the only method that I feel provides any relatable idea of aiming. Just being able to directly jump between targets would definitely be "more efficient", but so is an aimbot, both sort of defeat the general gameplay design.
Re:Is the keyboard faster than the mouse? by btschaegg on Tuesday June 13, 2017 @01:49PM (#14546875)
> Just being able to directly jump between targets would definitely be "more efficient", but so is an aimbot, both sort of defeat the general gameplay design.

Of course - in the context of an FPS, where the basic expectation is for it to be "skill-based".

But this makes the notion a truly great metaphor, IMHO: The goal behind a text editor is for the user to get stuff done. "Fairness" is not a constraint; everything is allowed.

I'd even go to say that if you've developed some AI that allows me to quickly do what I want without getting in my way, I'm in! I don't think this will be the case any soon (at least in a usable manner), but having it would certainly be great.

In fact, I already pondered if it might be doable to use the new, cheap eye tracking hardware one can buy nowadays (e.g. Tobii devices) to develop something like Ace jumping with...

Re:Is the keyboard faster than the mouse? by pmoriarty on Tuesday June 13, 2017 @12:09PM (#14545849)
For vim there are plugins like EasyMotion[1], and for emacs there's Ace Jump Mode[2], which let you precisely get to any character on the screen with a couple of keystrokes. These plugins really revolutionized my vim and emacs usage.

Then there's also the ability of vim and emacs to quickly and precisely select text objects like words, paragraphs, functions, etc (even when they may span more than one screen). There's just no way a mouse can be anywhere near as fast as doing that for larger objects, and using the mouse is much more error-prone.

[1] - https://github.com/easymotion/vim-easymotion

[2] - https://github.com/winterTTr/ace-jump-mode

Re:Is the keyboard faster than the mouse? by kossmoboleat on Wednesday June 14, 2017 @05:36AM (#14551578)
For Intellij there's also AceJump, but I haven't tried it yet: https://github.com/johnlindquist/AceJump
Re:Is the keyboard faster than the mouse? by TeMPOraL on Tuesday June 13, 2017 @10:46AM (#14545096)
Speaking from the Emacs side of fence, my brain doesn't "point" in Emacs shortcuts either, but it sure does intuitively translate "I want to be there" / "I want to change that" to a series of keyboard presses, usually much faster than I could ever achieve with moving a mouse and clicking.
Re:Is the keyboard faster than the mouse? by hultner on Tuesday June 13, 2017 @10:45AM (#14545080)
Generally I'm inclined to agree. However with textual hints pointing with vi-motions are a breeze.

In addition my joints click when I reach for the mouse putting an actually physical barrier between keyboard and mouse movements for me personally, hence I tend not to move between the two a lot. Laptop touchpads doesn't induce this strain so those are easier.

Re:Is the keyboard faster than the mouse? by ams6110 on Tuesday June 13, 2017 @12:25PM (#14545991)
For me it's not the mouse itself as much as it is moving my hands back and forth from the keyboard to the mouse. I've had RSI symptoms from that. Now I use a ThinkPad keyboard with a trackpoint and no separate mouse.
Re:Is the keyboard faster than the mouse? by brak1 on Tuesday June 13, 2017 @10:49AM (#14545124)
what browser do you use for vim bindings?
Re:Is the keyboard faster than the mouse? by hultner on Tuesday June 13, 2017 @10:58AM (#14545219)
qutebrowser as default for opening links, then I run Chrome(ium) with Vimium and Safari with vimari and blank command prefix. I've previously also used Pentadactyl (think there's one named Vimperator as well) for Firefox. Once you're used to it you'll never want to go back.

Update with links:

https://www.qutebrowser.org/

https://vimium.github.io/

https://github.com/guyht/vimari

https://addons.mozilla.org/sv-SE/firefox/addon/pentadactyl/?...

https://addons.mozilla.org/sv-SE/firefox/addon/vimperator/

Re:Is the keyboard faster than the mouse? by johnbrodie on Tuesday June 13, 2017 @11:54AM (#14545736)
Pentadactyl/Vimperator will soon stop working, I believe at FireFox 57. Firefox is removing the ability to run XUL extensions, which will effectively be the end of the awesome VIM plugins for FF :(
Re:Is the keyboard faster than the mouse? by deathcakes on Tuesday June 13, 2017 @12:12PM (#14545863)
I've recently made the switch to VimFX as a result of this and I have to say I couldn't be happier - it may not have some of the more powerful features (that I'm unaware of) but it definitely gets the job done.
Re:Is the keyboard faster than the mouse? by lelandbatey on Tuesday June 13, 2017 @01:19PM (#14546534)
I also switched to VimFX from Vimperator, and it blew my mind how much faster Firefox suddenly became! I used to simpathixe with my friend who switched back to Chrome "for it's speed" but without Vimperator, Firefox is waaaaay snappier than Chrome (on my machine). It made browsing a fun tactile experience again!
Re:Is the keyboard faster than the mouse? by pmoriarty on Tuesday June 13, 2017 @12:23PM (#14545974)
Is VimFX going to continue to work when Pentadactyl breaks?
Re:Is the keyboard faster than the mouse? by The-Compiler on Wednesday June 14, 2017 @02:21AM (#14550956)
Only if it gets turned into a WebExtension: https://github.com/akhodakivskiy/VimFx/issues/860
Re:Is the keyboard faster than the mouse? by UnoriginalGuy on Tuesday June 13, 2017 @11:54AM (#14545725)
> I think software development also falls into this category.

Software development has absolutely nothing to do with code entry speed.

Requirements gathering, mockups, design, testing, and thought make up the vast majority of development time. Then even once you get down to coding, you're often maintaining existing code rather than writing code from a blank slate, which requires more time reading and thought than actual modifications. A one character code change might take an hour; but you spent that time testing, following workflows, and documenting.

So the supposed developers online who obsess over their mechanical keyboards and 1ms time saved hotkeys really confuse me. I genuinely think the day to day software development that I and my colleagues do has no relationship to this bizarre online fetish with code entry speed.

If I really want to improve my coding performance, I'll do a standing meeting instead of a sit down meeting, reduce the number of people in a meeting, or stop requirements slip by completely clamping down on change requests mid-work. Those are my performance tips, and they save hours, not milliseconds...

Re:Is the keyboard faster than the mouse? by DavidWoof on Tuesday June 13, 2017 @12:27PM (#14546007)
As someone who obsesses online over my mechanical keyboard (cherry mx clear today, but I have a collection), system hotkeys and .vimrc, I actually generally agree with this. Code entry time has almost nothing to do with software development productivity. It's just stuff I enjoy, and the fact that people get obsessed by it shouldn't confuse you any more than the myriad of other things people obsess about online. Learning to save a keystroke in vim is really just my equivalent of learning to kill a certain monster in a video game.

On the other hand, I'm generally shocked when I meet programmers who don't know their tools at all, and in my experience that really does correspond to poor productivity. I'm not talking about people with average typing speed or people who use toolbar shortcuts rather than hotkeys, but programmers who don't know how to auto-format in their tool of choice or who stop typing every few keys to reach for the mouse, click file and then save. There's a mindset that goes with effective software development, and a natural curiosity and a constant desire to do things just a bit more efficiently are key factors in that mindset. People who are constantly getting out of the flow even in their editor of choice because they haven't learned to use the tool efficiently might not have the right mindset for software development.

But yeah, I recognize that the vim golf stuff is silly (but fun!).

Re:Is the keyboard faster than the mouse? by mistercow on Tuesday June 13, 2017 @01:29PM (#14546637)
> Software development has absolutely nothing to do with code entry speed.

I think this is false. I think, then I type. Then I think, then I type. The more time I spend entering code, the more I lose context on the problem. So while it's not as simple as "speed * time = total amount of code written", I'm fairly certain that code entry speed has a significant impact on my productivity.

Typing speed and use of shortcuts may not be the most important skills for a software developer, but I think it's borderline ludicrous to claim that they're irrelevant. For a trivial counterexample, try coding using an onscreen keyboard and mouse.

Re:Is the keyboard faster than the mouse? by lukas099 on Tuesday June 13, 2017 @11:59AM (#14545775)
What about the argument that less time spent typing (and more 'automatic' text editing) means shorter interruptions from thinking, and therefore more productive thought?
Re:Is the keyboard faster than the mouse? by UnoriginalGuy on Tuesday June 13, 2017 @01:05PM (#14546379)
You spend a lot of time thinking, and interruptions negatively impact that. The concept that you only think while you type is non sequitur; if that's the case then even with all of the hotkeys you're still going to lose your train of thought every couple of minutes while you test, navigate, or dwell.

Again, the kind of software development people claim they do online, and what I see day to day have no connection to one another. If you're literally spending a whole day typing then you're extremely unusual. Even when writing fresh code with no front end, a lot of time is spent mapping data to structures, requirements building, diagramming, testing, or just considering the most maintainable way to solve the problem(s) presented.

These programming speed challenges that have popped up in the last few years are lies too. All these people do is pre-solve problems slowly and thoughtfully, then regurgitate those solutions within a very small timespan on the day. That's why many of them let the contestants create their own problem to solve, or give them very generic problems (e.g. twitter clone).

Re:Is the keyboard faster than the mouse? by mistercow on Tuesday June 13, 2017 @01:34PM (#14546688)
> The concept that you only think while you type is non sequitur

That's not the concept being argued for. The concept is that you aren't thinking while you type; you're dumping what you already thought of.

Re:Is the keyboard faster than the mouse? by Terr_ on Tuesday June 13, 2017 @01:18PM (#14546514)
I completely agree that code writing speed is not the important metric.

However, keyboard shortcuts can still be very useful for the tasks of testing and debugging. Consider the problem of stepping through many lines of code, or copy-pasting data from one place to another in order to run a test.

Lastly, when you know what you want to write (or refactor) it helps if the input system just fast enough that you can keep your sensation of flow. This part is probably highly variable among individuals.

Re:Is the keyboard faster than the mouse? by ganonm on Tuesday June 13, 2017 @01:00PM (#14546342)
For me a large part of the reason I use Vim and only Vim for writing code is it just makes the experience so much more enjoyable. I realise this is quite subjective, but my personal experience is that whenever I use a colleague's non-modal editor I find the experience frustrating even though I know how to use it. Years of using Vim has sensitised me to the constant annoyances that accompany using a conventional editor.

Has Vim sped up the rate at which I can edit text? Probably, but for me this is missing the point.

I'm not a physiotherapist but being able to rest my forearms/wrists on the table 99% of the time when using Vim significantly reduces the risk of RSI.

Re:Is the keyboard faster than the mouse? by braveo on Tuesday June 13, 2017 @05:00PM (#14548604)
hotkeys aren't about code entry.

I bet when you're in visual studio you hit F5 to debug instead of moving your mouse up and trying to hit the small button.

You probably also use Ctrl+<space> when need to pop up autocomplete directly, or Ctrl+r+r when you want to rename something quickly.

It's an idea known as 'death by a thousand small cuts'. Perhaps each individual build isn't significantly quicker using keyboard over mouse, but do it all day and it becomes significant.

This doesn't even start to consider the mental attention required for mouse usage vs keyboard usage. Every context shift potentially slows you down even more due to non-physical issues.

Trying to frame this as a discussion bout typing speed is just not accurate.

Re:Is the keyboard faster than the mouse? by antisthenes on Tuesday June 13, 2017 @11:43AM (#14545633)
Starcraft is not a good example, because to play at any level above average, you need both keyboard and mouse.

Neither one is optional. Also the actions undertaken by keyboard/mouse in Starcraft are generally not equivalent, e.g. you cannot select a hotkey group of units with a mouse, unless you select the same units visually where they are, which will always be slower. Same way you won't be making a selection box with a keyboard. Although possible, it is far less precise than a mouse.

In other words, there are certain subsets of actions for which the keyboard OR mouse will always be faster.

This is contrary to operating in a text editor or doing configuration in shell vs gui, where some people have a legitimate preference for doing it with a mouse vs text.

Re:Is the keyboard faster than the mouse? by RepressedEmu on Tuesday June 13, 2017 @11:51AM (#14545701)
Actually I'm fairly sure (at least in newer SC like HoTS and LoTV) you can select a hotkey group of units with the mouse since they are represented visually in an icon on the screen that can be clicked.

I think the main point was to say the aspects of the game that are faster with the keyboard is around 95+ percent and that top players reduce their use of the mouse to the bare minimum because of its inefficiency.

Re:Is the keyboard faster than the mouse? by antisthenes on Tuesday June 13, 2017 @01:01PM (#14546349)
Ah, that makes sense, I stopped playing just before HoTS came out.

I think, however, if there are still micro mechanics (e.g. marine split vs banelings), then you will only be able to use the mouse to do that action - I have never heard of a professional player that uses the keyboard for microing units exclusively, but I do admit not having played in a while.

My larger point was that it's going to be hard to make proper comparisons because the result of the action has to be 100% equivalent. Otherwise, the comparison is pointless.

Re:Is the keyboard faster than the mouse? by ngrilly on Tuesday June 13, 2017 @10:37AM (#14544991)
I watched the video: that's incredible! Hopefully, I don't have to be that quick to be a professional dev, or I would be out of business ;-)
Re:Is the keyboard faster than the mouse? by drak0n1c on Tuesday June 13, 2017 @01:18PM (#14546523)
There are mice with an array of thumb buttons on them that can be assigned to keyboard macros these days, they are advertised as MMO mice.
Re:Is the keyboard faster than the mouse? by dom0 on Tuesday June 13, 2017 @10:32AM (#14544959)
Mice for MOBAs and such have up to tweleve extra hotkeys...
Re:Is the keyboard faster than the mouse? by digi_owl on Tuesday June 13, 2017 @10:38AM (#14545007)
Now you jogged my memory...

https://www.wired.com/2009/11/18-button-open-office-mouse-ma...

Also, didn't early mouse experiments involve rodents with many more buttons than the 2-3 that's common today?

Re:Is the keyboard faster than the mouse? by Qwertious on Tuesday June 13, 2017 @12:42PM (#14546160)
Yes, but you only have one thumb covering all those hotkeys. Pressing them in rapid succession will be much easier in parallel on a keyboard, simply because your four fingers aren't occupied on aiming the mouse and clicking the main two buttons.
Re:Is the keyboard faster than the mouse? by WorldMaker on Tuesday June 13, 2017 @10:37AM (#14544993)
The one Razer product I own is the Naga Hex, because having the keys 1-6 at thumb reach on the mouse is wildly helpful for RPG hotbars. Not that I think I'm that much faster a player, merely that my WARS movement hand gets a little less to do.
Re:Is the keyboard faster than the mouse? by digi_owl on Tuesday June 13, 2017 @10:40AM (#14545031)
Reminds me that i loved playing the space part of Star Trek Online because i could use the "mouse hand" for hotkeys via the numpad and a couple of modifier keys.