How to Drastically Boost Your Developer Productivity
expose.sh
expose.sh
I really feel like this is delusional thinking in the software industry and it seems to be widespread.
I automate things because I don't like doing manual tasks (because it's boring). I don't do it to save time for my company.
For instance, reading HTML docs in a browser with a text editor vs using a fancy IDE. Metrics say IDE wins, but I don't think those seconds shaved are in the critical path. And there are other benefits to the non-IDE workflow.
> If automating one repetitive task saves you 36
> seconds and the equivalent of a working week per
> year, automating 5 similarly time consuming tasks
> will get you back 5 weeks per year.
>
> How would I solve this specific problem? Use a
> newer framework with Hot Reload support.
Why did I never think of completely rewriting my old Java monolith using a new framework to save 5.4 days of dev time?! Revolutionary!"Print real variables instead of using a debugger"
I use a debugger to get a grip on other people's code, but if it's my own code, wanting a debugger points to not having thought hard enough.
Printing variables on the other hand is an investment. You evolve to log statements dumping reasonably complete aspects of state, which are disabled in production. If things go bad, you can enable specific loggers even in production on part of your cluster.
This way, troubleshooting in dev won't only fix a bug, it will train your logging to give the relevant info, and only the relevant info.
Now dumping 50K lines of data and hunting specific values in an unstructured way, run after run after run, yeah, that's dumb. You've got a computer, the thing is good at filtering relevant data for you, you might as well use it.
But it's a pain in the ass for browser javascript that is generated from Typescript/Coffescript or whatever the flavor of the week is.
It and the benefits from it cannot be easily measured. But good managers understand its value.
As others note, being forced to context switch is quite damaging. If I have to context switch to press a green button every 30 minutes, sure it only takes 1 second but that's not the point. I've worked on projects that had dozens of these "green buttons".
Great way to irritate your security team.
Or just... Test it without a mouse? I don't get why Vimium is recommended here. While its a cool extension, like a fraction of a percent of the users of your web application will be using it.
I think somebody got some wires crossed here. 36 seconds * 50 times per day * 5 days is 9000 seconds or 150 minutes per 5 day work week.
Also, it's not _exactly_ the same, but https://xkcd.com/1205/ comes to mind.
You can also automate multiple tasks, so if you automated 5 tasks that normally take you 36 seconds each you might save yourself 5 weeks in a year.
Bash scripts? We'll have to agree to disagree. I love that all his other programming recommendations don't work if you're coding bash scripts.