Better HN
topnewbestaskshowjobs
Log inSign up

david-j-vujic

24 karma · joined Jul 8, 2023 (3y ago) · 54 submissions

Submissions

comment 2y ago · link · parent

Thank you! I will try these ones out.

comment 2y ago · link · parent

I’m using Elpy because it comes with great code evaluating features (sending expressions to the REPL and such). In this config there’s also auto discovery of virtual environments. Adding to that: black, flake8 (not yet added ruff).

In the docs, you will find more about this setup with IPython integration, if the code evaluation things is something you look for too.

https://github.com/DavidVujic/my-emacs-config

3.

Polylith Architecture(mychen76.medium.com ↗)

1 points · by david-j-vujic · 2y ago · discuss

4.

Write Less Code, You Must(davidvujic.blogspot.com ↗)

1 points · by david-j-vujic · 2y ago · discuss

5.

Python Monorepo Visualization with Polylith(davidvujic.blogspot.com ↗)

2 points · by david-j-vujic · 2y ago · discuss

6.

Simple and Developer-Friendly Python Monorepos with Poetry, Hatch or PDM(davidvujic.blogspot.com ↗)

1 points · by david-j-vujic · 2y ago · discuss

comment 2y ago · link · parent

Here's docs about Polylith for Python: https://davidvujic.github.io/python-polylith-docs/

8.

Runestone Monorepo and Server Structure (Python)(medium.com ↗)

1 points · by david-j-vujic · 2y ago · 1 comment

9.

A simple and scalable Python project structure(davidvujic.blogspot.com ↗)

1 points · by david-j-vujic · 2y ago · discuss

10.

The Lost Balkan Tapes: A Christmas Story(davidvujic.blogspot.com ↗)

2 points · by david-j-vujic · 2y ago · discuss

comment 2y ago · link · parent

I agree! In Polylith, the built artifact(s) is an implementation detail and you can decide what to build (a set of Microservices or a monolith) when you are ready for it.

comment 3y ago · link · parent

Even though you have clear boundaries between microservices, the source code is likely possible to be reused by other services. You probably have common setup (like config loaders, logging and auth) and, depending on the use case, probably also parsers and data reading features that would be duplicated or put in an external libraries.

Yes, Microservices is about boundaries, data and the organizational structure. But there is code that makes these things happen and much of that can be reused.

comment 3y ago · link · parent

Yes, to me it sounds like a misunderstanding. Let's imagine that you have code put in libraries, that you can use in more than one place. For any mainstream project, you would probably have these in separate git repos and published to a code repository (such as PyPI or Clojars).

With Polylith, all of that code lives in the same git repo, and you don't publish them to a repository because you have it "right there". For Python, you reference the reusable code just as any other Python namespace package. Basically the same thing for a Clojure namespace.

Everything isn't sharing everything, but several different services or apps could be using one and the same brick (as it is called in Polylith). A brick is a small isolated part of the code (usually much smaller than a library, that is an entire feature). I hope this has cleared some things up!

comment 3y ago · link · parent

Thank you for the feedback, I’ll give it a try to do something like you suggest.

comment 3y ago · link · parent

This is useful feedback, thank you! I will try to clear up the Python specific docs (that part of Polylith is on me).

comment 3y ago · link · parent

Good point! From my experience, having different versions of third-party dependencies is a trade-off when having code in several repos. I've been in organizations where teams have needed to coordinate upgrades of things like logging & error handling tooling, to utilize the tooling across the services. If this would live in one and the same repo (and ideally in one reusable part of the code) it wouldn't be such a big thing.

Services living in a Polylith repo are deployed independently, that's a big part of the tooling support and how code is structured according to the achitecture.

comment 3y ago · link · parent

The main usage is to be able share and reuse code in a very simple way. The code lives in a monorepo, and that means you won't need to extract shared code into external installable libraries. You just pick-and-choose the code needed for each microservice or app. The tooling is useful for visualization, deployment and when adding new "bricks" with templating.

comment 3y ago · link · parent

I have tried hard to write docs that explain the architecture and the usage of the tool primarily in the Python space. You will find it here, and if you prefer videos there are links in there too: https://davidvujic.github.io/python-polylith-docs/

19.

The last Python Architecture you will ever need?(davidvujic.blogspot.com ↗)

32 points · by david-j-vujic · 3y ago · 25 comments

20.

A Coding Copilot(davidvujic.blogspot.com ↗)

1 points · by david-j-vujic · 3y ago · discuss

comment 3y ago · link · parent

A well thought-through and enlightening article about Software Architecture - the Hexagonal (aka Ports & Adapters) and Polylith in specific. Love it!

22.

Software and Projects – A Misconception(davidvujic.blogspot.com ↗)

2 points · by david-j-vujic · 3y ago · discuss

comment 3y ago · link · parent

Sounds like REPL Driven Development to me :)

There's a couple of things you can do to configure the REPL (like auto-reloading modules that has changed during the session). I submitted a link to my blog post about this subject here: https://news.ycombinator.com/item?id=37394439 (hope it is okay to cross-post like this).

comment 3y ago · link · parent

There's a plugin for Poetry that will add tooling support for the Polylith Architecture (I'm the maintainer of that plugin). Here's the documentation about the Python-specific tool and you will also find information about the architecture in general: https://davidvujic.github.io/python-polylith-docs/

comment 3y ago · link · parent

Another good thing with Poetry is that it enables tooling support for the Polylith Architecture (as plugins). :)

26.

Joyful Python with the REPL (REPL Driven Development)(davidvujic.blogspot.com ↗)

2 points · by david-j-vujic · 3y ago · discuss

12