+ All Categories
Home > Software > The “transformation priority premise”

The “transformation priority premise”

Date post: 16-Jan-2017
Category:
Upload: christian-hujer
View: 438 times
Download: 0 times
Share this document with a friend
18
The “Transformation Priority Premise” Christian Hujer @christianhujer, CEO/CTO Nelkinda Software Craft Pvt Ltd Equal Experts at NOTHS 2015-11-25
Transcript
Page 1: The “transformation priority premise”

The “Transformation Priority Premise”

Christian Hujer @christianhujer,CEO/CTO Nelkinda Software Craft Pvt Ltd

Equal Experts at NOTHS 2015-11-25

Page 2: The “transformation priority premise”

Aliens?

Page 3: The “transformation priority premise”

N = R* × fp × ne × fl × fi × fc × LR* average rate of star formation in our galaxyfp fraction of stars that have planetsne average number of planets per star that can potentially support lifefl fraction of planets that actually develop lifefi fraction of planets that develop intelligent lifefc fraction of civilizations that develop technologyL length of time for which such civilizations release detectable signals into space

The Drake equation

Dr. Frank Drake

Page 4: The “transformation priority premise”

The Fermi Paradox

Enrico Fermi

“Then where is everybody?”

Page 5: The “transformation priority premise”

Speculation

How do you explain (“solve”) the Fermi Paradox?

Page 6: The “transformation priority premise”

Speculation

● We are the only ones● Intelligent life destroys itself● Intelligent life destroys others● Life is periodically destroyed by nature● Most universes are (too) young● Too far scattered● Too expensive to spread through galaxy

Page 7: The “transformation priority premise”

Speculation (continued)

● We’re not around long enough● We’re not listening properly● Radio signals only used for brief period● Civilizations isolate themselves● They are too alien● They are non-technological● Everyone is listening, no one transmitting

Page 8: The “transformation priority premise”

Speculation (continued)

● Earth is deliberately not contacted (zoo)● Earth is purposely isolated (planetarium)● It is dangerous to communicate● Self-fulfilling Fermi-Paradox● They are undetected● They are unacknowledged

Page 9: The “transformation priority premise”

Agenda

● Reprise: TDD - The Three Laws and the Red-Green-Refactor Cycle

● Reprise: What is Refactoring?● Definition: What is Transformation?● The (current) Priority list of Transformations● Example

Page 10: The “transformation priority premise”

Questions to Cover

● What is a Transformation?● Why do they have Priorities?● Why is it a Premise?● How is it related to Refactoring and TDD?● How can I use it? How does it help me?

Page 11: The “transformation priority premise”

The Three Laws of TDD

1. You can’t write any production code until you first have written a failing unit test.

2. You can’t write more of a unit test than is sufficient to fail, and not compiling is failing.

3. You can’t write more production code than is sufficient to pass the currently failing unit test.

Page 12: The “transformation priority premise”

The Red-Green-Refactor CycleRed: Write as much of test as is sufficient to fail.

Green: Write as much of production code as is sufficient to pass.

Refactor: Well, refactor!

Page 13: The “transformation priority premise”

Refactoring

Refactoring, n:A change to the structure of source code without significantly changing its behavior.

Page 14: The “transformation priority premise”

Transformation

Transformation, n:A change to the behavior of source code without significantly changing its structure.

Page 15: The “transformation priority premise”

List of Transformations● {} → nil● nil → constant● constant → constant +● constant → scalar● statement → statements● unconditional → if

● scalar → array● array → container● statement → recursion● if → while● expression → function● variable → assignment

Page 16: The “transformation priority premise”

How it works

● The first unit test should demand the first transformation.

● The next unit test should demand the simplest next transformation possible.

● Apply the simplest transformations that still satisfy the test.

● And: Red → Green → Refactor

Page 17: The “transformation priority premise”

Who invented it?Robert “Uncle Bob” C. Martin● Red-Green-Refactor● Three Laws of TDD● Transformation Priority Premise● SOLID Principles● …

Page 18: The “transformation priority premise”

Thank you!Questions?

Follow me on Twitter: @christianhujer


Recommended