You use Docker integrated with WSL2. What best practice should you follow regarding location of source codes that you work on?
Experience Level: Junior
Tags: WSL
Answer
Accessing files stored on Windows file system from WSL is slower than accessing files stored on WSL.
For that reason it is recommended to always store source codes directly to WSL. You can modify them from Windows either via \\wsl$ or use Remote-WSL.
Related WSL job interview questions
What is the advantage of Visual Studio Code Remote-WSL extension?
WSL JuniorHow can you edit files stored in WSL from Visual Studio Code that is running on Windows?
WSL JuniorHow do you integrate Docker with your WSL2 distro?
WSL JuniorHow can you display you current Linux folder in Windows File Explorer?
WSL JuniorHow can you access WSL from Windows?
WSL Junior