4 ms·
In this discussion† from yesterday, the task of finding the longest path below a directory came up. You can see both a clumsy solution, using a named pipe and i
by cynwoody 13y ago
In this discussion† from yesterday, the task of finding the longest path below a directory came up. You can see both a clumsy solution, using a named pipe and iterative Python, and an elegant one-liner (in a reply), using an anonymous pipe and functional Python.
This is not to say named pipes do not have their uses. Just that you should think before reaching for them first.
†https://news.ycombinator.com/item?id=6510640 https://news.ycombinator.com/item?id=6510640