【24h】

Embryonic Object versus Mature Object: Object-Oriented Style and Pedagogical Theme

机译:胚胎对象与成熟对象:面向对象的风格和教学主题

获取原文
获取原文并翻译 | 示例

摘要

Traditional approaches to object-oriented style emphasize classes with a basic set of constructors and a minimal set of methods that when combined permit the full potential of the instance objects to be realized. This object-oriented style is probably modeled on the style used in mathematics and logic to develop a system based on a minimal set of axioms and operations. The consequences of this style both in practice and in pedagogy are that objects enter into existence in an embryonic state and must be nurtured to maturity by a sequence of method calls that tweak behavior and/or add data. Although this minimalist approach is useful in the first stages of teaching objects and in exploratory design, we suggest that most designs should evolve towards building classes with a rich set of constructors and methods so that the instance objects may be born mature, that is, ready to use in the program without further tweaking. In particular, we believe that if students are taught to design in this manner, then they will be more effective both as students and as computing professionals. The ideas in this article have developed from our experience in designing the Java Power Tools (JPT) and in applying these tools to build many labs and demo programs. We found that using the traditional minimalist design approach hindered our ability to rapidly develop interesting applications. Gradually, we evolved both the tools and the examples to be far richer and have found that our development time has been dramatically reduced. We believe that those who teach objects may be interested in these principles even if they choose to work with entirely different tools and examples.
机译:传统的面向对象风格的方法强调具有基本构造函数集和最小方法集的类,这些类组合在一起后便可以实现实例对象的全部潜能。这种面向对象的样式可能以数学和逻辑中使用的样式为模型,以基于最少的公理和运算集开发系统。这种样式在实践中和在教学法中的后果是,对象以胚胎状态存在,必须通过调整行为和/或添加数据的一系列方法调用将其培养到成熟。尽管这种极简方法在教学对象的最初阶段和探索性设计中很有用,但我们建议大多数设计应朝着使用一组丰富的构造函数和方法构建类的方向发展,以便实例对象可以天生成熟,即可以使用无需进一步调整即可在程序中使用。尤其是,我们相信,如果教会学生以这种方式进行设计,那么他们作为学生和计算机专业人员都将更加有效。本文的想法是根据我们在设计Java Power Tools(JPT)以及将这些工具应用于构建许多实验室和演示程序方面的经验得出的。我们发现使用传统的极简设计方法阻碍了我们快速开发有趣的应用程序的能力。逐渐地,我们对工具和示例进行了改进,使其变得更加丰富,并且发现我们的开发时间已大大减少。我们认为,即使对象选择使用完全不同的工具和示例,那些教对象的人也可能对这些原理感兴趣。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号