4 ms·
Reducing cognitive load by removing the need to write imports by hand means you have QA-issues? I don't follow.
by cel1ne 9y ago
Reducing cognitive load by removing the need to write imports by hand means you have QA-issues? I don't follow.
- coldtea 9y agoYou didn't wrote about "reducing cognitive load". You wrote: "This stuff costs so much time". So, my reply to that comes down to: If you have so many imports that it costs you "so much time" to handle them manually, then you probably have QA issues -- like people adding tons of dependencies to your project. But it was also meant in the way that if you code so fast, that manually adding some imports is what slows you down ("takes so much time") then probably you are not thinking about what you code enough. Typically, even without automated imports, the time to handle imports would/should be a negligible amount compared to the time to write the actual functionality -- that's the difficult part, and that what takes one time to think, design and code right.
- cel1ne 9y agoWhile no-one would dispute the need of proper design, there are workflows like refactoring React/HTML-subtrees, where time is wasted having to fix imports whenever you cut something out and put it into a new file. Or having to manually write "import React from "react"" on top of every single new component. Or having to write "import _ from lodash" whenever you need to access _ for some function.
- tmat 9y agowe're talking about 3-4 seconds here.