Live data from Hacker News

Snitch – A friendlier ss/netstat

github.com

51–60 of 109 posts

Re: Snitch – A friendlier ss/netstat

#51
post #47

Earlier quoted context omitted.

Because it's potentially trademark infringement because it could confuse people.

Can you actually trademark a common word? (Serious question)

Yes, Apple, Windows, Amazon, Shell, Target, Dove, Ivory, Tide, Polo.

(With help from Claude completing the list)

Re: Snitch – A friendlier ss/netstat

#53
When attempting to install through go:

    go install github.com/karol-broda/snitch@latest
I get this error message:

    go: github.com/karol-broda/snitch@latest: version constraints conflict:
     github.com/karol-broda/snitch@v0.1.8: parsing go.mod:
     module declares its path as: snitch
             but was required as: github.com/karol-broda/snitch

Re: Snitch – A friendlier ss/netstat

#54
post #28

Earlier quoted context omitted.

I immediately thought of that too. The names these people come up with are so embarrassing. And I'm not even talking about the meaning of 'snitch'. But you already have a tool within the same IT area that is basically named the same. Why the hell would you do that? Aren't there other words in the dictionary?

> The names these people come up with are so embarrassing. And I'm not even talking about the meaning of 'snitch'. They should call it "rat" and be done with it. Besides, "snitch" works for Little Snitch -- I've always found it somehow endearing, although the bare word is unflattering.

[dead]

Re: Snitch – A friendlier ss/netstat

#56
post #51
post #47

Earlier quoted context omitted.

Can you actually trademark a common word? (Serious question)

Yes, Apple, Windows, Amazon, Shell, Target, Dove, Ivory, Tide, Polo. (With help from Claude completing the list)

Remember the trademark fights between Apple Music (Beatles) and Apple Computer? Interesting history.

Re: Snitch – A friendlier ss/netstat

#57

it's weird that both lsof and ss defaults are so awful Like, ss without any options shows such arcane, rarely needed details as send/receive queue size but not the application socket belongs to . And omits listening sockets which is main use for such tools. I know picking the right defaults is hard ask but they managed to pick all the wrong defaults.

Completely agreed. Not sure what the historical reasons for lsof and ss are, but unix tools are structurally in a hard place when it comes to having sensible defaults over the long term.

Generally speaking, you can only have sensible defaults over time if you're able to change the defaults over time. New users and new use-cases come with time, and so what constitutes a "sensible default" changes.

However (and this is a drum I like to bang[0]), because unix tools only deal in usually-text bytestreams without any higher level of abstraction, consumers of those tools end up tightly coupled with how output is presented. Without any separation between data and its representation, the (default) representation is the tool's API. To change the default representation is to make a backwards-incompatible API change. A good example of this is how ps aux truncates longer than like 7 characters.

[0] https://www.cgl.sh/blog/posts/sh.html

Re: Snitch – A friendlier ss/netstat

#58

it's weird that both lsof and ss defaults are so awful Like, ss without any options shows such arcane, rarely needed details as send/receive queue size but not the application socket belongs to . And omits listening sockets which is main use for such tools. I know picking the right defaults is hard ask but they managed to pick all the wrong defaults.

I think the same applies for many of the new breed of command line applications like fd and ag/rg. Being able to use them intuitively trumps ubiquity, speed or features.

Very curious what is wrong about the rg defaults.

The only one I change is to add `--no-ignore`.

Re: Snitch – A friendlier ss/netstat

#59
post #25

Earlier quoted context omitted.

Are they as accessible as GUI though (genuine question) UI libraries have a lot of features for allowing people with disabilities to “read” and interact with the screen in efficient ways

TUI tools are generally as accessible as the terminal on which they run. GUI apps are much trickier. They require that the developer implement integration with accessibility frameworks (which vary depending on X11/Wayland) or use a toolkit which does this.

How are TUI tools just as accessible as the terminal? Take a visually-simple program like neomutt or vim. How does a vision-impaired user understand the TUI's layout? E.g. splits and statusbar in vim, or the q:Quit d:Del... labels at the top of neomutt. It seems to me like the TUI, because it only provides the abstraction of raw glyphs, any accessibility is built on hopes and dreams. More complicated TUIs like htop or glances seem like they would be utterly hopeless.

When it comes to GUIs, you have a higher level of abstraction than grid-of-glyphs. By using a GUI toolkit with these abstractions, you can get accessibility (relatively) for free.

Open to having my mind changed though.

Re: Snitch – A friendlier ss/netstat

#60

Earlier quoted context omitted.

Accessibility is a great thing to have and strive for, but it cannot be the number one design principle. Imagine if everything around us would be designed for blind people.

I suspect blind people imagine that a lot. The idea is to design for all (or as many as feasible), it's not a binary either/or.

You cannot design a lot of TUI for all. Should we abandon TUI entirely ?
Post reply on HN