focus, scna 2011
DESCRIPTION
This was a talk that I gave at SCNA 2011. It's a bit old but recently requested.TRANSCRIPT
![Page 1: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/1.jpg)
![Page 2: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/2.jpg)
Mastery
![Page 3: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/3.jpg)
Local Maximas
![Page 4: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/4.jpg)
Focus
![Page 5: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/5.jpg)
Masters can melt people with their minds
![Page 6: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/6.jpg)
We spend most of our time here
![Page 7: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/7.jpg)
Mihaly Csikszentmihalyi on flow
![Page 8: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/8.jpg)
What is flow?
![Page 9: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/9.jpg)
I’ll give you a hint...
![Page 10: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/10.jpg)
?
![Page 11: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/11.jpg)
Flow != meditation
![Page 12: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/12.jpg)
The mental states are remarkably similar
![Page 13: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/13.jpg)
The flow of a master is much more effective
![Page 14: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/14.jpg)
Our nervous system can only process 110
bits of information per second
![Page 15: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/15.jpg)
Effects
• Completely involved (no notion of self)
• A sense of ecstasy
• Inner Clarity
• Confidence in skills to solve the problem
• Serenity
• Timelessness
• Intrinsic motivation
![Page 16: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/16.jpg)
Focus has an enemy
![Page 17: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/17.jpg)
![Page 18: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/18.jpg)
25
![Page 19: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/19.jpg)
When you over caffeinate, your nervous system can’t funciton
properly
![Page 20: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/20.jpg)
You can’t enter proper flow when in this state
![Page 21: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/21.jpg)
BS!
![Page 22: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/22.jpg)
We spend most of our time here
![Page 23: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/23.jpg)
Achieving mastery requires proper focus
![Page 24: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/24.jpg)
How do we get there?
![Page 25: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/25.jpg)
Power
![Page 26: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/26.jpg)
Power comes in multiple forms
![Page 27: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/27.jpg)
![Page 28: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/28.jpg)
Locality
![Page 29: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/29.jpg)
Know when to apply what kind of power
![Page 30: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/30.jpg)
Sometimes power > elegance
![Page 31: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/31.jpg)
Work in tools that allow flexible
application of power and elgance
![Page 32: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/32.jpg)
Simplicity
![Page 33: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/33.jpg)
example: refactor apache
commons isBlank
���33
![Page 34: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/34.jpg)
public class StringUtils { ! public static boolean isBlank(String str) { ! int strLen; ! if (str == null || (strLen = str.length()) == 0) { ! return true; ! } ! for (int i = 0; i < strLen; i++) { ! if ((Character.isWhitespace(str.charAt(i)) == false)) { ! return false; ! }! }! return true;! }!}
initial implementation
���34
![Page 35: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/35.jpg)
public class StringUtils { ! public isBlank(str) { ! if (str == null || (strLen = str.length()) == 0) { ! return true; ! } ! for (i = 0; i < strLen; i++) { ! if ((Character.isWhitespace(str.charAt(i)) == false)) { ! return false; ! }! }! return true;! }!}
- type decls
���35
![Page 36: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/36.jpg)
public isBlank(str) { ! if (str == null || (strLen = str.length()) == 0) { ! return true; ! } ! for (i = 0; i < strLen; i++) { ! if ((Character.isWhitespace(str.charAt(i)) == false)) { ! return false; ! }! }! return true;!}
- class
���36
![Page 37: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/37.jpg)
public isBlank(str) { ! if (str == null || (strLen = str.length()) == 0) { ! return true; ! } ! every (ch in str) { ! Character.isWhitespace(ch);! }! return true;!}!
+ higher-order function
���37
![Page 38: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/38.jpg)
public isBlank(str) { ! every (ch in str) { ! Character.isWhitespace(ch);! }!}
- corner cases
���38
![Page 39: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/39.jpg)
(defn blank? [s] ! (every? #(Character/isWhitespace %) s))
lispify
���39
![Page 40: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/40.jpg)
public class StringUtils { ! public static boolean isBlank(String str) { ! int strLen; ! if (str == null || (strLen = str.length()) == 0) { ! return true; ! } ! for (int i = 0; i < strLen; i++) { ! if ((Character.isWhitespace(str.charAt(i)) == false)) { ! return false; ! }! }! return true;! }!}
initial implementation
���40
Mutable state
Exit point
Exit point
Exit point
Condition
Condition
Loop
![Page 41: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/41.jpg)
Ok, i’m confused, how does this apply to
mastery?
![Page 42: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/42.jpg)
Focus and flow let us realize our potential
![Page 43: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/43.jpg)
We learn by stretching beyond our limits
![Page 44: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/44.jpg)
Entering flow helps us become more self
aware
![Page 45: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/45.jpg)
We should be tactically moving hereAnd sometimes here
![Page 46: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/46.jpg)
Effective focus helps you level up faster
![Page 47: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/47.jpg)
You need to work with tools and languages that
allow proper focus
![Page 48: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/48.jpg)
Choose sleep over caffiene
![Page 49: Focus, SCNA 2011](https://reader033.vdocument.in/reader033/viewer/2022060117/55867b10d8b42a21668b45fe/html5/thumbnails/49.jpg)