I wrote down some advice for junior programmers pairing with more experienced folks based on things Iāve learned from people on both sides of those scenarios: Junior Pairing Scripts :: The Programmer's Stone
I think asdf is a common tool for managing Elixir and Erlang versions, but I recently explored various version managers and was really pleasantly surprised by pkgx. Itās a newer tool, so it might not be as well known, but I found it really straightforward and efficient.
Iāve written an article detailing my experience and setup process with asdf, nix, and pkgx. Iād love to hear your thoughts and any feedback as I continue to learn and grow in the Elixir community:
Not sure you need that global config file, mise creates it for you if memory serves.
This is what I have in my ZSH init script:
eval "$(mise activate zsh)"
eval "$(mise direnv)"
And it works just fine.
If you only install it + include this in your shell init file(s) (the latter only if you use direnv), you should be just fine. Are you getting any error?
I installed mise (on Linux via curl) as a drop-in replacement for asdf last week and it works great.
mise activate is needed in order for mise to find the correct path for all installs. Itās used during shell initaliziation - if you put it in your .bashrc/.zshrc everything should be fine.
mise picks up existing .tools-versions (or .mise.toml). In a project folder you can type mise use to install all tools specified in the file and use them in the local folder.
You can also install a tool globally e.g. mise use -g elixir@latest. This adds a global .mise.toml, so no need to create a .mise.toml in the home folder (this is not the default place, but if it exists then mise will use this instead of the default global .mise.toml and also warn you about it).
Oh wow I had misunderstood the documentation even more, I didnāt realize that was the command to add to .zshrc. Thanks for the clarification, I got mise to work now and have added it as a new section to the article. Thanks for the suggestion!
Just got through your article. One remark: youāre putting too much responsibility in the hands of these tools while you yourself correctly point out that part of the issues are social and canāt be solved with technology.
Example: youāre saying that with mise you can have the latest version of rg but that your colleague may not.
This is irrelevant to any such version manager due to:
It canāt enforce what your colleagues are doing unless the company mandates the same tools and practices for everyone (IMO a good idea, we the programmers suffer from despairingly high levels of individuality at times).
It overemphasizes the usually extremely minor
/ rare issues of backwards incompatibilities of tools. I can assure you that the authors of e.g. rg and jq are extremely conscious of how many people rely on them and they very rarely allow themselves such frivolities.
I understand you want to be thorough. For a reader like myself however, Iād prefer if you weighted the potential issues you wanted to point outā¦ and outright skip those that are highly unlikely to happen (a 2-line footnote is more than enough). Makes for a more engaging and shorter read thatās also denser with useful actionable information.
New blog post about Elixir, Phoenix, and the OWASP Top 10. A frequently recommended security guide, the Top 10 is a useful resource for developers. Learn how to use it effectively in your own work!
About a month ago, I wrote an article on how to use the cross-platform version management tool vfox to install and manage multiple Erlang/OTP and Elixir version under Linux system ā Install mutiple Erlang and Elixir with vfox. the demonstration operation system used in the article is Ubuntu 20.04 Linux operation system.
Recently, the latest version of the vfox-erlang and vfox-elixir plugins has supported the installation and management of multiple version of Erlang/OTP and Elixir under Windows platforms. and has passed the End to End test ā Testing.
This article will use the Windows 10 operation system as an example to teach you how to install and manage multiple Erlang/OTP and Elixir version on Windows platforms.
> Get-ComputerInfo
WindowsBuildLabEx : 22621.1.amd64fre.ni_release.220506-1250
WindowsCurrentVersion : 6.3
WindowsInstallationType : Client
WindowsProductName : Windows 10 Pro
......
Wouldnāt you be better off controlling the visibility of the editor rather than the entire element? Youāre pushing the entire content down each time you toggle. That content is not going to change when youāre in preview mode.