Comment

Comment by simondotau

I think that journey only feels inevitable if you start from the assumption that the application object model is the centre of the system. An alternative journey:

Hmm – I should model the data according to the domain, not according to the shape my application objects happen to want.

Hmm – maybe “related objects” are not things to auto-fetch, but relationships the database engine is already built to handle.

Hmm – now that my schema matches my domain, complex problems can be solved with a few lines of SQL, saving me hundreds of lines of application code.

Hmm – in fact, now I realise that many important operations can be performed without round-tripping the data through application code at all, saving me thousands of lines of application code.

parent simondotau 4 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton