Hacker News new | ask | show | jobs
by mpweiher 1052 days ago
"generating architecture diagrams directly from the code - the source of truth." becomes a lot easier when the source code is the architecture.

When you can express the architecture directly in the code using an architectural programming language.

https://objective.st

1 comments

Interesting link you shared there.

Can you link to a real-world example of using Objective-S to specify an architecture?

The "scripts" directory in the repo has a good number of samples.

Note that I wouldn't call it "specifying an architecture", I would call it "programming the system using architecture-appropriate connectors".

For example, a task JSON backend:

https://gitlab.com/mpwmo/ObjectiveSmalltalk/-/blob/master/sc...

First defines a Task (model) class, then a scheme-handler for storing those tasks (in memory), and finally configures + hooks up those objects to create+run the actual backend.