FizzyOrange

joined 2 years ago
[–] FizzyOrange@programming.dev 1 points 1 hour ago

Actually chars() is pretty simple - it's just UTF-8 decoding which is elegant and simple.

The complexity is all around unicode, not UTF-8.

[–] FizzyOrange@programming.dev 1 points 1 week ago

Interesting. But can't you do basically the same thing with @nonnull annotations? I remember using something like that a decade ago when I last wrote Java.

[–] FizzyOrange@programming.dev 13 points 1 week ago

IMO automated changelogs like these are not especially useful. Better than no changelog I guess, but nowhere near as good as a proper changelog. But proper changelogs take actual effort.

[–] FizzyOrange@programming.dev 2 points 1 week ago

IDEs tend to work out of the box while the likes of vim or emacs need configuration and have an initially steep learning curve.

Not in my experience. It's very easy to design systems that break IDE support. People love adding all sorts of ad hoc build scripts that mean you can't just press F5 or whatever. It takes discipline and caring about IDEs to not do that.

And while people might love tweaking Emacs and Vim, it isn't required.

[–] FizzyOrange@programming.dev 1 points 1 week ago (2 children)

There's definitely an element of snobbery, and also of being lazy about tooling. Do you think once you become a talented dev you lose all human vices?

Some of the smartest people in the world believe in an imaginary dad who lives in the sky and grants imperceptible wishes. Everyone is human.

[–] FizzyOrange@programming.dev 2 points 1 week ago (1 children)

I completely agree. Also almost all of the fancy editing you can do with Vim can be done just with multiple cursors, and it's less annoying because you do it incrementally (rather than typing a long sequence of commands and then seeing the result), and you much less to memorise.

[–] FizzyOrange@programming.dev 1 points 1 week ago

Yeah but one is using Tk and the other doesn't look any better than git log --graph. I think the point of this is that it looks okish and is in the terminal.

[–] FizzyOrange@programming.dev 1 points 1 week ago (2 children)

Doesn't look like it.

[–] FizzyOrange@programming.dev 3 points 1 week ago

I agree. C2 continuity does matter for aesthetics sometimes, but not for a button.

[–] FizzyOrange@programming.dev 3 points 1 week ago

Even KISS. Sometimes things just have to be complex. Of course you should aim for simplicity where possible, but I've seen people fight against better and more capable options just because they weren't as simple and thus violated the KISS "rule".

[–] FizzyOrange@programming.dev 15 points 2 weeks ago (3 children)

One example is creating an interface for every goddamn class I make because of “loose coupling” when in reality none of these classes are ever going to have an alternative implementation.

Sounds like you've learned the answer!

Virtual all programming principles like that should never be applied blindly in all situations. You basically need to develop taste through experience... and caring about code quality (lots of people have experience but don't give a shit what they're excreting).

Stuff like DRY and SOLID are guidelines not rules.

[–] FizzyOrange@programming.dev 6 points 2 weeks ago (1 children)

Thanks for highlighting your username - made me notice that you post a lot of nonsense here so I can easily block it!

0
submitted 8 months ago* (last edited 8 months ago) by FizzyOrange@programming.dev to c/linux@programming.dev
 

Edit: rootless in this context means the remote windows appear like local windows; not in a big "desktop" window. It's nothing to do with the root account. Sorry, I didn't come up with that confusing term. If anyone can think of a better term let's use that!

This should be a simple task. I ssh to a remote server. I run a GUI command. It appears on my screen (and isn't laggy as hell).

Yet I've never found a solution that really works well in Linux. Here are some that I've tried over the years:

  • Remote X: this is just unusably slow, except maybe over a local network.
  • VNC: almost as slow as remote X and not rootless.
  • NX: IIRC this did perform well but I remember it being a pain to set up and it's proprietary.
  • Waypipe: I haven't actually tried this but based on the description it has the right UX. Unfortunately it only works with Wayland native apps and I'm not sure about the performance. Since it's just forwarding Wayland messages, similar to X forwarding, and not e.g. using a video codec I assume it will have similar performance issues (though maybe not as bad?).

I recently discovered wprs which sounds interesting but I haven't tried it.

Does anyone know if there is a good solution to this decades-old apparently unsolved problem?

I literally just want to ssh <server> xeyes and have xeyes (or whatever) appear on my screen, rootless, without lag, without complicated setup. Is that too much to ask?

view more: next ›