动态 UI 与静态 UI

发布于 2024-07-14 18:25:28 字数 180 浏览 6 评论 0原文

我一直在想,在什么时候我应该放弃静态数据输入表单的便利性和设计器支持的动态 UI,从而消除大量代码重复?

编程世界中似乎存在一个冲突,人们不断尝试消除代码重复以提高可维护性,但当涉及到表单时,一切都被排除在外,所有内容都被显式添加到表单中。

我应该寻找哪些迹象来知道何时该让设计师远离尘埃并创建动态 UI?

I've been wondering, at what point should I give up the convenience of a static data entry form with designer support for a dynamic UI which removes a lot of code duplication?

There seems to be a conflict in the programming world where people constantly try to remove code repetition to improve maintainability and yet when it comes to forms, that all goes out of the window and everything gets added explicitly to the forms.

What signs should I look for to know when it's time to leave the designer in the dust and create a dynamic UI?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

思念满溢 2024-07-21 18:25:28

动态 UI 对于某些类型的数据和某些业务流程来说是很好的。

大多数情况下,一旦设置了任何级别的复杂性,它们看起来就会很丑陋。

我使用模型来定义由以下内容组成的动态表单:组框架、标签、文本框、数字框、选项按钮和复选框WPF

它可以很好地填充基本数据以控制模板化文档和目录创建,

但我认为它不适用于具有复杂层次结构等的典型业务数据

Dynamic UI are fine for some types of data and some business processes

Mostly they look ugly once any level of complexity sets in

I use a model to define dynamic forms made from : group frame, labels, textboxes, numberboxes, option buttons, and checkboxes in WPF

It works fine for filling in basic data to control templated document and catalog creation

But I don't think it would work well for typical business data with complex hierarchies etc

汐鸠 2024-07-21 18:25:28

我可以谦虚地建议 Metawidget 吗?

正如您所说,它不会尝试“生成整个用户界面”。 它只是一个“在具有大量共同点的复杂形式系统中生成重复代码”的系统。

如果您有机会看一下,我很乐意听到您在我们的论坛上的反馈。

May I humbly suggest Metawidget?

It does not, as you say, try and "generate an entire UI". It is just a system to "generate duplicate code in complex systems of forms with a large amount in common".

If you get chance to take a look, I'd love to hear your feedback on our forums.

青芜 2024-07-21 18:25:28

UI 必须针对用户工作流程进行优化,必须使数据输入方便,并且必须看起来美观,为现实世界中复杂的事物自动生成这样的 UI 即使不是不可能,也是很困难的。

A UI has to be optimized to the user workflow, it has to make data entry convenient and it has to look nice, automatically generating such a UI for anything with real-world complexity is difficult if not impossible.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文