3 ms·
A lot of the criticisms here show that many of you haven't worked with functional programming languages. All of which have pipe functions. This is fine, you can
by aaomidi 5y ago
A lot of the criticisms here show that many of you haven't worked with functional programming languages. All of which have pipe functions. This is fine, you can be an amazing programmer without ever touching functional programming. However, be a little bit more open to it, functional code is just another tool to use like every other tool. For some problems it's *the* solution. For others, it makes everything more complex.
This doesn't make code less readable, you're just not used to reading code like this.
After a week or two you realize how awesome this is. Piping has been a part of consoles forever now, what's wrong with bringing them into code?
- hn_throwaway_99 5y agoTotally agree. I commented elsewhere that I had someone of a similar reaction when Java introduced streams, in that the common paradigm is to just call successive operations on the stream you're processing. It took a while for my brain to get used to it, but once it did I found it so much easier to read, and much more efficient to write.
- bcrosby95 5y agoJava streams added no new syntax to the language. It's just a library. Unlike this proposal.
- ledauphin 5y agoI couldn't agree more. I feel like Hacker News is turning into a place where, especially for discussion of "popular" programming languages, the commenters seem to be largely those who don't have a solid foundation in the specific topic that's being discussed, but seem to believe they're experts because they've written a lot of code and have strong opinions on what code should look like. Conversations about more esoteric languages seem to attract the level of discourse HN is otherwise known for.
- 7sidedmarble 5y ago>Hacker News is turning into a place where, especially for discussion of "popular" programming languages, the commenters seem to be largely those who don't have a solid foundation in the specific topic that's being discussed, but seem to believe they're experts This is just HN in a nutshell. I've been wanting to write a blog post for a while about this topic. I have a pet theory that the HN 'feature' of not implementing direct comment reply push notifications (ostensibly a feature to dissuade flame wars) leads people on HN to make very strong statements they often can't defend. I think it's ultimately a net negative for the community. I get not wanting flame wars, but when you make strong statements on platforms that have the tools for better comment section engagement, you often have to defend your statements. I think this is a good thing.
- pjmlp 5y agoMy first FP languages were Lisp, Caml Light and also used Prolog, have used most of the cool HN FP languages to some extent. Doing maintenance of clever FP tricks isn't the same as one liners shell scripts.
- deleted 5y ago[deleted]