SlideShare uma empresa Scribd logo
1 de 103
Staying DRY with YUI
By Jonathan Tsai & William Seo
Jonathan Tsai

William Seo
Part 4.
Conclusion
Best Practices
Use, Create, Proliferate
Best Practices
Use YUI and Pure
Use YUI and Pure
+
Custom YUI Modules
Part 0.
Background
Talentral = Startup
Hacker + Hustler
- Micah Baldwin, Startup Mentor
Hacker + Hustler
(CTO) (CEO)
Hacker
Talentral = Lean Startup
Hackers!
Lean Startup = Underdogs
Mistakes are costly
Choose wisely
Plan Your Work
Work Your Plan
Plan Your Work
Choose a Solid Tech Stack
•
•
•
•
•
•

Open Source
Good community support
Modern
Comfort
Compatibility
Talent
Amazon Web Services
MySQL + Redis
Django + Python
YUI
Work Your Plan
Apply it correctly
Best Practices
Use, Create, Proliferate
Part 1.
Using Best Practices
Amazon Web Services
MySQL + Redis
Django + Python
YUI
YUI = Best Practice?
•
•
•
•
•
•

Open Source
Good community support
Modern
Comfort
Compatibility
Talent
Best Practice #1
Use YUI
Best Practice #2
Stay DRY
DRY:
DON’T REPEAT YOURSELF
http://en.wikipedia.org/wiki/Don%27t_repeat_yourself
NOT a Best Practice
Getting WET
WET:
WRITE EVERYTHING TWICE
WET:
WE ENJOY TYPING
Best Practice #3
OO-JS
OOP
Abstraction + Encapsulation
Part 2.
Creating Best Practices
Best Practices
1. Use YUI
2. Stay DRY
3. OO-JS
Best Practices
+
Time
Case Study
Backbone.js + Hulu
UH. OH.
YUI = Best Practice?
Caveat
Objects don’t define
themselves
Use, Create, Proliferate
Best Practices #1-3
Custom YUI Modules
Where do we begin…
Y.Node
var nodeB = f(nodeA);
Identify a pattern
At first we tried…
Repeated code everywhere
var _Y; // global Y
YUI().use(...,
function(Y) {
_Y = Y;
});
Y.namespace()
Best Practices #1-3
Custom YUI Modules
Example:
Background Fetcher
What we wanted:
What we wanted:
HTTP.GET + Render Content
var cfg = {on:{complete:...,
failure: ...}};
var request = Y.io(uri,cfg);
IO_TRANSACTION_DATA[request.
id] = transactionData;
...
Y.BackgroundFetcher.
backgroundFetch(uri, type,
parent, callbacks);
Example:
Unescape
What we wanted:
What we wanted:
Edit HTML Content as Text
Node.getHTML()
71
72
Node.get('text')
74
75
var unescaped =
Y.Unescape.htmlUnescape
(node.getHTML());
Example:
UI Lock
What we wanted:
What we wanted:
Don’t stack API calls
function handleBtnClicked(e) {
var btn = this;
var lock = Y.UILock.lock(btn);
if (lock) {...}
lock.release();
}
Y.io(uri, {
on: {
complete:
Y.UILock.ioUnlock(lock,
callback)
}
});
Example:
Spotlight
What we wanted:
What we wanted:
Node-level modal effect
85
Part 3.
Proliferating Best Practices
Coming Soon
https://github.com/talentral
Fav Tips & Tricks #1
<script id="..."
type="text/xtemplate">BLOB</script>
Fav Tips & Tricks #2
Y.Template();
Y.Lang.sub();
Fav Tips & Tricks #3
<div
tlnt:item-type="skill"
tlnt:item-id="6547">
</div>
Fav Tips & Tricks #3
node.getAttribute('tlnt
:item-id’);
How did we ever survive
without…
94
95
96
Part 4.
Conclusion
Best Practices
Use YUI and Pure
+
Custom YUI Modules
Use, Create, Proliferate
Special Thanks To
YUI Team & Contributors
#yui IRC folks
On the Interwebs
@jontsai
http://talentral.com
Q&A

Mais conteúdo relacionado

Destaque (18)

Brewery boom
Brewery boomBrewery boom
Brewery boom
 
Himno region ica
Himno region icaHimno region ica
Himno region ica
 
Informe promocion de la salud mayo 2015
Informe promocion de la salud mayo 2015Informe promocion de la salud mayo 2015
Informe promocion de la salud mayo 2015
 
Reconocimineto por gestion centro de salud fonavi iv clotilde yangali
Reconocimineto por gestion centro de salud fonavi iv clotilde  yangaliReconocimineto por gestion centro de salud fonavi iv clotilde  yangali
Reconocimineto por gestion centro de salud fonavi iv clotilde yangali
 
Squid
SquidSquid
Squid
 
Lngcode
LngcodeLngcode
Lngcode
 
Informe promsa julio 2015
Informe promsa julio 2015Informe promsa julio 2015
Informe promsa julio 2015
 
PROMOCIÓN DE LA SALUD FONAVI IV SUBTANJALLA ICA 2014
PROMOCIÓN DE LA SALUD FONAVI IV SUBTANJALLA ICA 2014PROMOCIÓN DE LA SALUD FONAVI IV SUBTANJALLA ICA 2014
PROMOCIÓN DE LA SALUD FONAVI IV SUBTANJALLA ICA 2014
 
Personal Apparel
Personal ApparelPersonal Apparel
Personal Apparel
 
Hotel &amp; Restaurant Total Solution
Hotel &amp; Restaurant Total SolutionHotel &amp; Restaurant Total Solution
Hotel &amp; Restaurant Total Solution
 
Merces legacy
Merces legacyMerces legacy
Merces legacy
 
Corporate
CorporateCorporate
Corporate
 
Taller de electricidad
Taller de electricidadTaller de electricidad
Taller de electricidad
 
Informe promsa junio 2015
Informe promsa junio 2015Informe promsa junio 2015
Informe promsa junio 2015
 
sankalp final ppt
sankalp final pptsankalp final ppt
sankalp final ppt
 
Informe promocion de la salud marzo 2015
Informe promocion de la salud marzo 2015Informe promocion de la salud marzo 2015
Informe promocion de la salud marzo 2015
 
Shoes
ShoesShoes
Shoes
 
Informe promocion de la salud abril 2015
Informe promocion de la salud abril 2015Informe promocion de la salud abril 2015
Informe promocion de la salud abril 2015
 

Semelhante a Staying DRY with YUI

Powerpoint dropbox
Powerpoint dropboxPowerpoint dropbox
Powerpoint dropboxxristou
 
Dropbox: Building Business Through Lean Startup Principles
Dropbox: Building Business Through Lean Startup PrinciplesDropbox: Building Business Through Lean Startup Principles
Dropbox: Building Business Through Lean Startup PrinciplesVishal Kumar
 
Ash Shepherd - Don’t Just Do It, Do It Well! Process & Management of Social M...
Ash Shepherd - Don’t Just Do It, Do It Well! Process & Management of Social M...Ash Shepherd - Don’t Just Do It, Do It Well! Process & Management of Social M...
Ash Shepherd - Don’t Just Do It, Do It Well! Process & Management of Social M...Social Media for Nonprofits
 
Dropbox startuplessonslearned
Dropbox startuplessonslearnedDropbox startuplessonslearned
Dropbox startuplessonslearnedEdmund FOng
 
Startup DNA: the formula behind successful startups in Silicon Valley (update...
Startup DNA: the formula behind successful startups in Silicon Valley (update...Startup DNA: the formula behind successful startups in Silicon Valley (update...
Startup DNA: the formula behind successful startups in Silicon Valley (update...Yevgeniy Brikman
 
How To (Not) Open Source - Javazone, Oslo 2014
How To (Not) Open Source - Javazone, Oslo 2014How To (Not) Open Source - Javazone, Oslo 2014
How To (Not) Open Source - Javazone, Oslo 2014gdusbabek
 
Networked NGO in India
Networked NGO in IndiaNetworked NGO in India
Networked NGO in IndiaBeth Kanter
 
Grow your career through open source - Landing your next career move
Grow your career through open source - Landing your next career moveGrow your career through open source - Landing your next career move
Grow your career through open source - Landing your next career moveJuanita Dion-Chiang
 
Advanced Social Media - AAM Philadelphia
Advanced Social Media  - AAM PhiladelphiaAdvanced Social Media  - AAM Philadelphia
Advanced Social Media - AAM PhiladelphiaJessica Levin
 
Web 2 0_tools_social_networking_and_more_2010
Web 2 0_tools_social_networking_and_more_2010Web 2 0_tools_social_networking_and_more_2010
Web 2 0_tools_social_networking_and_more_2010orrange
 
Social Networking And Career1.0
Social Networking And Career1.0Social Networking And Career1.0
Social Networking And Career1.0Linda Skrocki
 
SCVNGR Summer School Social Media for Small Biz 101 Presentation
SCVNGR Summer School Social Media for Small Biz 101 PresentationSCVNGR Summer School Social Media for Small Biz 101 Presentation
SCVNGR Summer School Social Media for Small Biz 101 Presentationoneforty
 
SCVNGR Social Media Summer School - Social Media for Small Business
SCVNGR Social Media Summer School - Social Media for Small BusinessSCVNGR Social Media Summer School - Social Media for Small Business
SCVNGR Social Media Summer School - Social Media for Small Businessoneforty
 
Bringing Buzz to the World – building an Enterprise Social Network as a commu...
Bringing Buzz to the World – building an Enterprise Social Network as a commu...Bringing Buzz to the World – building an Enterprise Social Network as a commu...
Bringing Buzz to the World – building an Enterprise Social Network as a commu...Louise McGregor
 
Community its easier than you think
Community its easier than you thinkCommunity its easier than you think
Community its easier than you thinkMura CMS
 
2010 Fall Hack U
2010 Fall Hack U 2010 Fall Hack U
2010 Fall Hack U hacku
 
Social Media Strategy: Mission, Tool, Metrics, Teach
Social Media Strategy: Mission, Tool, Metrics, TeachSocial Media Strategy: Mission, Tool, Metrics, Teach
Social Media Strategy: Mission, Tool, Metrics, TeachJeffrey Levy
 
Social Media404 Oasis Social Media Best Practices
Social Media404 Oasis Social Media Best PracticesSocial Media404 Oasis Social Media Best Practices
Social Media404 Oasis Social Media Best PracticesJohn Sheridan
 

Semelhante a Staying DRY with YUI (20)

Powerpoint dropbox
Powerpoint dropboxPowerpoint dropbox
Powerpoint dropbox
 
Dropbox: Building Business Through Lean Startup Principles
Dropbox: Building Business Through Lean Startup PrinciplesDropbox: Building Business Through Lean Startup Principles
Dropbox: Building Business Through Lean Startup Principles
 
Ash Shepherd - Don’t Just Do It, Do It Well! Process & Management of Social M...
Ash Shepherd - Don’t Just Do It, Do It Well! Process & Management of Social M...Ash Shepherd - Don’t Just Do It, Do It Well! Process & Management of Social M...
Ash Shepherd - Don’t Just Do It, Do It Well! Process & Management of Social M...
 
Dropbox startuplessonslearned
Dropbox startuplessonslearnedDropbox startuplessonslearned
Dropbox startuplessonslearned
 
Startup DNA: the formula behind successful startups in Silicon Valley (update...
Startup DNA: the formula behind successful startups in Silicon Valley (update...Startup DNA: the formula behind successful startups in Silicon Valley (update...
Startup DNA: the formula behind successful startups in Silicon Valley (update...
 
How To (Not) Open Source - Javazone, Oslo 2014
How To (Not) Open Source - Javazone, Oslo 2014How To (Not) Open Source - Javazone, Oslo 2014
How To (Not) Open Source - Javazone, Oslo 2014
 
Networked NGO in India
Networked NGO in IndiaNetworked NGO in India
Networked NGO in India
 
Social media business intro
Social media business introSocial media business intro
Social media business intro
 
Dropbox startup lessons learned
Dropbox startup lessons learned Dropbox startup lessons learned
Dropbox startup lessons learned
 
Grow your career through open source - Landing your next career move
Grow your career through open source - Landing your next career moveGrow your career through open source - Landing your next career move
Grow your career through open source - Landing your next career move
 
Advanced Social Media - AAM Philadelphia
Advanced Social Media  - AAM PhiladelphiaAdvanced Social Media  - AAM Philadelphia
Advanced Social Media - AAM Philadelphia
 
Web 2 0_tools_social_networking_and_more_2010
Web 2 0_tools_social_networking_and_more_2010Web 2 0_tools_social_networking_and_more_2010
Web 2 0_tools_social_networking_and_more_2010
 
Social Networking And Career1.0
Social Networking And Career1.0Social Networking And Career1.0
Social Networking And Career1.0
 
SCVNGR Summer School Social Media for Small Biz 101 Presentation
SCVNGR Summer School Social Media for Small Biz 101 PresentationSCVNGR Summer School Social Media for Small Biz 101 Presentation
SCVNGR Summer School Social Media for Small Biz 101 Presentation
 
SCVNGR Social Media Summer School - Social Media for Small Business
SCVNGR Social Media Summer School - Social Media for Small BusinessSCVNGR Social Media Summer School - Social Media for Small Business
SCVNGR Social Media Summer School - Social Media for Small Business
 
Bringing Buzz to the World – building an Enterprise Social Network as a commu...
Bringing Buzz to the World – building an Enterprise Social Network as a commu...Bringing Buzz to the World – building an Enterprise Social Network as a commu...
Bringing Buzz to the World – building an Enterprise Social Network as a commu...
 
Community its easier than you think
Community its easier than you thinkCommunity its easier than you think
Community its easier than you think
 
2010 Fall Hack U
2010 Fall Hack U 2010 Fall Hack U
2010 Fall Hack U
 
Social Media Strategy: Mission, Tool, Metrics, Teach
Social Media Strategy: Mission, Tool, Metrics, TeachSocial Media Strategy: Mission, Tool, Metrics, Teach
Social Media Strategy: Mission, Tool, Metrics, Teach
 
Social Media404 Oasis Social Media Best Practices
Social Media404 Oasis Social Media Best PracticesSocial Media404 Oasis Social Media Best Practices
Social Media404 Oasis Social Media Best Practices
 

Último

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Último (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

Staying DRY with YUI

Notas do Editor

  1. Meet the Talentral Engineering team… All two of us. We took a huge risk in coming to the conference today, because if both of us died in a car accident together, our company would essentially fail.
  2. Talentral is a career management platform which allows you to create a digital online portfolio of your work accomplishments
  3. Create, manage, and share multiple profiles
  4. Inline feels-like-desktop WYSIWYG editor. No page reloads.
  5. It’s good to start with the end… The main takeaways from our talk
  6. We hereby decree…
  7. The two essential components to a successful startup
  8. Yours truly
  9. As you have already seen…
  10. Double hackers all the way!
  11. Everything is stacked against us
  12. A wrong or bad decision could mean the end… So we can’t afford to make mistakes
  13. Make decisions carefully
  14. A good formula for success
  15. … is one of the most critical decisions at the beginning of a startup. Once you’ve chosen a technology stack to start with, you’re pretty much married to it.
  16. The next part of your success depends on…
  17. It’s good to always find out what the best practices are
  18. We postulate/declare that YUI is a bestpratice
  19. Good community support. Is that even a question? YUI community is AWESOME! This is the thing that comes to mind when I think about the best open-source projects on the planet.Choosing YUI for your frontend is a no-brainer; it’s like having a team of 20 elite frontend engineers on YOUR team. We’ve asked countless questions on #yui IRC channel and have gotten amazing help. Thank you, you know who you are.Modern? You bet. Yahoo! uses it. Develops it, maintains it… (Industrial Strength--Image/screenshot)Extensibility...
  20. DRY, also known as “Don’t Repeat Yourself,” is a software engineering principle that encourages writing clean, robust code.
  21. DRY, also known as “Don’t Repeat Yourself,” is a software engineering principle that encourages writing clean, robust code.
  22. DRY, also known as “Don’t Repeat Yourself,” is a software engineering principle that encourages writing clean, robust code.
  23. Oooooooooh. JavaScript. Just kidding. Object-oriented JavaScript
  24. Oooooooooh. JavaScript. Just kidding. Object-oriented JavaScript
  25. Oooooooooh. JavaScript. Just kidding. Object-oriented JavaScript
  26. Is it still our champion?
  27. For us, whenever we found ourselves importing a common set of YUI modules across several JS files (node, event, io)
  28. Can’t hurt a guy for trying…
  29. Affected by JS load order
  30. Allowed us to expose functions to other JS files. But order-dependent.Functional programming, not object-oriented; still leads to a lot of repeated codeWasn’t taking advantage of YUI loader (which allows dynamic loading of JS source files and downloading scripts in parallel)
  31. We need to be able to do it multiple times with the most freshest content.We also have to consider what if it fails to load.
  32. Render anywhereClient-side cache w/ timeoutFailed API call handler + automatic retry w/ exponential backoff
  33. Node.getHTML()
  34. Node.get(‘text’)
  35. Don’t stack API calls from repeated UI triggers.Wait for the first API call to complete
  36. If a lock is successfully acquired, perform a Y.io() callAlso gives user visual feedback (btn.addClass(‘ui-locked’))IO complete/failure handler can then release lock as appropriate
  37. By using a function factory design pattern, we provide convenience wrappers for unlocking UI widgets without having to change the original callback functions.
  38. North, South, East, West Curtains/veils. With automatically calculated offsets from X/Y coords
  39. Doing some final cleanup of our modules (3 categories of modules: Everyone, Some People, Just Us)
  40. Stash content that you don’t want to be rendered in a content type not-recognized by the browser. You can still retrieve the node by ID and then getHTML()
  41. Stash content that you don’t want to be rendered in a content type not-recognized by the browser. You can still
  42. Use the following together. Very tasty.
  43. North, South, East, West Curtains/veils. With automatically calculated offsets from X/Y coords
  44. North, South, East, West Curtains/veils. With automatically calculated offsets from X/Y coords
  45. North, South, East, West Curtains/veils. With automatically calculated offsets from X/Y coords
  46. It’s good to start with the end… The main takeaways from our talk
  47. We hereby decree…
  48. We love you!
  49. We love you!