Comment

Comment by joshlemer

Given the strongly typed flavour of data oriented programming, I wonder if you have any thoughts on the "proliferation of types" problem. How to avoid, especially in a nominally typed language like Java, an explosion of aggregate types for every context where there may be a slight change in what fields are present, what their types are, and which ones are optional. Basically, Rich Hickey's Maybe Not talk.

    record Make(makeId, name)
    record Model(modelId, name)
    
    record Car(make, model, year)
    record Car(makeId, modelId, year)
    record Car(make, model)
    record Car(makeId, modelId)
    record Car(make, year)
    record Car(makeId, year)
    record Car(make, model, year, colour)
    record Car(makeId, modelId, year, colour)
    record Car(year, colour)
    
    ....
parent joshlemer 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton