Julia developing workflow with vim and terminal

I’ve used both vim and Emacs along with a terminal window next to the editor. My workflow looks like:

  1. Use Revise.jl which keeps track of changes in your code and reloads it for you.
  2. Always develop code as part of a package. I usually use PkgTemplates.jl to initialize a package from a template I have saved. This helps you with setting up documentation, git, CI etc. You can also go into the Pkg mode and type generate Foo which quickly generates a barebones package if you don’t need the bells and whistles of PkgTemplates.jl.
  3. For complex functions, make a function within your package to test it and initialize all parameters within the function. This avoids cluttering the global environment with variables.

This allows you to immediately run functions from the code you’re developing without using include or display.

9 Likes