Re:Show HN: Polylith – the last architecture you will ever n...
by logarhythm on Tuesday December 01, 2020 @01:42AM
(#25263004)
We've simplified the architecture, by reducing the number of concepts down to just three: components, bases, and projects. The tool is simpler, gives faster feedback, and a better visualisation of your projects, due to (amount other design changes) switching from Leiningen to tools.deps.
The original version of the tool used: - Leiningen to compile and build the artefacts - symlinks to keep the code in one place (but allow for reuse in multiple artefacts) - "workspace interfaces" (empty component interfaces) to guarantee the decoupling between components
The new version of the tool uses: - tools.deps to build the artefacts and remove the need for symlinks - static code analysis to remove the need for "workspace components"
Re:Show HN: Polylith – the last architecture you will ever n...
by robto on Wednesday December 02, 2020 @09:28PM
(#25284550)
Nice! I went through the poly tool readme and I'm really impressed with the improvements. One thing I don't see highlighted that I'm curious about: have you used it to build cljs projects? Since shadow-cljs has deps.edn integration, I think it could theoretically work, though the repl might be a bit twitchy.
I was really impressed with how it encouraged decoupling, and it has positively affected how I write code and think about dependencies.