News for hackers. Stuff that matters.
Re:Functional Programming – How and Why by Throwaway234590 on Monday January 02, 2023 @01:03AM (#34214872)
Exactly. It's why this forum is toxic, if you disagree with the techbro herd, you get downvoted.
Re:Functional Programming – How and Why by jemmyw on Monday January 02, 2023 @01:18AM (#34214938)
I didn't even disagree with anything, just asked a question! I'm not anti functional or anti imperative, they're both fine.

My point was I don't think it's functional to chain method calls in JavaScript. Maybe it is, although I think you'd very easily run into an unintentional issue, i.e. call .sort() on the array which mutates it.

Re:Functional Programming – How and Why by Throwaway234590 on Monday January 02, 2023 @02:54AM (#34215454)
It's a hairpulling experience trying to write functionally in javascript. All those imperative apis like sort as you mention. I will sometimes copy as in [...xs] but I always feel like I am swimming against the current. Plenty more to say but it appears this node has been flagged, it appears HN censors criticism. Saddening.
Re:Functional Programming – How and Why by freedomben on Monday January 02, 2023 @12:58PM (#34221174)
Being dead doesn't censor anything. After all, I'm here reading and replying 10 hours later. It just makes it invisible to people without "Show dead" enabled.

Your post most assuredly got down voted to death for calling "HN" "toxic." That's not constructive at all, and it inflames emotions which is the opposite of HN's goals of technical discussion.

I've taken many positions against the HN herd and yes many people do downvote on disagreement (which I agree they shouldn't), but given a bit of time it will typically even out. The new vouch system helps this even more.

Re:Functional Programming – How and Why by vram22 on Saturday January 07, 2023 @07:01PM (#34294460)
>Being dead doesn't censor anything. After all, I'm here reading and replying 10 hours later. It just makes it invisible to people without "Show dead" enabled.

IMO, effectively, it does censor it; not de jure, but de facto. (Hope I used those terms right, IANAL.)

Because my guess is that not many HN users know about the "showdead" setting. After all, not everyone is into tinkering with systems, tweaking settings, etc., even among developers, who I guess form a sizeable percentage of users here. Some of them just want to use the software as needed and get on with their lives, even though they may be technical.

Re:Functional Programming – How and Why by dang on Monday January 02, 2023 @04:59PM (#34224258)
Please don't do this here. It only makes things worse.

https://news.ycombinator.com/newsguidelines.html