News for hackers. Stuff that matters.
Re:Ask HN: What overlooked class of tools should a self-taug... by tra3 on Wednesday May 15, 2019 @02:44PM (#19922441)
Thank you so much for a concrete example. I need to think about this some more. Clearly the code make sense, but in a wider context, can you have a banana without a jungle? I'm dabbling with some functional programming but I definitely have more experience with oop, so what you're saying is difficult for me to grasp, but the benefits are hard to ignore.
Re:Ask HN: What overlooked class of tools should a self-taug... by crimsonalucard on Wednesday May 15, 2019 @07:38PM (#19924821)
There are downsides to FP as well. I am not advocating one over the other. But there is a concrete theoretical reason why FP is more modular, reuseable and organized than OOP code.

Smalltalk is possibly the only OOP language that lets objects be compose-able and modular. Check out Pharo if you're interested. If you learn smalltalk well enough, you could apply its principles to traditional OOP languages and gain the modularity benefits.

Re:Ask HN: What overlooked class of tools should a self-taug... by profalseidol on Thursday May 23, 2019 @01:00AM (#19988639)
> There are downsides to FP as well.

I've seen Java 8 functional stuff get unreadable.

But other than that, is there any other concrete downside?

For using Pure Functions, I don't see any downside to this. Aside from it being impossible to use for outside the program side-effects like IO to device.