david-j-vujic | 1 year ago | on: Ask HN: How do you customize Emacs for Python?
david-j-vujic's comments
david-j-vujic | 1 year ago | on: Ask HN: How do you customize Emacs for Python?
In the docs, you will find more about this setup with IPython integration, if the code evaluation things is something you look for too.
david-j-vujic | 2 years ago | on: Runestone Monorepo and Server Structure (Python)
david-j-vujic | 2 years ago | on: The last Python Architecture you will ever need?
david-j-vujic | 2 years ago | on: The last Python Architecture you will ever need?
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.
david-j-vujic | 2 years ago | on: The last Python Architecture you will ever need?
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!
david-j-vujic | 2 years ago | on: The last Python Architecture you will ever need?
david-j-vujic | 2 years ago | on: The last Python Architecture you will ever need?
david-j-vujic | 2 years ago | on: The last Python Architecture you will ever need?
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.
david-j-vujic | 2 years ago | on: The last Python Architecture you will ever need?
david-j-vujic | 2 years ago | on: The last Python Architecture you will ever need?
david-j-vujic | 2 years ago | on: Understanding Polylith through the lens of Hexagonal architecture
david-j-vujic | 2 years ago | on: Guido van Rossum on his favorite Python IDE [video]
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).
david-j-vujic | 2 years ago | on: The Pain and “Poetry” of Python
david-j-vujic | 2 years ago | on: The Pain and “Poetry” of Python
david-j-vujic | 2 years ago | on: Just Use Dictionaries (Python)
If you were about to pass on the result from a calculation to somewhere else, a dictionary or list would probably be a good idea. You probably wouldn’t want the entire system be aware of a Pandas specific data type.
david-j-vujic | 2 years ago | on: Just Use Dictionaries (Python)
david-j-vujic | 2 years ago | on: Just Use Dictionaries (Python)
I usually would prefer having everything behind the endpoint (such as Pydantic schemas & FastAPI) as simple dicts and lists.
david-j-vujic | 2 years ago | on: Just Use Dictionaries (Python)
Would you do the same if you were about to make changes in a code base with only dictionaries and lists in it? :)
david-j-vujic | 2 years ago | on: Just Use Dictionaries (Python)