17
submitted 8 months ago by auf@lemmy.ml to c/nix@programming.dev
top 4 comments
sorted by: hot top controversial new old
[-] onlinepersona@programming.dev 5 points 8 months ago

It is the best of tools; it is the worst of tools. It is indispensable; it is unusable. It makes the impossible possible; it makes easy things hard. Nothing ever breaks; nothing ever works.

I like the sass, much less the typescript.

[-] philm@programming.dev 3 points 8 months ago

Yeah the way you need to maintain two codebases: one for types and one for actual logic is annoying.

Also nix is purely functional (which is necessary, for more information read the Nix Pills), Typescript is not, so unless it's only a purely functional subset or severely limits Nix (in the form of abstractions, after skimming over it, I think this is the case), it will run into issues...

[-] thevoiceofra@mander.xyz 3 points 8 months ago

But why typescript? Why not nickel or any other better suited functional lazy language with types?

[-] auf@lemmy.ml 0 points 8 months ago

Here's what author says.

With Typescript, you get the full power of programming — the ability to easily factor out variables, to connect and abstract functionality, to reuse code, to write tests. But you don't need to learn a new language. You don't need to find documentation (it's right there in your editor, if you have LSP set up). You don't need to try to make sense of a page of Nix traceback (type errors will show you where you went wrong much earlier and more precisely).

I personally agree with this. Learning a new language that is poorly documented is pretty difficult. (I still learn Nix though since I think it's fun)

If this state will persist, Nix will end up being like haskell with exclusive community, which leads fhe language itself to death.

this post was submitted on 02 Nov 2023
17 points (87.0% liked)

Nix / NixOS

1465 readers
2 users here now

Main links

Videos

founded 1 year ago
MODERATORS