Prototype your designPrototype your design! Robert Griesemer dotGo 2016, Paris 1 Getting to good software design ● Literature is full of design paradigms ● Usually involves ○ Design docs ○ Feedback from reviewers ○ School Stanford: http://dschool.stanford.edu/ Try stuff Reframe problems Build your way forward! Prototype Example: Designing Go support for numerical apps Multi-dimensional slices for Go (issue #6282) hand, or automatically, via a source-to-source rewriter. 9 A prototype allows us to explore the design space. 10 Design the prototype ● Allow index operators as method names ○ [] indexed getter0 码力 | 30 页 | 164.99 KB | 1 年前3
Game Development for Human Beings//setting game configuration and loading the assets for the loading screen 6 SpaceHipster.Boot.prototype = { 7 preload: function() { 8 //assets we'll use in the loading screen 9 this.load.image('logo' 3 //loading the game assets 4 SpaceHipster.Preload = function(){}; 5 6 SpaceHipster.Preload.prototype = { 7 preload: function() { 8 //show logo in loading screen 9 this.splash = this.add.sprite(this background and some text. 1 SpaceHipster.MainMenu = function(){}; 2 3 SpaceHipster.MainMenu.prototype = { 4 create: function() { 5 //show the space tile, repeated 6 this.background = this.game0 码力 | 472 页 | 8.46 MB | 10 月前3
阮一峰 JavaScript 教程改名为 JavaScript。基本上,JavaScript 这个名 字的原意是“很像Java的脚本语言”。 JavaScript 语言的函数是一种独立的数据类型,以及采用基于原型 对象(prototype)的继承链。这是它与 Java 语法最大的两点区 别。JavaScript 语法要比 Java 自由得多。 另外,Java 语言需要编译,而 JavaScript 语言则是运行时由解释 器直接执行。 JavaScript 有三种方法,可以确定一个值到底是什么类型。 typeof 运算符 instanceof 运算符 Object.prototype.toString 方法 instanceof 运算符和 Object.prototype.toString 方法,将在后文介 绍。这里介绍 typeof 运算符。 typeof 运算符可以返回一个值的数据类型。 数值、字符串、布尔值分别返回 对象使用数组方法,真正的解决方法是 将 arguments 转为真正的数组。下面是两种常用的转换方 法: slice 方法和逐一填入新数组。 1. var args = Array.prototype.slice.call(arguments); 2. 3. // 或者 4. var args = []; 函数 - 128 - 本文档使用 书栈(BookStack.CN) 构建0 码力 | 540 页 | 3.32 MB | 10 月前3
PlantUML 1.2023.11 Sprachreferenz1.1 Duration Their durations are defined using the last verb: @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days -- All example -- [Task 1 (1 day)] lasts 1 day [T2 (5 days)] lasts the start verb: @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] starts 2020-07-01 [Test prototype] starts 2020-07-16 @endgantt @endgantt @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days [Prototype design] starts D+0 PlantUML Sprachreferenz (1.2023.11) 312 / 528 16.1 Declaring tasks 16 GANTT DIAGRAM [Test0 码力 | 529 页 | 7.46 MB | 1 年前3
Drawing UML with PlantUML - PlantUML Language Reference Guide(Version 1.2023.11)1.1 Duration Their durations are defined using the last verb: @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days -- All example -- [Task 1 (1 day)] lasts 1 day [T2 (5 days)] lasts the start verb: @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] starts 2020-07-01 [Test prototype] starts 2020-07-16 @endgantt @endgantt @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days [Prototype design] starts D+0 PlantUML Language Reference Guide (1.2023.11) 333 / 550 16.1 Declaring tasks 16 GANTT DIAGRAM0 码力 | 551 页 | 7.79 MB | 1 年前3
PlantUML 1.2023.11 Guía de Referencia del Lenguaje1.1 Duration Their durations are defined using the last verb: @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days -- All example -- [Task 1 (1 day)] lasts 1 day [T2 (5 days)] lasts the start verb: @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] starts 2020-07-01 [Test prototype] starts 2020-07-16 @endgantt @endgantt @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days [Prototype design] starts D+0 Guía de Referencia del Lenguaje PlantUML (1.2023.11) 313 / 530 16.1 Declaring tasks 16 GANTT0 码力 | 531 页 | 7.53 MB | 1 年前3
PlantUML 을사용해서 UML 그리기 - PlantUML 언어참조가이드(Version 1.2023.11)
1.1 Duration Their durations are defined using the last verb: @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days -- All example -- [Task 1 (1 day)] lasts 1 day [T2 (5 days)] lasts the start verb: @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] starts 2020-07-01 [Test prototype] starts 2020-07-16 @endgantt @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days [Prototype design] starts D+0 PlantUML 언어참조가이드 (1.2023.11) 334 / 551 16.1 Declaring tasks 16 GANTT DIAGRAM [Test prototype] starts0 码力 | 552 页 | 7.88 MB | 1 年前3
PlantUML 1.2023.11 Guide de référence du langage16.1.1 Durée Leurs durées sont définies à l’aide du verbe last @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days -- All example -- [Task 1 (1 day)] lasts 1 day [T2 (5 days)] lasts start @startgantt language fr [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] starts 2020-07-01 [Test prototype] starts 2020-07-16 @endgantt GANTT @startgantt language fr [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] ends 2020-07-15 [Test prototype] ends 2020-07-25 @endgantt 160 码力 | 534 页 | 7.56 MB | 1 年前3
使用 PlantUML 绘制 UML - PlantUML 语言参考指引(Version 1.2023.11)词-补语)。 16.1 声明任务 使用中括号来定义任务。 16.1.1 时长 通过试用动词 last 来定义时长。 @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days -- All example -- [Task 1 (1 day)] lasts 1 day [T2 (5 days)] lasts start 动词来定义开始。 @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] starts 2020-07-01 [Test prototype] starts 2020-07-16 @endgantt 16.2 单行声明(用 and 连词) 16 甘特图 [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] ends 2020-07-15 [Test prototype] ends 2020-07-25 @endgantt 160 码力 | 539 页 | 7.74 MB | 1 年前3
PlantUML 1.2020.23 Справочное руководство по языку1.1 Duration Their durations are defined using the last verb: @startgantt [Prototype design] lasts 15 days [Test prototype] lasts 10 days -- All example -- [Task 1 (1 day)] lasts 1 day [T2 (5 days)] lasts using the start verb: @startuml [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] starts 2020-07-01 [Test prototype] starts 2020-07-16 @enduml 10 conjunction) 10 GANTT DIAGRAM @startuml [Prototype design] lasts 15 days [Test prototype] lasts 10 days Project starts 2020-07-01 [Prototype design] ends 2020-07-15 [Test prototype] ends 2020-07-25 @enduml 100 码力 | 306 页 | 3.12 MB | 1 年前3
共 839 条
- 1
- 2
- 3
- 4
- 5
- 6
- 84













