Hacker Newsnew | past | comments | ask | show | jobs | submit | more 000ooo000's commentslogin

I have a bash key binding, Ctrl+Y, that prepends sudo to the current command and submits it. I also don't use sudo-rs. No one has died yet.


!?specialthing?

If you are feeling brave


What does it provide over

mycmd1 #| mycmd2


Theirs "turns off" one element of a pipeline; yours turns off everything after a certain point.

This will output the stdout of mycmd1:

    mycmd1 #| mycmd2 | mycmd3
This will output the stdout of mycmd3:

    mycmd1 | \# mycmd2 | mycmd3


Can you explain to me why either of these is useful?

I've somehow gotten by never really needing to pipe any commands in the terminal, probably because I mostly do frontend dev and use the term for starting the server and running prodaccess


Pipelines are usually built up step by step: we run some vague, general thing (e.g. a `find` command); the output looks sort of right, but needs to be narrowed down or processed further, so we press Up to get the previous command back, and add a pipe to the end. We run that, then add something else; and so on.

Now let's say the output looks wrong; e.g. we get nothing out. Weird, the previous command looked right, and it doesn't seem to be a problem with the filter we just put on the end. Maybe the filter we added part-way-through was discarding too much, so that the things we actually wanted weren't reaching the later stages; we didn't notice, because everything was being drowned-out by irrelevant stuff that that our latest filter has just gotten rid of.

Tricks like this `\#` let us turn off that earlier filter, without affecting anything else, so we can see if it was causing the problem as we suspect.

As for more general "why use CLI?", that's been debated for decades already; if you care to look it up :-)


no no, not asking why use CLI. If I was less lazy, I would use it more often


I can imagine a pipeline where intermediate stages have been inserted to have some side effect, like debug logging all data passing through.


Ah duh, cheers


So the big token saving was changing a setting that Git already allows you to change?

And does 8ms really matter when you're shunting bulk crap back and forth from the cloud?


It goes beyond what I was able to do with git settings alone. Specifically stripping the headers/padding/decorative and it doees it across all output (or well a lot of it).


>We are introducing the ability to reposition it [taskbar] to the top or sides of your screen

*reintroducing

Windows is terminal. Taskbar on the top isn't changing that. It has product manager rot. Good luck ousting the people with the power these days.


>now every WM have to repeat that work

wlroots?


wlroots is self-described as "about 60,000 lines of code you were going to write anyway." It's also a moving target and you'll probably have to retool when wlroots updates.

That seems like a huge burden to carry around, considering that a minimal X11 window manager can be a few thousand lines of code and probably still compiles after 15 years.


wlroots came pretty late so there was a lot of code duplication between Weston/GNOME/KDE before that.


I think that's actually the biggest real criticism that can reasonably be made about Wayland: they ought to have produced something like wlroots from the start.

Weston was only ever intended to be an example, and its monolithic nature meant that it wasn't particularly useful as a platform on which others could build (and this was even more true early on, before libweston).

As a result, GNOME and KDE both did their own implementations - and from that seed grew a host of complaints about things not working in one or the other, when on xorg they had worked more or less the same. The lack of a common entry point for "plumbing" also hurt, and can probably take much of the blame for the initial pain that many faced when first moving to a wayland-based DE.

But, of course, that's only obvious in retrospect. I don't think it was at all clear at the time those decisions were being made originally - in other words, it was a mistake rather than malice.


That helps, but you still have to - at a bare minimum - wire up all the functionality. My pet example is trying out a new wlroots compositor and discovering that it has no way to change keyboard layout because it doesn't use that code from the library yet.


>Ultimately, using an AI is a new skill

It's incredible watching people determine that outsourcing their thinking and work to what has been generously described as a junior coworker is a new 'skill'. Words are losing their meaning, on multiple levels.


Are some people better at this than others? Can people improve? I think the answer to both questions is yes which makes this a skill.

Just like being able to use non-LLM Google to search is a skill; I have family members who are amazed at what I can find that they cannot.


No sane person would argue Person A is a concreter if Person A is telling Person B to do concreting and Person B does the concreting. Doesn't matter if Person A had elaborate plans for the concrete, or if Person A owns the concrete afterwards. These are long-established ideas. You can twist it and argue "semantics!" all you want but it will never take with anyone but the Person A's.


It's sad to watch the mental gymnastics at play. I guess by asking my mechanic to service my car, I'm a mechanic too? I want it > it gets done > I am the doer. Ridiculous.


Developer discovers context switching tax


context switching is amateur stuff. he needs additional 4 terminals to watch over the 4 that are doing the work and just alert him when they misbehave


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: