Kitaab

Nix gets in the way when learning new languages

dev nix

published 2023-03-31 21:43

updated 2023-04-01 19:12

Learning a new programming language has become quite difficult for me. I realize this is my own doing, but I suppose I wanted to let some frustration out.

Not only do I have to learn the language itself and it's tooling, but then I have figure out how to integrate the build tooling with Nix. And then once that's done, I get to look into LSP configuration for NVim.

It's not that I have to do all of these at the same time, but it certainly makes the hill a lot larger than it needs to be. I should figure out how to use FHS on NixOS so I can at least start learning the language before having to dive into the depths with how to build it with Nix.

To be fair, some languages are a lot easier than others. I've recently embarked on learning JavaScript and front-end development, and it's by far the worst. Getting started with Rust was much simpler. I still regularly struggle with Python + Nix.

What makes this worse is a lot of documentation for the tooling around JavaScript + Nix is centered around the idea of bringing an already existing app over to Nix. I'm trying to build the app here! I don't know how to compile it.