You are on page 1of 22

Customer Seminar

touch
and code design
Customer Seminar

touch is…
Something computers
don’t have
Customer Seminar

touch is…
Something computers
don’t have
(yet…)

05:30:25 AM 3/ 28
Customer Seminar

An example of touch

05:30:25 AM 4/ 28
Customer Seminar
i or index ?

for (int i = 0; i < length; i++)


{
// Do something
}

for (int index = 0; index < length; index++)


{
// Do something
}
05:30:25 AM 5/ 28
Customer Seminar

the rule is…


“Avoid single character
variable names, such as i or
t. Use index or temp
instead.”

* according to our current coding standards


05:30:25 AM 6/ 28
Customer Seminar

and the exception is…


i is commonly used in
many applications and
languages.
why change?
05:30:25 AM 7/ 28
Customer Seminar

Rules of touch
can never be concrete,

and are subject to the


programmer who’s
applying them.
05:30:26 AM 8/ 28
touch is…
Customer Seminar

considering delicate
details.

05:30:26 AM 9/ 28
Customer Seminar

Some delicate details

05:30:26 AM 10/ 28
Customer Seminar
<div class=“products-carousel”>
<ul class=“products-carousel-list”>
<li class=“products-carousel-item”>...</li>
<li class=“products-carousel-item”>...</li>
<li class=“products-carousel-item
products-carousel-item-selected”>
...
</li>
Idea examples:
</ul>
</div>
Coffee offices
Launderette & Bar
Disappearing Penguins
.products-carousel {
Garage &...
Manicure parlor
24h’ Apple
} store
.products-carousel-list {
...
}
.products-carousel-list-item {
...
}
.products-carousel-list-item-selected {
...
}
05:30:26 AM 11/ 28
Customer Seminar
<div class=“products-carousel”>
<ul class=“list”>
<li class=“item”>...</li>
<li class=“item”>...</li>
<li class=“item selected”>...</li>
</ul>
</div>
Idea examples:
Coffee offices
Launderette & Bar
Disappearing Penguins
.products-carousel {
Garage &...Manicure parlor
24h’ Apple
} store
.products-carousel .list {
...
}
.products-carousel .list .item {
...
}
.products-carousel .list .selected {
...
}
05:30:26 AM 12/ 28
public PlayScreen(int level, Game game) : base(game)
Customer Seminar
{
_gameAssets = (GameAssets)Game.Services.GetService(typeof(GameAssets));
_gameSettings = (GameSettings)Game.Services.GetService(typeof(GameSettings));
_levelManager = (LevelManager)Game.Services.GetService(typeof(LevelManager));
_level = level;
_background = new BackgroundWrapper(Game, BACKGROUND, 30);
_background.DrawOrder = 0;
this.Add(_background);

_players = new SpaceShip[GameSettings.NumOfPlayers];


Idea examples:
_playersScores = new PlayerScore[GameSettings.NumOfPlayers];
for (int p = 0; p < GameSettings.NumOfPlayers; p++)
Coffee offices
{
Launderette &_players[p]
Bar = SpaceShip.GetSpaceShip(p, Game);
_players[p].PlayerIndex = p;
Disappearing Penguins
...
Garage &}_enemyMatrix
Manicure parlor
= new EnemyMatrix(Game, m_BottomMatrixLimit);
24h’ Apple_enemyMatrix.EnemyDestroyed
store += new
EnemyMatrix.EnemyDestroyedEventHandler(matrix_EnemyDestroyed);
_enemyMatrix.AllEnemiesDied += new
EventHandler(_enemyMatrix_AllEnemiesDied);
_enemyMatrix.DrawOrder = 200;
this.Add(_enemyMatrix);

_barriers = new BarrierGroup(_level, Game);


this.Add(_barriers);

...
}
05:30:26 AM 13/ 28
Customer Seminar

Idea examples:
Coffee offices
Launderette & Bar
Disappearing Penguins
Garage & Manicure parlor
24h’ Apple store

05:30:26 AM 14/ 28
Customer Seminar

Idea examples:
Coffee offices
Launderette & Bar
Disappearing Penguins
Garage & Manicure parlor
24h’ Apple store

05:30:26 AM 15/ 28
public PlayScreen(int level, Game game) : base(game) Customer Seminar
{
// Get services.
_gameAssets = (GameAssets)Game.Services.GetService(typeof(GameAssets));
_gameSettings = (GameSettings)Game.Services.GetService(typeof(GameSettings));
_levelManager = (LevelManager)Game.Services.GetService(typeof(LevelManager));

// Keep the current level. The play screen is highly affected by it.
_level = level;

// Create the background.


createBackground();
Idea examples:
Coffee offices
// Create players spaceships and scores.
createPlayers();
Launderette & Bar
Disappearing Penguins
// Create the enemy matrix.
Garage &createEnemyMatrix();
Manicure parlor
24h’ Apple//store
Create the barriers.
createBarriers();
}

05:30:26 AM 16/ 28
Customer Seminar

Idea examples:
Coffee offices
Launderette & Bar
Disappearing Penguins
Garage & Manicure parlor
24h’ Apple store

05:30:26 AM 17/ 28
‫שם הלקוח | שם המצגת‬

‫?‪what for‬‬

‫‪05:30:26 AM‬‬ ‫‪18/ 28‬‬


Our code is a user
‫שם הלקוח | שם המצגת‬

interface to the engine


we create

05:30:26 AM 19/ 28
The user is…
‫שם הלקוח | שם המצגת‬

- a co-worker
- myself in 6 months (or
6 hours)
- a beginner who
wishes to learn
05:30:26 AM 20/ 28
improving our user’s
‫שם הלקוח | שם המצגת‬

eXperience
 simplicity
 readability
 design for people
 human touch
05:30:26 AM 21/ 28
‫שם הלקוח | שם המצגת‬

Thank You
http://www.brainstorming.co.uk/tutorials/methodsofextraction.html

05:30:26 AM 22/ 35

You might also like