Comment

Comment by snicker7

> why should each class define and own its own methods?

State mutations. That's it. By ensuring that your data can only be mutated by a your API, it can never get "corrupted".

parent snicker7 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton