Learning_ introduction to computer science and programming_writing,testing,and debugging programs

本文提供了一套逐步方法来理解和解决问题,独立思考整体结构和算法,将程序分解为小部分,识别有用的抽象,逐个编码并单元测试,首先关注功能实现再考虑效率,从伪代码开始编写,保持系统性。在调试过程中,应用科学方法论思考,关注程序为何执行了特定操作,而非其未执行您期望的操作。

writing,testing,and debugging programs

take it a step at time

  1 understand problem

  2 think about overall structure and algorithms independently of expression in programming language

  3 break into small parts

  4 identify useful abstractions(data and functional)

  5 code and unit test a part at a time

  6 first functionality, then efficiency

  7 start with pseudo code

be systematic

whe ndebugging, think scientific method

ask yourself why program did whtat it did, not why it didn't do what you wanted it to do.

  

转载于:https://www.cnblogs.com/aprilapril/archive/2012/02/27/2369293.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值