←back to thread

125 points lexokoh | 1 comments | | HN request time: 0.211s | source
Show context
phplovesong ◴[] No.45003800[source]
This has 10 additional deps. 10! Rust is the new Javascript.
replies(1): >>45004136 #
crote ◴[] No.45004136[source]
Complaining about the number of dependencies is completely meaningless if you don't take into account what those dependencies do, and what the ecosystem looks like.

For example, `tray-icon` looks pretty useful for a lightweight app which basically is a tray icon: rewriting that library from scratch would be a massive waste of time.

On the other end of the spectrum, `log` and `serde` provide basic functionality which most languages will have in their standard library. Rust intentionally keeps a small standard library to avoid ossifying potentially bad ideas. The crates have tens of millions of users, rewriting that yourself would be stupidity.

It's very easy to criticize the length of their dependency list, but could you point to a specific one which you deem unnecessary? Which one do you consider to be a "leftPad", and what trivial code fragment would you replace it with?

replies(2): >>45005039 #>>45008652 #
phplovesong ◴[] No.45005039[source]
I mean this entire thing is doable in a one-liner bash script. This tool has 10 deps (and every one of them also includes a big list of deps, so in practice i probably have over 200 deps).

How is this acceptable?

replies(2): >>45005603 #>>45014777 #
1. cdaringe ◴[] No.45014777[source]
A macos status bar gui with user interaction is doable in a one liner bash script? Show me.

Spoiler: no it isnt.