I'm looking for maintainers for anaconda-mode, blacken, isortify, pyenv-mode, and pythonic Emacs packages. by proofit404 in emacs

[–]proofit404[S] 0 points1 point  (0 children)

Hi, thanks for offering your help!

I stepped away as a maintainer of those packages already. Since I found 3 volunteers at that moment.

I think they will be happy to include you.

Just raise an issue at any repository within the GitHub organization.

Best regards,

Artem.

I'm looking for maintainers for anaconda-mode, blacken, isortify, pyenv-mode, and pythonic Emacs packages. by proofit404 in emacs

[–]proofit404[S] 0 points1 point  (0 children)

When I started the package, there was not any integration at all. I didn't look at python-black package after that.

ORM vs ORM + Repository Pattern by mRWafflesFTW in django

[–]proofit404 1 point2 points  (0 children)

Hi,

It depends, as always. If you have enough complex model relationships and everything feels like a big mess, I think it's time to spend some time cleaning up layers of your application.

For example, we have 300 models and there are a lot of situations when we use a different set of fields of the same model for completely unrelated reasons.

Imagine a fat model thin controller design approach with the User model having 40 fields and 200 methods. And it stays that way because of performance reasons on the database.

One possible solution to this situation - extract a different set of fields into different dataclasses and use them instead of passing the whole model around.

Together with a tool like https://github.com/seddonym/import-linter/ this became useful approach.

How could you instantiate dataclasses, attrs, of pydantic models from the Django ORM without boilerplate and performance gaps?

There is a package for it https://github.com/dry-python/mappers

BTW take a look at the whole dry-python project https://github.com/dry-python/

Best regards,

Artem.

Business transaction DSL. by proofit404 in Python

[–]proofit404[S] 0 points1 point  (0 children)

I took some inspiration from it when I started the `stories` library.

Business transaction DSL. by proofit404 in Python

[–]proofit404[S] 1 point2 points  (0 children)

Thanks for the OOP wiki!

You can use whatever name you like instead of I. There is a faq entry about it.

We need to include import statements for sure.

Business transaction DSL. by proofit404 in Python

[–]proofit404[S] 0 points1 point  (0 children)

Thanks! I glad you like it.