際際滷

際際滷Share a Scribd company logo
Focus, SCNA 2011
Mastery
Local Maximas
Focus
Masters can melt
people with their minds
We spend most
of our time here
Mihaly Csikszentmihalyi
on 鍖ow
What is 鍖ow?
Ill give you a hint...
?
Flow != meditation
The mental states are
remarkably similar
The 鍖ow of a master is
much more effective
Our nervous system
can only process 110
bits of information per
second
Effects
 Completely involved (no notion of self)	

 A sense of ecstasy	

 Inner Clarity	

 Con鍖dence in skills to solve the problem	

 Serenity	

 Timelessness	

 Intrinsic motivation
Focus has an enemy
Focus, SCNA 2011
25
When you over
caffeinate, your nervous
system cant funciton
properly
You cant enter proper
鍖ow when in this state
BS!
We spend most
of our time here
Achieving mastery
requires proper focus
How do we get there?
Power
Power comes in
multiple forms
Focus, SCNA 2011
Locality
Know when to apply
what kind of power
Sometimes
power > elegance
Work in tools that
allow 鍖exible
application of power
and elgance
Simplicity
example:
refactor apache
commons isBlank
33
initial implementation
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;!
}!
}

34
- type decls
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;!
}!
}

35
- class
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;!
}

36
+ higher-order function
public isBlank(str) { !
if (str == null || (strLen = str.length()) == 0) { !
return true; !
} !
every (ch in str) { !
Character.isWhitespace(ch);!
}!
return true;!
}!

37
- corner cases

public isBlank(str) { !
every (ch in str) { !
Character.isWhitespace(ch);!
}!
}

38
lispify

(defn blank? [s] !
(every? #(Character/isWhitespace %) s))

39
initial implementation
Mutable state

Condition

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;!
}!
}

Exit point

Loop

Exit point

Exit point

40

Condition
Ok, im confused, how
does this apply to
mastery?
Focus and 鍖ow let us
realize our potential
We learn by stretching
beyond our limits
Entering 鍖ow helps us
become more self
aware
And sometimes here

We should be tactically 	

moving here
Effective focus helps
you level up faster
You need to work with
tools and languages that
allow proper focus
Choose sleep over
caf鍖ene
Focus, SCNA 2011
Thank You!




aaron@clojure.com	

@abedra	

thinkrelevance.com
Ad

Recommended

U N I T 5 S E C T 4 W R I T I N G A F U N C T I O N R U L E
U N I T 5 S E C T 4 W R I T I N G A F U N C T I O N R U L E
lwillian
Algebra 1 Item No 22
Algebra 1 Item No 22
Lappy Doods
Erlang Concurrency
Erlang Concurrency
Barry Ezell
Simplification of expressions with grouping symbols
Simplification of expressions with grouping symbols
Yann Villarreal
Clojure in the Field
Clojure in the Field
Aaron Bedra
Presentation3
Presentation3
guest81262fb
Why certify
Why certify
guestea644d
Windy City Rails - Layered Security
Windy City Rails - Layered Security
Aaron Bedra
The Cost of Complexity
The Cost of Complexity
Aaron Bedra
AWS Security Essentials
AWS Security Essentials
Aaron Bedra
Leveling the playing field
Leveling the playing field
Aaron Bedra
Repsheet: A Behavior Based Approach to Web Application Security
Repsheet: A Behavior Based Approach to Web Application Security
Aaron Bedra
Pontificating quantification
Pontificating quantification
Aaron Bedra
The Art of the Spike
The Art of the Spike
Aaron Bedra
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) 際際滷s
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) 際際滷s
Ravi Tamada
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
All Things Open
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
MPU+: A Transformative Solution for Next-Gen AI at the Edge, a Presentation...
MPU+: A Transformative Solution for Next-Gen AI at the Edge, a Presentation...
Edge AI and Vision Alliance
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
Quantum AI: Where Impossible Becomes Probable
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect

More Related Content

More from Aaron Bedra (6)

The Cost of Complexity
The Cost of Complexity
Aaron Bedra
AWS Security Essentials
AWS Security Essentials
Aaron Bedra
Leveling the playing field
Leveling the playing field
Aaron Bedra
Repsheet: A Behavior Based Approach to Web Application Security
Repsheet: A Behavior Based Approach to Web Application Security
Aaron Bedra
Pontificating quantification
Pontificating quantification
Aaron Bedra
The Art of the Spike
The Art of the Spike
Aaron Bedra
The Cost of Complexity
The Cost of Complexity
Aaron Bedra
AWS Security Essentials
AWS Security Essentials
Aaron Bedra
Leveling the playing field
Leveling the playing field
Aaron Bedra
Repsheet: A Behavior Based Approach to Web Application Security
Repsheet: A Behavior Based Approach to Web Application Security
Aaron Bedra
Pontificating quantification
Pontificating quantification
Aaron Bedra
The Art of the Spike
The Art of the Spike
Aaron Bedra

Recently uploaded (20)

Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) 際際滷s
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) 際際滷s
Ravi Tamada
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
All Things Open
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
MPU+: A Transformative Solution for Next-Gen AI at the Edge, a Presentation...
MPU+: A Transformative Solution for Next-Gen AI at the Edge, a Presentation...
Edge AI and Vision Alliance
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
Quantum AI: Where Impossible Becomes Probable
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Smarter Aviation Data Management: Lessons from Swedavia Airports and Sweco
Safe Software
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) 際際滷s
Hyderabad MuleSoft In-Person Meetup (June 21, 2025) 際際滷s
Ravi Tamada
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
Agentic AI for Developers and Data Scientists Build an AI Agent in 10 Lines o...
All Things Open
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
MPU+: A Transformative Solution for Next-Gen AI at the Edge, a Presentation...
MPU+: A Transformative Solution for Next-Gen AI at the Edge, a Presentation...
Edge AI and Vision Alliance
2025_06_18 - OpenMetadata Community Meeting.pdf
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
Database Benchmarking for Performance Masterclass: Session 2 - Data Modeling ...
ScyllaDB
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
"How to survive Black Friday: preparing e-commerce for a peak season", Yurii ...
Fwdays
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
AI Agents and FME: A How-to Guide on Generating Synthetic Metadata
Safe Software
"Database isolation: how we deal with hundreds of direct connections to the d...
"Database isolation: how we deal with hundreds of direct connections to the d...
Fwdays
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
Quantum AI: Where Impossible Becomes Probable
Quantum AI: Where Impossible Becomes Probable
Saikat Basu
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
WebdriverIO & JavaScript: The Perfect Duo for Web Automation
digitaljignect
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
Ad

Focus, SCNA 2011