Remix.run Logo
▲ em-bee 3 hours ago

the thing with X and wayland etc is, that they are low level. which is fine if you want full control over the presentation. what HTML was trying to do is to go higher level, send over some data and let the browser figure out how to present it. but it went wrong and people are abusing it as a low level presentation interface like X or wayland.

what we are missing is a really high level protocol/system that takes really high level data and figures out the presentation on its own.

take a list of files for example. you can run ls -l in a terminal and it will attempt a crude text based formatting of the output. or you can run a full gui filemanager.

what if there was a command that would produce ls output as a table data structure, run in a sort of terminal that knows how to format a table nicely without the ls command having to include any formatting instructions? this terminal would have support for all sorts of data types and structures to display all of them nicely.

▲skydhash an hour ago | parent | next [-]

> Take a list of files for example. you can run ls -l in a terminal and it will attempt a crude text based formatting of the output. or you can run a full gui filemanager.

ls's output (and a few other programs') are human facing. They're not meant to be machine readable.

> what if there was a command that would produce ls output as a table data structure, run in a sort of terminal that knows how to format a table nicely without the ls command having to include any formatting instructions? this terminal would have support for all sorts of data types and structures to display all of them nicely.

Because that's just complexity for its own sake. What's simpler is to just create a shell alias for a particular view you want. The shell is for interactive usage, with some capabilities for automation. If something better is needed, you write a real program for it.

▲arboles 3 hours ago | parent | prev [-]

> what if there was a command that would produce ls output as a table data structure, run in a sort of terminal that knows how to format a table nicely without the ls command having to include any formatting instructions? this terminal would have support for all sorts of data types and structures to display all of them nicely.

So, powershell? For some reason only IT jockeys on Microsoft's death grip remember and use its full capability after learning it.

▲drdexebtjl 2 hours ago | parent [-]

There are many problems with powershell, but to me the absolute worst, won't even touch it with a 10-feet pole, is UTF-16.