https://futureofcoding.org/ logo
#linking-together
Title
# linking-together
k

Konrad Hinsen

12/29/2022, 11:31 AM
A "User Experience Manifesto" - for a small command-line utility! https://github.com/Slackadays/Clipboard/wiki/User-Experience-Manifesto Makes me wonder if the command line could become more mainstream if more tools were trying to be user-friendly.
k

Kartik Agaram

12/29/2022, 3:16 PM
I don't understand the "no X11 dependency". I look in the source and immediately see:
Copy code
#if defined(X11_AVAILABLE)
#include <X11/Xlib.h>
#endif
j

Justin Blank

12/29/2022, 4:53 PM
Now we just need meta-discoverability—how do tool authors know what things to do to be discoverable and good citizens? (Not sarcastic).
k

Konrad Hinsen

12/29/2022, 6:59 PM
@Kartik Agaram My understanding is that “no X11 dependency” means “works without X11” and “can be used by someone who doesn’t know what X11 is”.
k

Kartik Agaram

12/29/2022, 7:00 PM
I'm not sure how, though. Unless it's X11 or Wayland, I'm not sure how you'd access the clipboard on any Unix system.
k

Konrad Hinsen

12/29/2022, 7:05 PM
That ‘clipboard’ tool implements its own clipboard in the file system. If you have X11, data is copied to the X11 clipboard as well.
k

Kartik Agaram

12/29/2022, 7:14 PM
Oh! So it can only interop with itself?!
k

Konrad Hinsen

12/29/2022, 7:26 PM
If you don't have X11, yes. There's nothing else it could interop with!
k

Kartik Agaram

12/29/2022, 7:36 PM
Oh sorry, I missed half of your previous comment.
g

guitarvydas

12/29/2022, 8:45 PM
[moved] The secret here is what I currently call 0D (Zero Dependency - AKA Parallelism: The Good Part). A command line uses FIFOs, not LIFOs, to string commands together. Nested function calls are not the same as pipelines. Functions use The Stack (LIFO), pipelines use Queues (FIFO).