logoalt Hacker News

psychoslavetoday at 9:35 AM2 repliesview on HN

Could this be elaborated?


Replies

ilveztoday at 10:18 AM

ls | grep file.txt vs ls().grep("file.txt")

show 1 reply
ifh-hntoday at 12:56 PM

Like the other commenter elaborated for me. My mental model of how programs are composed much prefers the pipe symbol rather than chaining. There's also less typing too. But each to their own.

Apparently a number of people disagree with me, or the way I initially expressed myself, judging from the amount of downvotes I've had. Weird how that happens; tabs and spaces.