软件构造概念阐述(1-3章)

一、软件的多维视图

二、软件的内部、外部质量指标

外部质量因素:可被用户感知

正确性、健壮性(鲁棒性)、可扩展性、可复用性、兼容性、性能、可移植性、易用性、功能性、及时性

内部质量因素:

源码方面:行数,逻辑复杂度

结构方面:耦合、内聚

代码可读性、易于理解、清晰、大小等等

三、软件配置管理SCM与版本控制系统VCS

Software Configuration Management (SCM) and Version Control System (VCS)
要注意这个基本变化的单元是以文件为单位的!!!

 

 

 VCS版本控制系统

分为本地VCS、集中式VCS、分布式VCS

 

 

 四、 Git的结构、工作原理和基本指令

A Git repository has three parts:
.git directory (a repository storing all version control data) 本地的 CMDB
Working directory (local file system) 工作目录:本地文件系统
Staging area (in memory) 暂存区:隔离工作目录和 Git 仓库
Each file belongs to one of the following three states:
Modified (the file in working directory is different from the one in git repository, but is
   not in staging area) 已修改
Staged (the file is modified and has been added into the staging area) 已暂存
Committed (the file keeps same in working directory and git directory) 已提交
Each node in the history graph is a commit a.k.a. version a.k.a. revision of the project: a complete snapshot of all the files at that point in time.
Except for the initial commit, each commit has a pointer to a parent commit. 每个 commit 指向一个父亲
Some commits have the same parent: they are versions that diverged from a common previous version. 多个commit指向同一个父亲:分支
Some commits have two parents: they are versions that tie divergent histories back together. 一个 commit 指向两个父亲:合并
A branch is just a name that points to a commit. 每个分支仅仅是一个指针
HEAD points to the current commit.
We need to remember which branch we’re working on. So HEAD points to the current branch, which points to the current commit.
git每次只会存储发生变化的文件,未变化的无需重复存储

 传统的VCS记录变化的基本单位是行,而Git是文件

Git的基本命令

 git add

git status

git diff

git diff --cached

git commit

git commit -a  (跳过暂存区,Git自动把所有已经跟踪过了的问价暂存起来一并提交,跳过了git

                          add的步骤)

git rm 

git remote

git remote add URL

git fetch

git pull

git push origin master

git remote show origin

git remote rm

git checkout -b dev  <=> git branch dev

                                        git checkout dev

git merge dev

git branch -d dev(删除分支)

五、软件构造的阶段划分

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

HIT-Steven

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值