#12 Make dataclasses for most or all objects for easier instantiation and discovery

Mở
%! (template.HTML=4 năm trước cách đây)đang mở bởi stan · 0 ý kiến

The dict-representation great for making low-complexity VENs, for integrating with other systems, and for putting into the Jinja2 templates. However, we could help developers to put these objects together if we were to provide dataclasses for all of them that inherit from dict. This way, the developer can choose whether they want to use object-notation or dict-notation, and their IDE can help them filling in all the required and optional properties.

When parsing incoming XML messages, we should also map all incoming properties onto these objects so they can transparently be accessed in both ways.

The dict-representation great for making low-complexity VENs, for integrating with other systems, and for putting into the Jinja2 templates. However, we could help developers to put these objects together if we were to provide dataclasses for all of them that inherit from dict. This way, the developer can choose whether they want to use object-notation or dict-notation, and their IDE can help them filling in all the required and optional properties. When parsing incoming XML messages, we should also map all incoming properties onto these objects so they can transparently be accessed in both ways.
Đăng nhập để tham gia bình luận.
Không có nhãn
Không có Milestone
Không có người được phân công
1 tham gia
Đang tải...
Hủy bỏ
Lưu
Ở đây vẫn chưa có nội dung nào.