5 ms·
Mental Context Switches Are Evil
- mey 15y agoCore Articles referenced. Skip the blog post http://joelonsoftware.com/articles/fog0000000022.html http://joelonsoftware.com/articles/fog0000000022.html http://snarfed.org/why_i_run_shells_inside_emacs http://snarfed.org/why_i_run_shells_inside_emacs http://itc.conversationsnetwork.org/shows/detail4911.html http://itc.conversationsnetwork.org/shows/detail4911.html
- jacques_chester 15y agoI know snark is not au fait here at HN, but I am not a fan of John D Cook. His basic method is to confirm some common wisdom, maybe with a handful of anecdotes. No reference to original sources. For comparison, Jeff Atwood references his sources.
- felipeoc 15y ago> His basic method is to confirm some common wisdom, maybe with a handful of anecdotes. And I like it.
- jacques_chester 15y agoOf course you do. And that's why it gets upvoted. But you are not enriched by comforting, unverifiable group-think.
- stretchwithme 15y agoTrue, but is not the ability to efficiently switch contexts of value? Won't that erode if not exercised? For many, there is little chance that such efforts to reduce context switching will eliminate the need to. But some people will end up in the same context all the time and be worse off. Meaning more people will be upset when someone moves their cheese.
- bsergean 15y agoMakes you wonder whether using IDEs make sense. I have a friend who's really good and he's using Eclipse/Java, and never context-switching from Editor to the Terminal. But hell ... I can't give up on Vim and the Terminal within Vim is not that good.
- jpr 15y agoContext-switching is slow, yes, but in the first example the cause of evilness is not context-switching, it's that you must program web apps' client side in JS.
- quanticle 15y agoI agree with the premise, but I disagree with the examples provided. I don't view switching from Javascript client code to Python or C# server code to be a context switch. What is a context switch is switching to a different type of task (e.g. looking up documentation, talking to a co-worker, etc.). Another point is that the cost of the context switch isn't automatically higher than other costs when programming. Yeah, you might save on a context switch by running your shell inside emacs. However, that savings may be more than canceled out by the fact that you have to learn a new environment. In other words, if you're already very productive with the shell as it is, you might be better off taking the hit of the context switch, as it'll be less costly than your lowered productivity from running the shell inside emacs.