4 ms·
I sort by most amount of stars quite frequently when I am learning a new language and want to know what the most popular package is for something. What do you t
by ghxst 2y ago
I sort by most amount of stars quite frequently when I am learning a new language and want to know what the most popular package is for something. What do you think would be a better metric for a use case like that?
- arccy 2y agonumber of actual imports in code
- flippyhead 2y agoCodeRank(tm)!
- nejsjsjsbsb 2y agoThis might work but biases against languages whose package managers are not used in the rank. As well as code that is used alot but not referenced via code directly e.g. drop in dlls.
- james_marks 2y agoGoodheart's law - this would just cause imports in junk repos
- michaelmior 2y agoI think it's a decent metric. I agree with the other comment that actual imports is probably a better metric, but that's not always as trivial to find. That said, the package repositories for many popular languages list stats of either declared dependencies or package downloads, which helps.
- LtWorf 2y agordeps are completely broken in github. I wrote a library that I have used in other projects of my own and it was always at 0 users. Anyway if stuff is used by proprietary stuff it will also sit at 0. I now moved to codeberg where there is less spam, although it does have stars
- michaelmior 2y agoI wasn't suggesting using GitHub. In fact, I don't think I was aware that GitHub even listed reverse dependencies. Where is that in the UI?
- LtWorf 2y agohttps://github.com/ltworf/typedload/network/dependents https://github.com/ltworf/typedload/network/dependents
- michaelmior 2y agoAh yes. I forgot I actually use this feature in some of my projects. GitHub isn't always able to update this automatically but you can programmatically report dependencies.
- LtWorf 2y agoYeah not way to automatically detect "import xxx"
- michaelmior 2y agoRight. I believe they rely on things like requirements.txt, Cargo.toml, etc. And of course not all languages are supported. So if you use an unsupported language or package manager, you're out of luck.
- LtWorf 2y agoIt doesn't even work with normal requirements.txt by the way. At least not all the time.
- burnte 2y agoDon't count any of my stars then, I thought it was a bookmark feature. Every repo I've starred is only starred to find later, not an endorsement from me.
- ghxst 2y agoThat's partly what I assume people star repos for, it really doesn't defeat my use case. It's a metric that indicates interest and popularity more so than approval or endorsements.