6/7/2023 0 Comments Livereload atomFor example this very blog is written in Markdown that is converted to static HTML pages with Hugo, which has a built-in command hugo server that server the pages locally and automatically reloads pages thanks to livereload.js. The same principle applies to all development workflows, not just command-line stuff. $ find * | entr rsync -avz -delete-after * :/path-to-target-dir/ | ts The basic usage of Entr is to list all files in your coding project with find and pipe the list to entr telling it what command to run when any of the files is updated: The Entr command-line tool to restart programs automatically when files change. ![]() The Atom code editor with autosave to automatically save code files. I achieve this with two a combination of two great developer tools: It does not matter if I am doing front-end or back-end development – I insist on having the code in one window and the result update in another window as soon as I press Ctrl+S or switch focus between windows. I always try to set up my development environment in a way that I can write code in one window, and immediately see the result in another. The experience should be fast and friction-less. ![]() The developer should not feel any drain when doing just one more test to ensure everything is absolutely correct. The cost of doing just one more tweak to make the code perfect should be as close to zero as possible. What is the key to being an efficient programmer? Having a setup where you can write and test your code over and over in an uninterrupted flow.
0 Comments
Leave a Reply. |