HACKER Q&A
📣 Exorust

What are some devtool hacks you use on a daily basis?


What are some of the cool devtools or devtool hacks you use on a daily basis?


  👤 throwaway0asd Accepted Answer ✓
Simplified browser test automation without use of CDP that uses tests composed of a data structure that simply walks the DOM. Quick and easy event execution.

A small script that converts a few key files so that the rest of the Node application builds as commonJS instead of ECMA modules.

Custom DOM methods to get elements by text or get elements by attribute or attribute value or content type.

An https certificate generator and domains that point to loopback IPs.

Automated command line documentation for all the options and various switches of the many various commands in my big terminal application.

A terminal clock tool shows how long each step and groups of steps take to execute in test automation and build tasks in nanoseconds.

Embedding state data directly into the HTML so that it’s there when the page is first accessed by JavaScript without a call for additional state artifacts.


👤 jhoelzel
I handle all my clients in a dev container with visual studio code.

This way im perfectly able to jump from client to client without having them share any base at all.

It also possible to simply use ssh to another machine, but having the dev container gives me the possibility to separate everything from each other and having a versioned dockerfile helps to quickly jump between different kubernetes versions or any other dependency that i have.

Another one is distroless deployments. I know it sounds moot, but havinga tool you need setup in a container that you can just freshly build from sources and run it, is a really nice touch. Especially since they are usually less than 100 mb



👤 nicbou
$0 to reference to the currently selected element. For example, $0.innerHTML.