Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A Sketch of the Biggest Idea in Software Architecture (2022). Parent comment
You could have a really skinny interface (one method call only):
class TaxLogic { data = iDatabase.loadOneDatabaseRow(id); process(data); } interface IDatabase { loadOneDatabaseRow(id); } class PostgresDb implements IDatabase { loadOneDatabaseRow(id) {...} }
There are no comments on this comment yet.
You could have a really skinny interface (one method call only):
But this violates ports and adapters because the logic is on the outside and the database is on the inside.