News for hackers. Stuff that matters.
Re:Why study functional programming? (2012) by jrvarela56 on Tuesday August 02, 2022 @06:06PM (#32324874)
The argument is that this default forces you into creating DSLs for basic data manipulation (it's all [] and {} in the end).

You end up with 'custom' logic with custom naming that increases the overhead of using your codebase. That's a long way of saying your code is less reusable.

In DOP/FP land, you create functions to manipulate basic data types and your domain-specific knowledge ends up encoded as basic data types (say you want validations on a model, you'd encode those as a {} and create functions to validate vanilla []/{}).

There are no comments on this comment yet.