说明:软件工程系列文章以软件工程(第十版)为教材,如果有内容想要交流可以私信讨论,文章内容可能部分涵盖截图,如有侵权,可以联系删除。
1.什么是软件工程?
从工程学的角度上来看,软件工程就是有组织、有纪律并且使用久经考验的方法来制造东西;
从软件角度看,软件工程包含了代码编写和数据设计(data base schemas 数据库架构);
Software Engineering is an engineering disciplinewhich is concerned with all aspects of software production.
软件工程是一门涉及到软件生产所有方面的工程学科。
2.为什么软件工程很重要?
easy system:one developer,one user,experimental use only
hard system:multiple developers,multiple users,products
一个简单系统的经验可能会带来误导性,所以单独某个人的方法不能够适用于大规模的软件开发。
所以软件系统的复杂性也就决定了软件工程非常重要。
(Software Engineering is about managing this complexity.)
软件出现错误非常严重:(1)Software controls safety critical systems
(2)Software protects sensitive data
(3)Software is involved in systems which handle money
因此,软件工程要保证生产一个有很低错误率的软件,而且要通过测试证明软件有很低的错误率。
3.软件工程任务:
Step1:定义需求——做什么?
Step2:设计产品——怎么做? UI design,software module design,data design
Step3:实施和测试——写代码,测试,验证
管理流程——软件项目管理
4.Software engineering is concerned with theories, methods and tools for professional software development.
软件工程涉及到理论、方法和专业的软件开发工具。
5.软件和机器学习的联系
(1)对于机器学习AI类型模型的软件:
具有内部状态的网络(A network with internal state) 比如神经网络
(2)Training and the net itself is the software. 训练和网络都是软件
(3)可能的影响:模型(尤其是神经网络模型)及其复杂难以理解
网络的结果是概率性的,所以有时依据网络做出的决定可能是错误的
6.软件工程师应该:
(1)采用系统(systematic)和有组织(organised)的方法来完成他们的工作
(2)根据具体情况(要解决的问题、development constraint发展约束、可用资源)使用恰当的工具和技术
7.Software Process 软件过程
(1)A Software Process is a set of activities whose goal is the development or evolution of software. 软件过程是一系列目标是软件发展和演化的活动
(2)软件过程包括:
specification 规格 :系统应该做什么以及系统的开发限制
规格是一份文档或描述,用于详细说明软件系统或组件的需求、设计、功能和行为。
规格在软件开发过程中起到了关键作用,它可以包含各种信息,以确保开发团队、测试团队和其他相关利益相关者对软件系统的期望和要求有清晰的理解。
development:软件系统的生产(design and implementation)
validation:检查软件是否符合客户的需求
evolution:根据需求不断调整软件
8.好的软件具备的属性
软件应该能够提供给用户需要的功能和性能,还应该是可维护的、可信的、高效的、可用的。
下面我们来具体说说这几个属性:
(1)Maintainability 可维护性:
Software must (easily) evolvable to meet changing needs
软件应该容易进行修改、扩展和维护,以满足新的需求和修复已知问题。
(2)Dependability 可信性:
Software must be trustworthy
可信性要求软件在正常操作条件下不会出现故障或错误,能够持续提供准确的服务。
(3)Efficiency 高效性:
软件不应该浪费使用系统资源
(4)usability 可用性:
Software must be usable by the users for which it was designed
软件系统应该在需要时可用
Lecture Summary
1.在现代的系统中需要严格的软件工程原则的原因
2.软件工程定义
Software engineering is an engineering discipline concerned with all aspects of software production.
3.软件产品属性
Software products consist of developed programs and their associated documentation with several essential product attributes such as maintainability, dependability, efficiency and acceptability.
4.软件开发者应该对工程专业性和社会负责人而不应只关注于技术问题
Software Engineers have responsibilities to the engineering profession and society and should not simply be concerned with technical issues.