Programming Methodology(三)

首先是每篇的BUFF时刻,贴上偶像李开复喜欢的一首诗,虽然他最近被黑的蛮惨的,但是在我迷茫的时候看他的经历还是获益匪浅的~

未选择的路

   ----By  Robert Frost
黄色的树林里分出两条路,   
可惜我不能同时涉足,
我站在那路口久久伫立,
我向着一条路极目望去,
直到它消失在丛林深处。

但我选择了另一条路,
它荒草萋萋,十分幽静,
显得更诱人,更美丽;
虽然在这两条小路上,
却很少留下旅人的足迹。

虽然那天清晨落叶满地,
两条路却未经脚印污染。
啊,留下一条路等改日再见!
但我知道路径延绵无尽头,
恐怕我难以再回返。

也许多年后在某个地方,
我将轻声叹息将往事回顾;
一片树林里分出两条路——
而我选择了人迹更少的一条,

从此决定了我一生的道路。


网易公开课链接:http://v.163.com/movie/2010/1/K/N/M6LDTAPTU_M6LDV9PKN.html

虽然没啥看官,万一有同学真的感兴趣,我还是把相关的资料贴出来,大家可以GET YOUR HANDS DIRTY,在stanford定制的ECLIPSE下面跑跑Karel

课程网址: CS106A.STANFORD.EDU   里面可以下载到课程有关的资料程序等,包括ECLIPSE及其环境。

第三课还是以Karel为主题(- -真正开始学习JAVA请忍耐到第五课吧),咱就简单记个流水账吧~从Common Errors开始讲起:

1.简单介绍了这么几种common errors, 一:infinite loop   二:off-by-one bug

2.Comments的写法(/*  ..... */)以及作用

3.Stepwise Refinement: 还是分而治之的思想,将一件事情分解到计算机能明白的程度,对于Karel而言就是分解到最初始的四个函数,系统的叫法为: Top Down Design,对应的另一种设计思路为: Bottom Up Design.  这里着重说明一点:Professor提及统计表明On average需要100个小时从BUD转为TDD。与大家共勉希望在学完CS106A后能有思维上的改变。比如在设计SteeplKarel的时候,为了让Karel完成障碍跑,有两种思维方式:BUD的思维是需要左转,前进到障碍顶端,右转,前进,右转,前进到障碍底端,左转。而TDD的思维方式是Karel需要完成2个步骤,前进和跨越。前进即MOVE已经完成,跨越需要进行细分到机器能识别的KAREL语言。

4.之后以让Karel使Beeper翻倍为例,非常精彩的按照自顶向下方法讲述了这个程序的编写过程。精彩程度建议大家自行观看~获益匪浅~

5.对Decomposite进行一个总结  

a.solve one problem

b.1-15 lines

c.good names

d.comments



Next---> Programming Methodology(四)



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Extreme programming (XP) is a software development methodology that emphasizes teamwork, communication, simplicity, feedback, and customer satisfaction. Here are some key practices for XP: 1. Planning: Planning is an essential part of XP. The team plans the project in short iterations called "sprints" and they prioritize the tasks to be done in each sprint. 2. Pair programming: Pair programming is a technique in which two programmers work together on the same computer. One programmer writes the code and the other reviews it. This helps to catch errors and improve the quality of the code. 3. Continuous integration: Continuous integration is the practice of integrating code changes into the main codebase frequently. This helps to identify and fix integration issues early in the development cycle. 4. Test-driven development: Test-driven development (TDD) is a development technique in which tests are written before the code is written. This helps to ensure that the code is correct and meets the requirements. 5. Refactoring: Refactoring is the process of improving the design of the code without changing its functionality. This helps to keep the code maintainable and flexible. 6. Simple design: XP emphasizes keeping the design of the code simple and easy to understand. This helps to reduce complexity and improve maintainability. 7. Continuous feedback: XP emphasizes continuous feedback from the customer and the team. This helps to ensure that the project is on track and meets the customer's needs. These are just some of the key practices of XP. By following these practices, the team can improve the quality of the code, reduce the risk of errors, and deliver high-quality software that meets the customer's needs.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值