You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's kind of tricky to explain the real domain, so it is a simplified version with some assumptions.
I have an ORM object (name it Postfix) which is widely used by other ORM objects, but knows nothing about them. In addition, it provides some useful complex logic.
There is some ORM object, which contains a list of Postfix. In serialized objects, I need nested prefixes with a result of useful complex logic.
I managed to accomplish that, but the code is very weird and unreadable.
I think this is probably the best approach. You could probably replace the list(map(...lambda logic with a comprehension, otherwise I don't see a way to make this cleaner.
It's kind of tricky to explain the real domain, so it is a simplified version with some assumptions.
I have an ORM object (name it Postfix) which is widely used by other ORM objects, but knows nothing about them. In addition, it provides some
useful complex logic
.There is some ORM object, which contains a list of Postfix. In serialized objects, I need nested prefixes with a result of
useful complex logic
.I managed to accomplish that, but the code is very weird and unreadable.
Are there any ways to make it simpler?
The text was updated successfully, but these errors were encountered: