noodle

【软件构造】课程提纲(3)

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-11 08:13:55
第四章 1. 代码可理解性 / 可读性 (1)度量可理解的指标:名称长度、名称唯一性比率、复杂性、代码行数、注释密度、嵌套层数 (2)可读性:人类读者可以轻松理解源代码的目的,控制流程和操作 (3)代码可读性强的例子: Example A : z = ((3*x^2) + (4*x) - 5) - (( 2*y^2) - (7*y) + 11) / ((3*x^2) + (4*x) - 5) Example B : a = (3*x^2) + (4*x) - 5; b = ( 2*y^2) - (7*y) + 11; z = (a - b) / a B 的代码可读性强于 A 2. 编码规范:名称符合约定和语义、复杂性低、代码行数少、适当添加必要注释、嵌套层数少 第五章 1. 面向 / 基于复用编程: ( 1 )为什么复用:成本有效性和及时性、可生成可靠的软件、标准化 ( 2 )面向复用编程( for ):开发可重用组件 ( 3 )基于复用编程( with ):用可重用组件进行开发 ( 4 )可重用性高的表现:简单、可移植性和兼容性好、灵活、可扩展、通用和参数化、模块化、稳定、将变化限制在局部 2. LSP :子类必须能够替换基类,具有较弱的前置条件和较强的后置条件,尽量从抽象类而非具体类继承 3. 数组的子类型化:代码重用,如 List -> ArrayList 4.

Orba is an controller with gesture control and haptic feedback

孤街醉人 提交于 2019-12-05 23:31:08
Nashville-based tech company Artiphon has a new music-making gadget up for backing on Kickstarter called Orba. The Orba is a small, handheld device that’s a synth, looper, and controller all in one. It’s shaped like a halved grapefruit, and mimics the gestures used on smartphones and trackpads to let you make beats and play around with sounds with a variety of motions. The flat top of the Orba is divided into eight segments that let you stack drum, bass, chord, and lead layers, and operate basic controls like record and pause. Then, the center acts as a menu button for cycling between features

Orba is an controller with gesture control and haptic feedback

别来无恙 提交于 2019-11-29 15:16:40
Nashville-based tech company Artiphon has a new music-making gadget up for backing on Kickstarter called Orba. The Orba is a small, handheld device that’s a synth, looper, and controller all in one. It’s shaped like a halved grapefruit, and mimics the gestures used on smartphones and trackpads to let you make beats and play around with sounds with a variety of motions. The flat top of the Orba is divided into eight segments that let you stack drum, bass, chord, and lead layers, and operate basic controls like record and pause. Then, the center acts as a menu button for cycling between features

Orba is an controller with gesture control and haptic feedback

狂风中的少年 提交于 2019-11-29 15:16:00
Nashville-based tech company Artiphon has a new music-making gadget up for backing on Kickstarter called Orba. The Orba is a small, handheld device that’s a synth, looper, and controller all in one. It’s shaped like a halved grapefruit, and mimics the gestures used on smartphones and trackpads to let you make beats and play around with sounds with a variety of motions. The flat top of the Orba is divided into eight segments that let you stack drum, bass, chord, and lead layers, and operate basic controls like record and pause. Then, the center acts as a menu button for cycling between features