does your code tell a story

42
Does Your Code Tell A Story? Alan Stevens A Desultory Philippic On Code Clarity

Upload: alan-stevens

Post on 05-Dec-2014

1.691 views

Category:

Technology


3 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Does  Your  Code  Tell  A  Story

Does Your Code Tell A Story?

Alan Stevens

A Desultory Philippic On Code Clarity

Page 2: Does  Your  Code  Tell  A  Story

WHO IS ALAN STEVENS?

• Microsoft Most Valuable Professional

• ASP Insider

• Occasional Blogger http://netcave.org

• Independent Consultant

• An Enthusiast NOT an expert!

Page 3: Does  Your  Code  Tell  A  Story

Beauty is more important in computing than anywhere else in technology because software is so complicated.

Beauty is the ultimate defense against complexity.

—David Gelernter, Machine Beauty: Elegance and the Heart of Technology

Page 4: Does  Your  Code  Tell  A  Story

Beauty is the ultimate defense

against complexity.

Page 5: Does  Your  Code  Tell  A  Story
Page 6: Does  Your  Code  Tell  A  Story
Page 7: Does  Your  Code  Tell  A  Story
Page 8: Does  Your  Code  Tell  A  Story
Page 9: Does  Your  Code  Tell  A  Story
Page 10: Does  Your  Code  Tell  A  Story
Page 11: Does  Your  Code  Tell  A  Story
Page 12: Does  Your  Code  Tell  A  Story

Be boldBe free

Be truthfulBrenda Ueland

Page 13: Does  Your  Code  Tell  A  Story

TRUTH!the

Tell

Page 14: Does  Your  Code  Tell  A  Story

Good ideas come slowly

Page 15: Does  Your  Code  Tell  A  Story

Stories are found things.

Stephen King

Page 16: Does  Your  Code  Tell  A  Story

Busyness leads to little sharp staccato ideas instead of big

slow ideasBrenda Ueland

Page 17: Does  Your  Code  Tell  A  Story

You must freely and recklessly

make new mistakes

Page 18: Does  Your  Code  Tell  A  Story

You need a tolerance for having no idea where your thing is going.

Merlin Mann

Page 19: Does  Your  Code  Tell  A  Story

When I write, I feel like an armless, legless man with a pen in his mouth.

Kurt Vonnegut

Page 20: Does  Your  Code  Tell  A  Story

Writing a novel is like driving a car at night. You can only see as far as your headlights, but you can make the whole trip that way.

E. L. Doctorow

Page 21: Does  Your  Code  Tell  A  Story

You won't see how to do it until you see yourself doing it.

David Allen

Page 22: Does  Your  Code  Tell  A  Story

Read a lotWrite a lot

Stephen King

Page 23: Does  Your  Code  Tell  A  Story

Give Yourself Short Assignments

Page 24: Does  Your  Code  Tell  A  Story

“All I’m gonna’ do is…”

Page 25: Does  Your  Code  Tell  A  Story
Page 26: Does  Your  Code  Tell  A  Story

“Write shitty first drafts”

Annie Lamont

Page 27: Does  Your  Code  Tell  A  Story

The first draft is the child’s draft.

Page 28: Does  Your  Code  Tell  A  Story

Begin to write in the dumb, awkward way that an animal cries out in pain.

Natalie Goldberg

Page 29: Does  Your  Code  Tell  A  Story

You must feel that you have permission to write

the worst junk in the world and it would be okay.

Natalie Goldberg

Page 30: Does  Your  Code  Tell  A  Story

Perfectionism is the voice of the oppressor, the enemy of the people. It is the main obstacle to your shitty first draft.

Annie Lamont

Page 31: Does  Your  Code  Tell  A  Story

Three Kinds Of Drafts• The first draft is the “down draft” just get

it down.

• The second draft is the “up draft” clean it up.

• The third draft is the “dental draft” where you carefully inspect each tooth.

Page 32: Does  Your  Code  Tell  A  Story

When you write a story, you're telling yourself the story.

When you rewrite, your main job is taking out all the things that are not the story.

Stephen King

Page 33: Does  Your  Code  Tell  A  Story

Write with the door closed.

Rewrite with the door open.

Stephen King

Page 34: Does  Your  Code  Tell  A  Story

Your stuff starts out being just for you,

but then it goes out!Stephen King

Page 35: Does  Your  Code  Tell  A  Story

Once you know what the story is and get it right, as right as you can anyway, it belongs to anyone who wants to read it.

Stephen King

!

Page 36: Does  Your  Code  Tell  A  Story

When you finally realize what your program is doing, you have to go back and make it look like you knew that all along.

Make it look like it was easy to write this program, even if it wasn’t.

Ward Cunningham

Page 37: Does  Your  Code  Tell  A  Story
Page 38: Does  Your  Code  Tell  A  Story
Page 39: Does  Your  Code  Tell  A  Story
Page 40: Does  Your  Code  Tell  A  Story
Page 41: Does  Your  Code  Tell  A  Story

Beauty is the ultimate defense

against complexity.

Page 42: Does  Your  Code  Tell  A  Story

Thanks For Listening!

Email/IM: [email protected]

Blog: http://netcave.org

Twitter: @alanstevens