4 ms·
> (~'objects are custom languages on top of data'; how is that a bad thing - that's literally the point of the activity of programming, creating domain-specifi
by jcelerier 4y ago
> (~'objects are custom languages on top of data';
how is that a bad thing - that's literally the point of the activity of programming, creating domain-specific sublanguages to manipulate data in a way that is readable by domain experts of this specific data
- jrvarela56 4y agoThe 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 []/{}).