Programming Methodology(五)

上Buff:你必须十分努力,才能看起来毫不费力。


进入正题,  斯坦福大学公开课:编程方法学> 变量


Brief Introduction:变量的三个性质: Name(只能以字母或下划线开始,只能包括字母数字和下划线) Type(几种Primitive Type: int  double boolean char)和Value.

赋值语句和等于的区别,这个就不赘述了

Glable Lable = new GLable("Hello World" , 100 ,75 );

在这个语句中,GLable是一个类,我们定义了一个类型是GLable类的变量Lable,之后我们实例化一个GLable的对象为这个变量赋值。

图像的象限:和C一样,左上角是(0,0)

GRECT,GOVAL,GLINE,GLABLE都是继承GOBJECT. GObject有以下方法:setColor(color) ,setLocation(x,y), setMove(dx,dy),

如果想涂颜色,都在JAVA.AWT.*里面

GetWidth()和GetHeight()来获取窗口的大小



Next--->Programming Methodology(六)

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、付费专栏及课程。

余额充值