Delphi快速应用程序开发中的可重用性最佳实践 [英] Best Practice in Delphi Rapid Application Development in term of Reusability

查看:84
本文介绍了Delphi快速应用程序开发中的可重用性最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



对于我来说,我创建了一个模板项目,包括启动屏幕,默认组件的主数据模块和所有数据感知子程序(打开,关闭,查询,默认情况下无法打开数据库等),并将模板保存在我的存储库中。 (我使用我自己的框架和项目中的单位,所以当我选择:新项目和选择我的模板时,一切都会自动创建。)



问题: p>


  1. 有什么其他方法可以使用Delphi来提高可重用性?

  2. 什么是免费的开源框架(像Jedi )/ IDE PLugins(如GExpert),您认为最好使用Delphi?

如果此问题已被问过,请原谅。

解决方案

对于Q1:使用成熟的图书馆,为您提供咕噜作品:DevExpress -or-用于UI的TMS(JEDI的JVCL也很好),用于报告的FastReport。选择一个良好的连接框架(它取决于您的数据库后端),以便有许多日常任务解决OOTB。另外,如果您熟悉OPF,请查看InstantObjects。我听说这很好



对于Q2:请参阅cnpack.org中的IDE功能



此外将有助于缓慢构建自己的专用框架/工具集。不是很大的东西,而是作为一种快速的方法来完成一些事情。始终尝试设计重复使用,即使开始需要更长时间。


How to improve our productivity when starting new project using Delphi?

For me, I create a template project including splash screen, primary data module with default component and all data-aware subroutines (open, close, query, default when failed to open DB, etc), and save the template in my repository. (I use all my own frames and unit in the project, so everything always be created automatically when I choose : New Project and choosing my template.)

Questions:

  1. Is there any other way to improve reusability using Delphi?
  2. What free open source framework (like Jedi) / IDE PLugins (like GExpert) you think is best to use using Delphi?

Pardon me if this question has been asked before.

解决方案

For Q1: Use mature libraries which do for you the grunt work: DevExpress -or- TMS for UI (JEDI's JVCL also is very good), FastReport for reporting. Choose also a good connectivity framework (it depends on your db back-end) in order to have many day-to-day tasks solved OOTB. Also, if you're familiar with OPF have a look at InstantObjects. I heard that's very nice.

For Q2: See the IDE enchancements from cnpack.org

Also it will help to slowly build your own specialized framework/set of tools. Not something very big but as a quick way to get some things done in your way. Always try to design for reuse, even if it takes a little bit longer in the beginning.

这篇关于Delphi快速应用程序开发中的可重用性最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆