arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2202.09229cs.PL
收藏

图形与绘图:原则性程序设计的可视化方法

Figuring and Drawing: A Visual Approach to Principled Programming

Elpida Keravnou-Papailiou

摘要:

在本科计算机科学课程中的一个长期挑战是计算机编程的教与学。通过本文这是一篇关于编程的文章,我们的目标是促进现有的体系结构,方法和哲学的过剩,通过讨论我们的方法在教学原则性编程本科生的一个具体特点,在他们的第一学期的研究,即利用图片,基于文本和基于光栅的图形。尽管给定的课程在其三十年的教学过程中在所使用的程序设计语言(Miranda,C,C++,Java)和范式(函数式,命令式,面向对象,过程和面向对象的组合)方面有了很大的发展,但所讨论的可视化功能一直保持并稳步加强。我们列出抽象,问题分解和合成,信息隐藏,可重用性,模块化和可扩展性作为解决问题和算法思维的关键原则。这些原则与所提倡的问题分解、模式识别、模式概括和算法设计等计算思维技术密切相关。我们的目标是让我们的学生熟悉所有上述原则,通过实际解决问题。我们正在进行的调查是,图片的问题域是否对这一目标有价值的贡献。此外,一个附加值是,学生得到一个直观的,经验的方式,计算复杂性一瞥。所提出的工作是不相关的可视化编程,因为学生写他们的程序文本,而不是图形;这是他们的程序,这是在视觉形式的输出。我们的方法虽然是松散的海龟图形的经典范例。然而,我们的重点是计算机科学专业的学生,他们应该能够设计和建造乌龟和其他物体,而不仅仅是使用它们。事实上,编程原理课程帮助他们做到这两点,并欣赏产生相同视觉输出的多种算法方法。目前,给定的编程原则是从过程,基于过程和面向对象,基于概念的角度来处理的,课程使用Java语言。通过所提出的示例问题,我们的目的是显示适当的视觉域的图片,以支持学习的原则性编程。图片的问题域非常丰富,有很多潜在的例子可以借鉴。此外,据文献报道,女生可能会表现出更高的兴趣,对视觉问题域在编程类,相对于其他问题域。我们计划在我们更广泛的目标,以鼓励更多的女性遵循大学学习计算机科学的背景下,调查这一猜想,在本文中,只有粗略的发现,承担一些关系到什么是在文献中报道。

英文摘要:

A standing challenge in undergraduate Computer Science curricula is the teaching and learning of computer programming. Through this paper which is an essay about programming, we aim to contribute to the plethora of existing pedagogies, approaches and philosophies, by discussing a specific feature of our approach in teaching principled programming to undergraduate students, in their first semester of studies, namely the utilization of pictures, both text-based and raster-based graphics. Although the given course has evolved substantially over the thirty years of its delivery regarding the programming languages (Miranda, C, C++, Java) and paradigms (functional, imperative, object-oriented, combination of procedural and object-oriented) used, the discussed visual feature has been maintained and steadily strengthened. We list abstraction, problem decomposition and synthesis, information hiding, reusability, modularity and extensibility as key principles of problem solving and algorithmic thinking. These principles are closely aligned with the advocated computational thinking techniques of problem decomposition, pattern recognition, pattern generalization and algorithm design. We aim for our students to familiarize themselves with all the above principles through practical problem solving. Our ongoing inquiry has been whether the problem domain of pictures is contributing valuably towards this aim. Moreover, an added-value is that students get a glimpse of computational complexity in a visual, empirical way. The presented work is not related to visual programming, since the students write their programs textually and not graphically; it's the output of their programs which is in visual form. Our approach though is loosely related to the classical paradigm of turtle graphics. However, our focus is Computer Science majors, who should be able to design and build turtles and other objects and not just use them. Indeed, the programming principles course helps them to do both and also to appreciate the multitude of algorithmic ways for producing the same visual output. Currently the given programming principles are approached both from a procedural, process-based and an object-oriented, concept-based perspective and the course uses the Java language. Through the presented example problems, we aim to show the appropriateness of the visual domain of pictures for supporting the learning of principled programming. The problem domain of pictures is abundantly rich with potential examples to draw from. Moreover, as reported in the literature, female students may show higher interest towards visual problem domains in programming classes, in relation to other problem domains. We plan to investigate this conjecture in the context of our broader aim to encourage more females to follow university studies in computer science; in this paper only a cursory finding is presented, that bears some relation to what is reported in the literature.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑