Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: sky/specs/style-guide.md

Issue 1211573003: Fill out some more documentation about building RenderBox subclasses. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 Sky Style Guide 1 Sky Style Guide
2 =============== 2 ===============
3 3
4 In general, follow our [Design Principles](design.md) for all code. 4 In general, follow our [Design Principles](design.md) for all code.
5 5
6 6
7 Dart 7 Dart
8 ---- 8 ----
9 9
10 In general, follow the [Dart style 10 In general, follow the [Dart style
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 > For example, 90 > For example,
91 > ```dart 91 > ```dart
92 > new EdgeDims.symmetric(horizontal: 8.0); 92 > new EdgeDims.symmetric(horizontal: 8.0);
93 > ``` 93 > ```
94 > ...rather than: 94 > ...rather than:
95 > ```dart 95 > ```dart
96 > new EdgeDims(0.0, 8.0, 0.0, 8.0); 96 > new EdgeDims(0.0, 8.0, 0.0, 8.0);
97 > ``` 97 > ```
98 98
99 99
100 Use for-in loops rather than forEach() where possible, since that
101 saves a stack frame per iteration.
102
103
100 C++ 104 C++
101 --- 105 ---
102 106
107 Put spaces around operators in expressions.
108
103 109
104 Java 110 Java
105 ---- 111 ----
106 112
OLDNEW
« sky/sdk/lib/rendering/block.dart ('K') | « sky/sdk/lib/rendering/block.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698