News for hackers. Stuff that matters.
Re:Why is learning functional programming so damned hard? (2... by emodendroket on Sunday August 15, 2021 @07:40PM (#28193588)
To the extent it’s considered good practice now I think FP deserves a lot of credit.
Re:Why is learning functional programming so damned hard? (2... by andrekandre on Sunday August 15, 2021 @08:35PM (#28193829)
i see, thanks for the reply

one reason i asked is because while i don't really come from an FP background (as a student, i started with c/obj-c), after working in the field it was always appaling at how many variables and global state people would put in their code and how many side-effects were present... its just something that seemed so obvious even in "oop-land" but maybe im just an outlier...

Re:Why is learning functional programming so damned hard? (2... by emodendroket on Sunday August 15, 2021 @08:36PM (#28193841)
I think that's been recognized for global state for a long time, but I think that mutating local or instance variables/collections wasn't really thought of the same way as much when I started doing this like 8 years ago.