1 of 55

Slide Notes

DownloadGo Live

pre-JSUnconf jscr (April, HH)

Slides for the JavaScript CodeRetreat #5 in Munich, March 7th 2015

PRESENTATION OUTLINE

pre-JSUnconf

JavaScript CodeRetreat

NOT!

today is no-shipping day!
Photo by Joe Edwards

Untitled Slide

Untitled Slide

Untitled Slide

Marco

@MarcoEmrich, webmasters akademie

Wolfram

@WolframKriesing, uxebu
Photo by olga.reznik

Untitled Slide

Untitled Slide

Untitled Slide

Untitled Slide

open (source)

every 3 months

Photo by Leo Reynolds

Untitled Slide

Photo by Orin Zebest

Untitled Slide

Photo by romanboed

no pressure

no get things done
Photo by Moonrhino

Untitled Slide

Photo by wbaiv

corners you cut

Photo by Genista

you don't stretch

because it slows you down

Photo by stevendepolo

you feel you can do better

Photo by Matt Erasmus

stay in your comfort zone

because there is no time
Photo by meaganmakes

reality

Photo by Daveybot

Untitled Slide

Untitled Slide

Photo by striatic

goal today

Photo by tiffa130

shrink

write perfect code

take the time

nothing to get done today

one iteration (in minutes)

Untitled Slide

green field

Photo by photophilde

crap

Untitled Slide

Photo by nyuhuhuu

make the test pass

Photo by alvarogalve

write a failing test

Photo by alvarogalve

clean up - stay green

Photo by JLaw45

Untitled Slide

Photo by revbean

any questions?

Photo by Colin_K

session #1

Photo by Leo Reynolds

no constraints

Photo by Lel4nd

naming + duplication

Photo by Leo Reynolds

4 rules of simple design

Photo by Leo Reynolds

4 rules of simple design

  • tests pass
  • good names
  • no duplication
  • small

class naming

Photo by amishsteve

much of what is called “object-oriented programming” today is simply old style programming with fancier constructs

Alan K

Untitled Slide

Photo by kidmissile

If you can’t find a proper name for the class, try naming functions. Look at those functions. What is keeping them together? You can apply them to… that’s the class name

1 - name functions well

Photo by pwbaker

2 - what keeps them together?

Photo by striatic

"You can apply them to "

Photo by rogue_314