List of of tools I use while programming.
ack is a grep-like source code search tool.
I discovered ack when I was working to develop an Adobe Acrobat plugin in C++. The SDK's documentation was lacking, and the best way to find example of how to use particular api's was to find mention of that api in the source code. You can use grep to achieve most of the functionality that ack provides. However, ack's commands are easy, and it excels in monorepos with multiple languages. My favorite feature is how easy it is to filter the filetypes you want ack to search. For example, if I just want to look at C++ files, you'd write:
ack findThis --cpp
There's more on the ack's documentation page: https://beyondgrep.com/documentation/
A viewer for git and diff output
Delta's super power is the ability to view diffs side by side in the terminal.
You can see a preview of how it looks here:
I recommend installing delta using a package manager, that way the tool is available in the system's path. Installation direction are here: https://github.com/dandavison/delta#installation
To set it up, you can copy the following section in your
[core] pager = delta --line-numbers --dark[delta] side-by-side = true
For more details on how to set up delta, here are two places to checkout:
- delta's own documentation: https://github.com/dandavison/delta#configuration
- A write up on dev.to where I discovered the tool: https://dev.to/cloudx/delta-a-new-git-diff-tool-to-rock-your-productivity-2773
Nix-shell (and friends) is one of those tools that I cannot describe acurately. I can only tell you how I use it.
Currently, I use nix-shell as a tool to create shells for tools that I don't want to persist in my environment. For example, to create the favicon of this site, I need to get ImageMagick to convert severval PNGs to an ICO file. With nix-shell, you can create a shell that will function as if ImageMagick is installed and use it.
If nix is installed, getting a working version of ImageMagik is as easy as typing the command:
nix-shell -p imagemagick
This makes all of imagemagick's tools available in a temporary shell
The best place to start with Nix in general is here: https://nixos.org/guides/nix-pills/index.html
Whenever I need to use Regex in an application, I build and test the experession using https://regex101.com/
I use https://cpp.libhunt.com/ to explore my options for libraries whenever I am using C++. Libhunt also has explorer for many other languages (go, crystal, .net, and etc...)