SlideShare a Scribd company logo
1 of 21
Download to read offline
QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER
Editable

                          Adaptive
                                Client-aware
                                Location-aware
                                Demographics-aware
“Be          like               Time-aware
                                Gender-aware

water,        my          Analytics


friend.”                  Ease of use

                          Backward compatible

                          Social




           QROPIT SOCIAL QR CODE READER
Video      Images slideshow   Facebook page   Location




Mobile app     Hyperlink          Coupon        Contact




               QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER
3 methods (at the moment)

        i. QropIt ID aka username/password
        ii. Facebook
        iii. Twitter


2 actions:

        i. Sign up
        ii. Association with the logged in account




                      QROPIT SOCIAL QR CODE READER
1.
A: Sign up with FB-1
B: Sign up with Twitter-1
A: Associate with Twitter-1

2a.
A: Sign up with QI-1
A: Associate with FB-1
B: Sign up with QI-2
B: Associate with FB-1

2b.
x: Log in with FB-1

Should the user end up with Account A or B?



                         QROPIT SOCIAL QR CODE READER
1.
A: Sign up with FB-1
                                                                “Be           like
B: Sign up with Twitter-1                                       Foursquare,    my
A: Associate with Twitter-1
                      Error: Another user is linked to this
                                                                friend.”
                      Twitter account.
2a.
A: Sign up with QI-1
A: Associate with FB-1
B: Sign up with QI-2
B: Associate with FB-1
                                  Error: Another user is linked to this
                                  Facebook account.
2b.
x: Log in with FB-1
                                            No problem!

Should the user end up with Account A or B?



                            QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER
The built-in method does not differentiate URLs, it merely updates
 session var (Config.language)

Bad for search engines: they get confused

Make different URLs for each locale:
      - /en/controller
      - /controller/en
      - /controller?lang=en

Not that easy now on CakePHP as it makes:
       - routes.php complicated
       - $html->link needs to be appending the appropriate
          language tag
       - intercept CakePHP URL translation (forward and backward)



                     QROPIT SOCIAL QR CODE READER
http://qropit.com/widget




                    QROPIT SOCIAL QR CODE READER
Avoid AJAX (very tempting, but resist it)

Avoid document.write()

Why?

<script src="http://example.com/widget/script.js" type="text/javascript"></script>
<div id="example-widget-container"></div>


Is fine, but can we do better?

Inject widget-container into <body> or <html>




                                                                                                     Some tips from Alex Marandon’s blog
                                                                                     http://alexmarandon.com/articles/web_widget_jquery/




                                      QROPIT SOCIAL QR CODE READER
Code isolation

Noone’s going to name their variable Beezow-Doo-Doo-Zopittybop-Bop-Bop right?

Always var your variables

Use anonymous functions to contain your functions.

(function(){
               MakeMeASandwich();
               SudoMakeMeASandwich();
})();

Sure. jQuery is omnipowerful and omniconvenient, but very likely
 you’re not the only one thinking so, try to reuse jQuery library if it is
 already loaded on a page.

                                                                                    Some tips from Alex Marandon’s blog
                                                                    http://alexmarandon.com/articles/web_widget_jquery/




                             QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER
http://qropit.com/dev
• RESTful
• JSON/XML
• GET/POST agnostic




                      QROPIT SOCIAL QR CODE READER
QROPIT SOCIAL QR CODE READER

More Related Content

Similar to QropIt: sharing at Singapore PHP User Group

Qr code (quick response code)
Qr code (quick response code)Qr code (quick response code)
Qr code (quick response code)Rohan Sawant
 
HackU: IIT Madras: Hacking Yahoo! Social
HackU: IIT Madras: Hacking Yahoo! SocialHackU: IIT Madras: Hacking Yahoo! Social
HackU: IIT Madras: Hacking Yahoo! SocialSaurabh Sahni
 
Open Bank Project ECB19 Sept 2016 v2
Open Bank Project ECB19 Sept 2016 v2Open Bank Project ECB19 Sept 2016 v2
Open Bank Project ECB19 Sept 2016 v2simonredfern
 
Ketan Majmudar: From Kitchen Sink to App: Real World Case Studies
Ketan Majmudar: From Kitchen Sink to App: Real World Case StudiesKetan Majmudar: From Kitchen Sink to App: Real World Case Studies
Ketan Majmudar: From Kitchen Sink to App: Real World Case StudiesAxway Appcelerator
 
Html5 mobile develop tools
Html5 mobile develop toolsHtml5 mobile develop tools
Html5 mobile develop toolsLey Liu
 
RIAction Social Applications in the Cloud 20090226
RIAction Social Applications in the Cloud 20090226RIAction Social Applications in the Cloud 20090226
RIAction Social Applications in the Cloud 20090226Vinoaj Vijeyakumaar
 
Building an API Centric SOA
Building an API Centric SOA Building an API Centric SOA
Building an API Centric SOA WSO2
 
Librerías Opensoure de Square
Librerías Opensoure de Square Librerías Opensoure de Square
Librerías Opensoure de Square betabeers
 
"How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn...
"How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn..."How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn...
"How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn...Eurapp
 
War of The Worlds: Web or Native? Both!
War of The Worlds: Web or Native? Both!War of The Worlds: Web or Native? Both!
War of The Worlds: Web or Native? Both!Federico Lucignano
 
Frontend development of the (current) future
Frontend development of the (current) futureFrontend development of the (current) future
Frontend development of the (current) futureFilip Bruun Bech-Larsen
 
40 Tools in 20 Minutes: Hacking your Marketing Career
40 Tools in 20 Minutes: Hacking your Marketing Career40 Tools in 20 Minutes: Hacking your Marketing Career
40 Tools in 20 Minutes: Hacking your Marketing CareerEric Leist
 
The .NET MAUI Community Toolkits.pptx
The .NET MAUI Community Toolkits.pptxThe .NET MAUI Community Toolkits.pptx
The .NET MAUI Community Toolkits.pptxBrandon Minnick, MBA
 
WSO2Con Asia 2014 - Building the API-Centric Enterprise
WSO2Con Asia 2014 - Building the API-Centric EnterpriseWSO2Con Asia 2014 - Building the API-Centric Enterprise
WSO2Con Asia 2014 - Building the API-Centric EnterpriseWSO2
 
Cracking the QR Code
Cracking the QR CodeCracking the QR Code
Cracking the QR CodeLaura Botts
 
Cracking the QR Code
Cracking the QR CodeCracking the QR Code
Cracking the QR CodeLaura Botts
 
QR Codes & WordPress plugins #wcatl-slides
QR Codes & WordPress plugins #wcatl-slidesQR Codes & WordPress plugins #wcatl-slides
QR Codes & WordPress plugins #wcatl-slidesStephanie True Moss
 

Similar to QropIt: sharing at Singapore PHP User Group (20)

Qr code (quick response code)
Qr code (quick response code)Qr code (quick response code)
Qr code (quick response code)
 
HackU: IIT Madras: Hacking Yahoo! Social
HackU: IIT Madras: Hacking Yahoo! SocialHackU: IIT Madras: Hacking Yahoo! Social
HackU: IIT Madras: Hacking Yahoo! Social
 
Open Bank Project ECB19 Sept 2016 v2
Open Bank Project ECB19 Sept 2016 v2Open Bank Project ECB19 Sept 2016 v2
Open Bank Project ECB19 Sept 2016 v2
 
QR Codes: What, Why, How & Where
QR Codes: What, Why, How & WhereQR Codes: What, Why, How & Where
QR Codes: What, Why, How & Where
 
Ketan Majmudar: From Kitchen Sink to App: Real World Case Studies
Ketan Majmudar: From Kitchen Sink to App: Real World Case StudiesKetan Majmudar: From Kitchen Sink to App: Real World Case Studies
Ketan Majmudar: From Kitchen Sink to App: Real World Case Studies
 
Html5 mobile develop tools
Html5 mobile develop toolsHtml5 mobile develop tools
Html5 mobile develop tools
 
RIAction Social Applications in the Cloud 20090226
RIAction Social Applications in the Cloud 20090226RIAction Social Applications in the Cloud 20090226
RIAction Social Applications in the Cloud 20090226
 
Building an API Centric SOA
Building an API Centric SOA Building an API Centric SOA
Building an API Centric SOA
 
Librerías Opensoure de Square
Librerías Opensoure de Square Librerías Opensoure de Square
Librerías Opensoure de Square
 
"How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn...
"How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn..."How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn...
"How Can Web Devs Reach the Mobile Market?" by Dimitris Michalakos, Web Techn...
 
War of The Worlds: Web or Native? Both!
War of The Worlds: Web or Native? Both!War of The Worlds: Web or Native? Both!
War of The Worlds: Web or Native? Both!
 
Mobile apps slideshareversion
Mobile apps slideshareversionMobile apps slideshareversion
Mobile apps slideshareversion
 
Frontend development of the (current) future
Frontend development of the (current) futureFrontend development of the (current) future
Frontend development of the (current) future
 
40 Tools in 20 Minutes: Hacking your Marketing Career
40 Tools in 20 Minutes: Hacking your Marketing Career40 Tools in 20 Minutes: Hacking your Marketing Career
40 Tools in 20 Minutes: Hacking your Marketing Career
 
Future of Search and Links - The iGaming Summit Malta #sigma2014
Future of Search and Links - The iGaming Summit Malta #sigma2014Future of Search and Links - The iGaming Summit Malta #sigma2014
Future of Search and Links - The iGaming Summit Malta #sigma2014
 
The .NET MAUI Community Toolkits.pptx
The .NET MAUI Community Toolkits.pptxThe .NET MAUI Community Toolkits.pptx
The .NET MAUI Community Toolkits.pptx
 
WSO2Con Asia 2014 - Building the API-Centric Enterprise
WSO2Con Asia 2014 - Building the API-Centric EnterpriseWSO2Con Asia 2014 - Building the API-Centric Enterprise
WSO2Con Asia 2014 - Building the API-Centric Enterprise
 
Cracking the QR Code
Cracking the QR CodeCracking the QR Code
Cracking the QR Code
 
Cracking the QR Code
Cracking the QR CodeCracking the QR Code
Cracking the QR Code
 
QR Codes & WordPress plugins #wcatl-slides
QR Codes & WordPress plugins #wcatl-slidesQR Codes & WordPress plugins #wcatl-slides
QR Codes & WordPress plugins #wcatl-slides
 

Recently uploaded

Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Jeffrey Haguewood
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Nikki Chapple
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Mark Simos
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFMichael Gough
 
Kuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialKuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialJoão Esperancinha
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessWSO2
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sectoritnewsafrica
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Karmanjay Verma
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 

Recently uploaded (20)

Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
Tampa BSides - The No BS SOC (slides from April 6, 2024 talk)
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
All These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDFAll These Sophisticated Attacks, Can We Really Detect Them - PDF
All These Sophisticated Attacks, Can We Really Detect Them - PDF
 
Kuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialKuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorial
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
4. Cobus Valentine- Cybersecurity Threats and Solutions for the Public Sector
 
Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#Microservices, Docker deploy and Microservices source code in C#
Microservices, Docker deploy and Microservices source code in C#
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 

QropIt: sharing at Singapore PHP User Group

  • 1. QROPIT SOCIAL QR CODE READER
  • 2. QROPIT SOCIAL QR CODE READER
  • 3. QROPIT SOCIAL QR CODE READER
  • 4. QROPIT SOCIAL QR CODE READER
  • 5. QROPIT SOCIAL QR CODE READER
  • 6. Editable Adaptive Client-aware Location-aware Demographics-aware “Be like Time-aware Gender-aware water, my Analytics friend.” Ease of use Backward compatible Social QROPIT SOCIAL QR CODE READER
  • 7. Video Images slideshow Facebook page Location Mobile app Hyperlink Coupon Contact QROPIT SOCIAL QR CODE READER
  • 8. QROPIT SOCIAL QR CODE READER
  • 9. QROPIT SOCIAL QR CODE READER
  • 10. QROPIT SOCIAL QR CODE READER
  • 11. 3 methods (at the moment) i. QropIt ID aka username/password ii. Facebook iii. Twitter 2 actions: i. Sign up ii. Association with the logged in account QROPIT SOCIAL QR CODE READER
  • 12. 1. A: Sign up with FB-1 B: Sign up with Twitter-1 A: Associate with Twitter-1 2a. A: Sign up with QI-1 A: Associate with FB-1 B: Sign up with QI-2 B: Associate with FB-1 2b. x: Log in with FB-1 Should the user end up with Account A or B? QROPIT SOCIAL QR CODE READER
  • 13. 1. A: Sign up with FB-1 “Be like B: Sign up with Twitter-1 Foursquare, my A: Associate with Twitter-1 Error: Another user is linked to this friend.” Twitter account. 2a. A: Sign up with QI-1 A: Associate with FB-1 B: Sign up with QI-2 B: Associate with FB-1 Error: Another user is linked to this Facebook account. 2b. x: Log in with FB-1 No problem! Should the user end up with Account A or B? QROPIT SOCIAL QR CODE READER
  • 14. QROPIT SOCIAL QR CODE READER
  • 15. The built-in method does not differentiate URLs, it merely updates session var (Config.language) Bad for search engines: they get confused Make different URLs for each locale: - /en/controller - /controller/en - /controller?lang=en Not that easy now on CakePHP as it makes: - routes.php complicated - $html->link needs to be appending the appropriate language tag - intercept CakePHP URL translation (forward and backward) QROPIT SOCIAL QR CODE READER
  • 16. http://qropit.com/widget QROPIT SOCIAL QR CODE READER
  • 17. Avoid AJAX (very tempting, but resist it) Avoid document.write() Why? <script src="http://example.com/widget/script.js" type="text/javascript"></script> <div id="example-widget-container"></div> Is fine, but can we do better? Inject widget-container into <body> or <html> Some tips from Alex Marandon’s blog http://alexmarandon.com/articles/web_widget_jquery/ QROPIT SOCIAL QR CODE READER
  • 18. Code isolation Noone’s going to name their variable Beezow-Doo-Doo-Zopittybop-Bop-Bop right? Always var your variables Use anonymous functions to contain your functions. (function(){ MakeMeASandwich(); SudoMakeMeASandwich(); })(); Sure. jQuery is omnipowerful and omniconvenient, but very likely you’re not the only one thinking so, try to reuse jQuery library if it is already loaded on a page. Some tips from Alex Marandon’s blog http://alexmarandon.com/articles/web_widget_jquery/ QROPIT SOCIAL QR CODE READER
  • 19. QROPIT SOCIAL QR CODE READER
  • 20. http://qropit.com/dev • RESTful • JSON/XML • GET/POST agnostic QROPIT SOCIAL QR CODE READER
  • 21. QROPIT SOCIAL QR CODE READER